http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55792



--- Comment #35 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-14 
13:48:47 UTC ---

And the following may fix it at a single central place.



Index: gcc/tree-inline.c

===================================================================

--- gcc/tree-inline.c   (revision 195144)

+++ gcc/tree-inline.c   (working copy)

@@ -2563,11 +2563,11 @@ setup_one_parameter (copy_body_data *id,

                     basic_block bb, tree *vars)

 {

   gimple init_stmt = NULL;

-  tree var;

-  tree rhs = value;

+  tree var, rhs;

   tree def = (gimple_in_ssa_p (cfun)

              ? ssa_default_def (id->src_cfun, p) : NULL);



+  rhs = value = unshare_expr_without_location (value);

   if (value

       && value != error_mark_node

       && !useless_type_conversion_p (TREE_TYPE (p), TREE_TYPE (value)))

Reply via email to