diff options
author | Koen Kooi <koen@openembedded.org> | 2007-12-11 09:42:16 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-12-11 09:42:16 +0000 |
commit | 7bcf4828673040af5022534981de6416f5884cff (patch) | |
tree | 18ab00a9b6f1ce29fa7b613662e256785fb59781 /packages/gcc/gcc-4.1.1/pr34130.patch | |
parent | 84b2b31930881004a73267cf24fe6fe701e0f8a8 (diff) | |
parent | 78c32ad25a3883dc7a127a36673890225f9f54f2 (diff) |
propagate from branch 'org.openembedded.dev' (head acccc4840b95c279164a3eeacf893200164bdc65)
to branch 'org.openembedded.dev.avr32' (head 4a915ee0a28076c53049330f3f2e58c7b85ef7a8)
Diffstat (limited to 'packages/gcc/gcc-4.1.1/pr34130.patch')
-rw-r--r-- | packages/gcc/gcc-4.1.1/pr34130.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.1.1/pr34130.patch b/packages/gcc/gcc-4.1.1/pr34130.patch new file mode 100644 index 0000000000..415335f4b4 --- /dev/null +++ b/packages/gcc/gcc-4.1.1/pr34130.patch @@ -0,0 +1,16 @@ +Index: gcc-4.1.2/gcc/fold-const.c +=================================================================== +--- gcc-4.1.2.orig/gcc/fold-const.c 2007-11-21 18:53:42.000000000 +0100 ++++ gcc-4.1.2/gcc/fold-const.c 2007-11-21 18:56:26.000000000 +0100 +@@ -5339,7 +5339,10 @@ + } + break; + } +- /* FALLTHROUGH */ ++ /* If the constant is negative, we cannot simplify this. */ ++ if (tree_int_cst_sgn (c) == -1) ++ break; ++ /* FALLTHROUGH */ + case NEGATE_EXPR: + if ((t1 = extract_muldiv (op0, c, code, wide_type)) != 0) + return fold_build1 (tcode, ctype, fold_convert (ctype, t1)); |