From ea11ca7ec12df7f53d437a738f984e26ef7ab85b Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 9 Jun 2000 16:23:47 +0000 Subject: timevar.def: Add TV_EXPAND. * timevar.def: Add TV_EXPAND. * timevar.c (timevar_print): Update timing information. * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining. * stmt.c (expand_return): Check for error_mark_node. cp/: * semantics.c (expand_body): Push to TV_EXPAND. * optimize.c (optimize_function): Push to TV_INTEGRATION. * decl.c (start_function): Always call announce_function. * tinfo2.cc: Just declare abort. From-SVN: r34470 --- gcc/cp/semantics.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/cp/semantics.c') diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 505c487..7d9e1da 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -35,6 +35,7 @@ #include "ggc.h" #include "rtl.h" #include "output.h" +#include "timevar.h" /* There routines provide a modular interface to perform many parsing operations. They may therefore be used during actual parsing, or @@ -2788,6 +2789,8 @@ expand_body (fn) return; } + timevar_push (TV_EXPAND); + /* Optimize the body of the function before expanding it. */ optimize_function (fn); @@ -2838,4 +2841,6 @@ expand_body (fn) /* And restore the current source position. */ lineno = saved_lineno; input_filename = saved_input_filename; + + timevar_pop (TV_EXPAND); } -- cgit v1.1