summaryrefslogtreecommitdiffstats
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-09 16:23:47 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-09 16:23:47 +0000
commita6260fc7cbd357861d5a9b52ece9180843c26ebe (patch)
tree0298128e12299bf28f76cc3ef5ad263e2fa59173 /gcc/cp/optimize.c
parentec0a21033a8b56a7d188dd98e50264dc5f2393fd (diff)
downloadppe42-gcc-a6260fc7cbd357861d5a9b52ece9180843c26ebe.tar.gz
ppe42-gcc-a6260fc7cbd357861d5a9b52ece9180843c26ebe.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34470 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 52292ffbcf1..b4462073333 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -28,6 +28,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "input.h"
#include "integrate.h"
#include "varray.h"
+#include "timevar.h"
/* To Do:
@@ -806,6 +807,8 @@ optimize_function (fn)
tree prev_fn;
struct saved_scope *s;
+ timevar_push (TV_INTEGRATION);
+
/* Clear out ID. */
memset (&id, 0, sizeof (id));
@@ -836,6 +839,8 @@ optimize_function (fn)
/* Clean up. */
VARRAY_FREE (id.fns);
VARRAY_FREE (id.target_exprs);
+
+ timevar_pop (TV_INTEGRATION);
}
}
OpenPOWER on IntegriCloud