This is the mail archive of the gcc-bugs@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]

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


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

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Richard Biener from comment #4)
>
> 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);

I tried it and I still got the same error:


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