timevar.def: define TV_NAME_LOOKUP.

* timevar.def: define TV_NAME_LOOKUP.
        * timevar.c (timevar_pop): Be verbose when aborting.

From-SVN: r61260
This commit is contained in:
Gabriel Dos Reis 2003-01-14 03:38:24 +00:00 committed by Gabriel Dos Reis
parent 58b23af855
commit fd371a93fb
3 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);

View File

@ -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")