[lto][patch] Avoid another case of local variables reachable from global trees

Diego Novillo dnovillo@google.com
Wed Jul 2 15:03:00 GMT 2008


2008/7/2 Rafael Espindola <espindola@google.com>:

> 2008-07-02  Rafael Espindola  <espindola@google.com>
>
>        * tree.c (reset_lang_specific): Remove local VAR_DECLs from
>        DECL_DEBUG_EXPR of other VAR_DECLs.
>
> +  if (TREE_CODE (decl) == VAR_DECL)
> +    {
> +      tree expr = DECL_DEBUG_EXPR (decl);
> +      if (expr && TREE_CODE (expr) == VAR_DECL &&
> +	  !TREE_STATIC (expr) && !DECL_EXTERNAL (expr))
> +	SET_DECL_DEBUG_EXPR (decl, NULL_TREE);

Line up predicates.

OK with that change.  So, now this will become a FIXME for the
FEs to emit this information early in the debug information?  Or
have we already emitted it at this point?


Diego.



More information about the Gcc-patches mailing list