This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tuples] Avoid copying in gimplifier


Hi,
this seems to fix it.  x86_64 va-arg expander use OVF expression
in multiple statements built.  This naturaly breaks when we don't copy
everything.

I am bootstrapping now and will commit it as obvious if it passes.

Honza

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 136895)
+++ config/i386/i386.c	(working copy)
@@ -5661,7 +5661,7 @@
 
   t = build2 (POINTER_PLUS_EXPR, TREE_TYPE (t), t,
 	      size_int (rsize * UNITS_PER_WORD));
-  t = build2 (GIMPLE_MODIFY_STMT, TREE_TYPE (ovf), ovf, t);
+  t = build2 (GIMPLE_MODIFY_STMT, TREE_TYPE (ovf), unshare_expr (ovf), t);
   gimplify_and_add (t, pre_p);
 
   if (container)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]