diff mbox

[2/4] patches/gcc/4.7.0: backport upstream fix for GCC bug 54494

Message ID 2177231.MzoPFoVgV4@flexo
State Accepted
Commit 4b4b765305da
Headers show

Commit Message

Florian Fainelli Sept. 19, 2012, 8:57 a.m. UTC
# HG changeset patch
# User Florian Fainelli <f.fainelli@gmail.com>
# Date 1348043833 -7200
# Node ID a9d2d7870fef02d2a14f6d2902bf7679bf789249
# Parent  3745957b0e7a8cc5ef2001a4b98f098bff6ef658
patches/gcc/4.7.0: backport upstream fix for GCC bug 54494.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54494, also has a serious
impact on the Linux/MIPS kernel build.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

exporting patch:
<fdopen>


--
For unsubscribe information see http://sourceware.org/lists.html#faq
diff mbox

Patch

diff -r 3745957b0e7a -r a9d2d7870fef patches/gcc/4.7.0/001-gcc-bug-54494.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gcc/4.7.0/001-gcc-bug-54494.patch	Wed Sep 19 10:37:13 2012 +0200
@@ -0,0 +1,37 @@ 
+URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191025
+Log:
+2012-09-06  Andrew Pinski  <apinski@cavium.com>
+
+        PR tree-opt/54494
+        * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
+2012-09-06  Andrew Pinski  <apinski@cavium.com>
+
+        PR tree-opt/54494
+        * gcc.dg/tree-ssa/strlen-1.c: New testcase.
+
+
+Added:
+    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/tree-ssa/strlen-1.c
+      - copied unchanged from r191014,
+trunk/gcc/testsuite/gcc.dg/tree-ssa/strlen-1.c
+Modified:
+    branches/gcc-4_7-branch/   (props changed)
+    branches/gcc-4_7-branch/gcc/ChangeLog
+    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
+    branches/gcc-4_7-branch/gcc/tree-inline.c
+
+Propchange: branches/gcc-4_7-branch/
+            ('svn:mergeinfo' modified)
+
+---
+--- gcc-4_7-branch/gcc/tree-inline.c	2012/09/06 13:47:33	191024
++++ gcc-4_7-branch/gcc/tree-inline.c	2012/09/06 13:51:37	191025
+@@ -871,6 +871,7 @@
+ 			     ptr, TREE_OPERAND (*tp, 1));
+ 	  TREE_THIS_NOTRAP (*tp) = TREE_THIS_NOTRAP (old);
+ 	  TREE_THIS_VOLATILE (*tp) = TREE_THIS_VOLATILE (old);
++	  TREE_SIDE_EFFECTS (*tp) = TREE_SIDE_EFFECTS (old);
+ 	  TREE_NO_WARNING (*tp) = TREE_NO_WARNING (old);
+ 	  *walk_subtrees = 0;
+ 	  return NULL;
+