summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc-4.2.2
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2007-11-30 11:41:06 +0000
committerRod Whitby <rod@whitby.id.au>2007-11-30 11:41:06 +0000
commit762e232f884a306456ff24b65061ba2c87728413 (patch)
tree41eb5cc03456a89e9b2310fc5d0f5e530743ec79 /packages/gcc/gcc-4.2.2
parent6b1fd5f198553ce441cfe7bb8b94eff1226874b6 (diff)
parent39565118303f565d78a6b5429eafdbad99ee6351 (diff)
merge of '0a81de11f045dd65f6ea4c630250337cc8f718b2'
and '0dbb48946ab15c0ee9c232d1a1fc31e5b65037cd'
Diffstat (limited to 'packages/gcc/gcc-4.2.2')
-rw-r--r--packages/gcc/gcc-4.2.2/pr34130.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.2.2/pr34130.patch b/packages/gcc/gcc-4.2.2/pr34130.patch
new file mode 100644
index 0000000000..415335f4b4
--- /dev/null
+++ b/packages/gcc/gcc-4.2.2/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));