[debug-early] reuse variable DIEs and fix their context

Jason Merrill jason@redhat.com
Fri Sep 12 15:15:00 GMT 2014


On 09/11/2014 08:51 PM, Aldy Hernandez wrote:
> -  timevar_start (TV_PHASE_DEFERRED);

> -  timevar_stop (TV_PHASE_DEFERRED);
> -  timevar_start (TV_PHASE_OPT_GEN);

Why?

>    /* Generate hidden aliases for Java.  */
> -  if (candidates)
> +  if (java_hidden_aliases)
>      {
> -      build_java_method_aliases (candidates);
> -      delete candidates;
> +      build_java_method_aliases (java_hidden_aliases);
> +      delete java_hidden_aliases;
>      }

Didn't it work to move this before finalize?  I think the VTV stuff is 
all that really needs to come after it, and that can move out of the 
front end if this hook is a problem (which I don't really think it is).

Jason



More information about the Gcc-patches mailing list