diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch')
-rw-r--r-- | meta/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch b/meta/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch new file mode 100644 index 0000000000..a56b1307df --- /dev/null +++ b/meta/packages/gcc/gcc-4.1.1/gcc-4.1.1-pr13685-1.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Submitted By: Alexander E. Patrakov | ||
2 | Date: 2006-12-11 | ||
3 | Initial Package Version: 4.1.1 | ||
4 | Upstream Status: backport | ||
5 | Origin: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621 | ||
6 | Description: Fix crash of programs compiled with -Os -ffast-math | ||
7 | (affects procps on the LiveCD) | ||
8 | --- gcc-4.1.1/gcc/config/i386/i386.c | ||
9 | +++ gcc-4.1.1/gcc/config/i386/i386.c | ||
10 | @@ -1502,12 +1502,10 @@ | ||
11 | } | ||
12 | |||
13 | /* Validate -mpreferred-stack-boundary= value, or provide default. | ||
14 | - The default of 128 bits is for Pentium III's SSE __m128, but we | ||
15 | - don't want additional code to keep the stack aligned when | ||
16 | - optimizing for code size. */ | ||
17 | - ix86_preferred_stack_boundary = (optimize_size | ||
18 | - ? TARGET_64BIT ? 128 : 32 | ||
19 | - : 128); | ||
20 | + The default of 128 bits is for Pentium III's SSE __m128, We can't | ||
21 | + change it because of optimize_size. Otherwise, we can't mix object | ||
22 | + files compiled with -Os and -On. */ | ||
23 | + ix86_preferred_stack_boundary = 128; | ||
24 | if (ix86_preferred_stack_boundary_string) | ||
25 | { | ||
26 | i = atoi (ix86_preferred_stack_boundary_string); | ||