summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/timevar.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/timevar.h')
-rw-r--r--contrib/gcc/timevar.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gcc/timevar.h b/contrib/gcc/timevar.h
index f0d2fd2..dcf1701 100644
--- a/contrib/gcc/timevar.h
+++ b/contrib/gcc/timevar.h
@@ -41,9 +41,9 @@
- As a standalone timer, using timevar_start and timevar_stop.
All time elapsed between the two calls is attributed to the
- variable.
+ variable.
*/
-
+
/* This structure stores the various varieties of time that can be
measured. Times are stored in seconds. The time may be an
absolute time or a time difference; in the former case, the time
@@ -67,7 +67,7 @@ struct timevar_time_def
the contents of timevar.def. */
#define DEFTIMEVAR(identifier__, name__) \
- identifier__,
+ identifier__,
typedef enum
{
#include "timevar.def"
@@ -76,6 +76,9 @@ typedef enum
timevar_id_t;
#undef DEFTIMEVAR
+/* Execute the sequence: timevar_pop (TV), return (E); */
+#define POP_TIMEVAR_AND_RETURN(TV, E) return (timevar_pop (TV), (E))
+
extern void init_timevar PARAMS ((void));
extern void timevar_push PARAMS ((timevar_id_t));
extern void timevar_pop PARAMS ((timevar_id_t));
OpenPOWER on IntegriCloud