diff options
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99377.patch')
-rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99377.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99377.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99377.patch new file mode 100644 index 0000000000..d51f0874e3 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99377.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Issue #1510 | ||
2 | 2007-04-27 Paul Brook <paul@codesourcery.com> | ||
3 | gcc/ | ||
4 | * cse.c (cse_process_notes): Make sure PLUS are canonical. | ||
5 | |||
6 | 2010-08-26 Paul Brook <paul@codesourcery.com> | ||
7 | |||
8 | Merge from Sourcery G++ 4.3/4.4: | ||
9 | 2007-03-30 Paul Brook <paul@codesourcery.com> | ||
10 | gcc/ | ||
11 | * calls.c (store_one_arg): Check alignment of mode used for save. | ||
12 | |||
13 | === modified file 'gcc/cse.c' | ||
14 | --- old/gcc/cse.c 2010-01-12 20:25:10 +0000 | ||
15 | +++ new/gcc/cse.c 2010-08-26 15:53:20 +0000 | ||
16 | @@ -6061,6 +6061,11 @@ | ||
17 | validate_change (object, &XEXP (x, i), | ||
18 | cse_process_notes (XEXP (x, i), object, changed), 0); | ||
19 | |||
20 | + /* Rebuild a PLUS expression in canonical form if the first operand | ||
21 | + ends up as a constant. */ | ||
22 | + if (code == PLUS && GET_CODE (XEXP (x, 0)) == CONST_INT) | ||
23 | + return plus_constant (XEXP(x, 1), INTVAL (XEXP (x, 0))); | ||
24 | + | ||
25 | return x; | ||
26 | } | ||
27 | |||
28 | |||