This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/55792] [4.8 Regression] Bad memory access with profiledbootstrap and LTO
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Jan 2013 13:48:47 +0000
- Subject: [Bug bootstrap/55792] [4.8 Regression] Bad memory access with profiledbootstrap and LTO
- Auto-submitted: auto-generated
- References: <bug-55792-4@http.gcc.gnu.org/bugzilla/>
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)))