[Bug bootstrap/59199] [4.9 Regression] r205032 caused LTO bootstrap to fail with bootstrap-profile

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 29 14:41:00 GMT 2013


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-11-29
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Reproduced and debugged somewhat.  We have

# DEBUG = &foo

foo_2 = ...;


that's a no-no and confused the operand scanner to record 'foo' as real
operand during the update_stmt on stream-in.

Likely a update_address_taken bug, eventual fix:

@@ -1329,6 +1336,10 @@ non_rewritable_mem_ref_base (tree ref)
   if (DECL_P (ref))
     return NULL_TREE;

+  /* For DEBUG_STMTs we have to look through ADDR_EXPRs.  */
+  if (TREE_CODE (ref) == ADDR_EXPR)
+    ref = TREE_OPERAND (ref, 0);
+
   while (handled_component_p (base))
     base = TREE_OPERAND (base, 0);



More information about the Gcc-bugs mailing list