[lto] Fix improper timevar nesting
Diego Novillo
dnovillo@google.com
Fri Feb 20 09:23:00 GMT 2009
I had missed the early return out of lto_1_to_1_map. This was
causing various failures with -ftime-report.
Tested on x86_64.
Diego.
lto/ChangeLog
* lto.c (lto_1_to_1_map): Make sure the timer is popped
when returning early.
Index: lto/lto.c
===================================================================
--- lto/lto.c (revision 144312)
+++ lto/lto.c (working copy)
@@ -522,7 +522,7 @@ lto_1_to_1_map (void)
{
set = cgraph_node_set_new ();
VEC_safe_push (cgraph_node_set, gc, lto_cgraph_node_sets, set);
- return;
+ goto finish;
}
pmap = pointer_map_create ();
@@ -548,6 +548,7 @@ lto_1_to_1_map (void)
pointer_map_destroy (pmap);
+finish:
timevar_pop (TV_WHOPR_WPA);
}
More information about the Gcc-patches
mailing list