aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-01-14 03:38:24 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2003-01-14 03:38:24 +0000
commitfd371a93fb81f1db3af0711b4764742f81930de1 (patch)
treea5adf3e81423247e9be985b2ee983de52a064d8d /gcc
parent58b23af85594fcce2e5a829a7a91e4e0691fafcd (diff)
downloadgcc-fd371a93fb81f1db3af0711b4764742f81930de1.zip
gcc-fd371a93fb81f1db3af0711b4764742f81930de1.tar.gz
gcc-fd371a93fb81f1db3af0711b4764742f81930de1.tar.bz2
timevar.def: define TV_NAME_LOOKUP.
* timevar.def: define TV_NAME_LOOKUP. * timevar.c (timevar_pop): Be verbose when aborting. From-SVN: r61260
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/timevar.c6
-rw-r--r--gcc/timevar.def1
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d720771..83bdae6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * timevar.def: define TV_NAME_LOOKUP.
+ * timevar.c (timevar_pop): Be verbose when aborting.
+
2003-01-13 Andreas Schwab <schwab@suse.de>
* Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
diff --git a/gcc/timevar.c b/gcc/timevar.c
index feee994..195040c 100644
--- a/gcc/timevar.c
+++ b/gcc/timevar.c
@@ -319,7 +319,11 @@ timevar_pop (timevar)
return;
if (&timevars[timevar] != stack->timevar)
- abort ();
+ {
+ sorry ("cannot timevar_pop '%s' when top of timevars stack is '%s'",
+ timevars[timevar].name, stack->timevar->name);
+ abort ();
+ }
/* What time is it? */
get_time (&now);
diff --git a/gcc/timevar.def b/gcc/timevar.def
index 49eeedb..4d1eba8 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -51,6 +51,7 @@ DEFTIMEVAR (TV_LIFE_UPDATE , "life info update")
DEFTIMEVAR (TV_CPP , "preprocessing")
DEFTIMEVAR (TV_LEX , "lexical analysis")
DEFTIMEVAR (TV_PARSE , "parser")
+DEFTIMEVAR (TV_NAME_LOOKUP , "name lookup")
DEFTIMEVAR (TV_EXPAND , "expand")
DEFTIMEVAR (TV_VARCONST , "varconst")
DEFTIMEVAR (TV_INTEGRATION , "integration")