gcc 4.1.1: add patch to fix PR 13685
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Sat, 16 Dec 2006 11:05:08 +0000 (11:05 +0000)
committerKoen Kooi <koen@openembedded.org>
Sat, 16 Dec 2006 11:05:08 +0000 (11:05 +0000)
packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch [new file with mode: 0644]
packages/gcc/gcc-cross_4.1.1.bb
packages/gcc/gcc_4.1.1.bb

diff --git a/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch b/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch
new file mode 100644 (file)
index 0000000..a56b130
--- /dev/null
@@ -0,0 +1,26 @@
+Submitted By: Alexander E. Patrakov\r
+Date: 2006-12-11\r
+Initial Package Version: 4.1.1\r
+Upstream Status: backport\r
+Origin: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621\r
+Description: Fix crash of programs compiled with -Os -ffast-math\r
+(affects procps on the LiveCD)\r
+--- gcc-4.1.1/gcc/config/i386/i386.c\r
++++ gcc-4.1.1/gcc/config/i386/i386.c\r
+@@ -1502,12 +1502,10 @@\r
+     }\r
\r
+   /* Validate -mpreferred-stack-boundary= value, or provide default.\r
+-     The default of 128 bits is for Pentium III's SSE __m128, but we\r
+-     don't want additional code to keep the stack aligned when\r
+-     optimizing for code size.  */\r
+-  ix86_preferred_stack_boundary = (optimize_size\r
+-                                 ? TARGET_64BIT ? 128 : 32\r
+-                                 : 128);\r
++     The default of 128 bits is for Pentium III's SSE __m128, We can't\r
++     change it because of optimize_size.  Otherwise, we can't mix object\r
++     files compiled with -Os and -On.  */\r
++  ix86_preferred_stack_boundary = 128;\r
+   if (ix86_preferred_stack_boundary_string)\r
+     {\r
+       i = atoi (ix86_preferred_stack_boundary_string);\r
index 2f29e17..5721dee 100644 (file)
@@ -5,7 +5,7 @@ inherit cross
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 # NOTE: split PR.  If the main .oe changes something that affects its *build*
 # remember to increment this one too.
-PR = "r8"
+PR = "r9"
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
index 81b81ee..e323533 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r8"
+PR = "r9"
 DESCRIPTION = "The GNU cc and gcc C compilers."
 HOMEPAGE = "http://www.gnu.org/software/gcc/"
 SECTION = "devel"
@@ -30,7 +30,8 @@ SRC_URI = "http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2 \
        file://zecke-xgcc-cpp.patch;patch=1 \
        file://unbreak-armv4t.patch;patch=1 \
         file://fix-ICE-in-arm_unwind_emit_set.diff;patch=1 \
-        "
+        file://gcc-4.1.1-pr13685-1.patch;patch=1 \
+       "
 
 SRC_URI_append_fail-fast = " file://zecke-no-host-includes.patch;patch=1 "