summaryrefslogtreecommitdiff
path: root/lang/gcc/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc/files')
-rw-r--r--lang/gcc/files/patch-gcc-gimplify.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/gcc/files/patch-gcc-gimplify.c b/lang/gcc/files/patch-gcc-gimplify.c
new file mode 100644
index 000000000000..1623f6010d93
--- /dev/null
+++ b/lang/gcc/files/patch-gcc-gimplify.c
@@ -0,0 +1,16 @@
+Index: gcc/gimplify.c
+===================================================================
+--- gcc/gimplify.c (revision 120301)
++++ gcc/gimplify.c (working copy)
+@@ -1013,8 +1013,9 @@
+ /* The wrapper is on the RHS of an assignment that we're pushing
+ down. */
+ gcc_assert (TREE_CODE (temp) == INIT_EXPR
+- || TREE_CODE (temp) == MODIFY_EXPR);
+- TREE_OPERAND (temp, 1) = *p;
++ || TREE_CODE (temp) == MODIFY_EXPR
++ || TREE_CODE (temp) == GIMPLE_MODIFY_STMT);
++ GENERIC_TREE_OPERAND (temp, 1) = *p;
+ *p = temp;
+ }
+ else