diff --git a/gcc41-amdfam10.patch b/gcc41-amdfam10.patch index 4a7938b..00b6ac2 100644 --- a/gcc41-amdfam10.patch +++ b/gcc41-amdfam10.patch @@ -1,3 +1,8 @@ +2007-02-10 H.J. Lu + + * gcc.target/i386/sse4a-extract.c: Add "LL" to 64bit constants. + * gcc.target/i386/sse4a-insert.c: Likewise. + 2007-02-08 Harsha Jagasia * config/i386/xmmintrin.h: Make inclusion of emmintrin.h @@ -264,7 +269,7 @@ + __m128i v1,v2; + long long index_length, pad; + LI v_out; -+ index_length = 0x0000000000000810; ++ index_length = 0x0000000000000810LL; + pad = 0x0; + v1 = _mm_set_epi64x (pad, in1); + v2 = _mm_set_epi64x (index_length, in2); @@ -294,29 +299,29 @@ + +long long vals_in1[5] = + { -+ 0x1234567887654321, -+ 0x1456782093002490, -+ 0x2340909123990390, -+ 0x9595959599595999, -+ 0x9099038798000029 ++ 0x1234567887654321LL, ++ 0x1456782093002490LL, ++ 0x2340909123990390LL, ++ 0x9595959599595999LL, ++ 0x9099038798000029LL + }; + +long long vals_in2[5] = + { -+ 0x9ABCDEF00FEDCBA9, -+ 0x234567097289672A, -+ 0x45476453097BD342, -+ 0x23569012AE586FF0, -+ 0x432567ABCDEF765D ++ 0x9ABCDEF00FEDCBA9LL, ++ 0x234567097289672ALL, ++ 0x45476453097BD342LL, ++ 0x23569012AE586FF0LL, ++ 0x432567ABCDEF765DLL + }; + +long long vals_out[5] = + { -+ 0x1234567887CBA921, -+ 0x1456782093672A90, -+ 0x2340909123D34290, -+ 0x95959595996FF099, -+ 0x9099038798765D29 ++ 0x1234567887CBA921LL, ++ 0x1456782093672A90LL, ++ 0x2340909123D34290LL, ++ 0x95959595996FF099LL, ++ 0x9099038798765D29LL + }; + +static void @@ -377,7 +382,7 @@ + __m128i v1, v2; + long long index_length, pad; + LI v_out; -+ index_length = 0x0000000000000810; ++ index_length = 0x0000000000000810LL; + pad = 0x0; + v1 = _mm_set_epi64x (pad, in); + v2 = _mm_set_epi64x (pad, index_length); @@ -406,20 +411,20 @@ + +long long vals_in[5] = + { -+ 0x1234567887654321, -+ 0x1456782093002490, -+ 0x2340909123990390, -+ 0x9595959599595999, -+ 0x9099038798000029 ++ 0x1234567887654321LL, ++ 0x1456782093002490LL, ++ 0x2340909123990390LL, ++ 0x9595959599595999LL, ++ 0x9099038798000029LL + }; + +long long vals_out[5] = + { -+ 0x0000000000006543, -+ 0x0000000000000024, -+ 0x0000000000009903, -+ 0x0000000000005959, -+ 0x0000000000000000 ++ 0x0000000000006543LL, ++ 0x0000000000000024LL, ++ 0x0000000000009903LL, ++ 0x0000000000005959LL, ++ 0x0000000000000000LL + }; + +static void diff --git a/gcc41.spec b/gcc41.spec index 294870a..14ff757 100644 --- a/gcc41.spec +++ b/gcc41.spec @@ -1,6 +1,6 @@ %define DATE 20070209 %define gcc_version 4.1.1 -%define gcc_release 56 +%define gcc_release 57 %define _unpackaged_files_terminate_build 0 %define multilib_64_archs sparc64 ppc64 s390x x86_64 %define include_gappletviewer 1 @@ -145,6 +145,7 @@ Patch35: gcc41-pr30143.patch Patch36: gcc41-pr30045.patch Patch37: gcc41-pr30473.patch Patch38: gcc41-pr30536.patch +Patch39: gcc41-pr27351.patch %define _gnu %{nil} %ifarch sparc %define gcc_target_platform sparc64-%{_vendor}-%{_target_os} @@ -458,6 +459,7 @@ which are required to run programs compiled with the GNAT. %patch36 -p0 -b .pr30045~ %patch37 -p0 -b .pr30473~ %patch38 -p0 -b .pr30536~ +%patch39 -p0 -b .pr27351~ sed -i -e 's/4\.1\.2/4.1.1/' gcc/BASE-VER gcc/version.c sed -i -e 's/" (Red Hat[^)]*)"/" (Red Hat %{version}-%{gcc_release})"/' gcc/version.c @@ -1139,6 +1141,7 @@ fi %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/emmintrin.h %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/pmmintrin.h %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/tmmintrin.h +%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/ammintrin.h %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/mm_malloc.h %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_version}/include/mm3dnow.h %endif @@ -1529,6 +1532,11 @@ fi %doc rpm.doc/changelogs/libmudflap/ChangeLog* %changelog +* Sun Feb 11 2007 Jakub Jelinek 4.1.1-57 +- package up ammintrin.h on i386/x86_64 +- fix AMDfam10 testcases (H.J. Lu) +- fix f951 assert accessing memory after free (H.J. Lu, PR fortran/27351) + * Sat Feb 10 2007 Jakub Jelinek 4.1.1-56 - update from gcc-4_1-branch (-r121479:121738) - PRs c++/29487, target/29487, target/30370