Mercurial > hg > CbC > CbC_gcc
comparison gcc/timevar.h @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
78 TIMEVAR_LAST | 78 TIMEVAR_LAST |
79 } | 79 } |
80 timevar_id_t; | 80 timevar_id_t; |
81 #undef DEFTIMEVAR | 81 #undef DEFTIMEVAR |
82 | 82 |
83 /* True if timevars should be used. In GCC, this happens with | |
84 the -ftime-report flag. */ | |
85 extern bool timevar_enable; | |
86 | |
87 /* Total amount of memory allocated by garbage collector. */ | |
88 extern size_t timevar_ggc_mem_total; | |
89 | |
83 /* Execute the sequence: timevar_pop (TV), return (E); */ | 90 /* Execute the sequence: timevar_pop (TV), return (E); */ |
84 #define POP_TIMEVAR_AND_RETURN(TV, E) do { timevar_pop (TV); return (E); }while(0) | 91 #define POP_TIMEVAR_AND_RETURN(TV, E) do { timevar_pop (TV); return (E); }while(0) |
85 #define timevar_pop(TV) do { if (timevar_enable) timevar_pop_1 (TV); }while(0) | |
86 #define timevar_push(TV) do { if (timevar_enable) timevar_push_1 (TV); }while(0) | |
87 | 92 |
88 extern void timevar_init (void); | 93 extern void timevar_init (void); |
89 extern void timevar_push_1 (timevar_id_t); | 94 extern void timevar_push_1 (timevar_id_t); |
90 extern void timevar_pop_1 (timevar_id_t); | 95 extern void timevar_pop_1 (timevar_id_t); |
91 extern void timevar_start (timevar_id_t); | 96 extern void timevar_start (timevar_id_t); |
92 extern void timevar_stop (timevar_id_t); | 97 extern void timevar_stop (timevar_id_t); |
93 extern void timevar_print (FILE *); | 98 extern void timevar_print (FILE *); |
94 | 99 |
95 /* Provided for backward compatibility. */ | 100 /* Provided for backward compatibility. */ |
101 static inline void | |
102 timevar_push (timevar_id_t tv) | |
103 { | |
104 if (timevar_enable) | |
105 timevar_push_1 (tv); | |
106 } | |
107 | |
108 static inline void | |
109 timevar_pop (timevar_id_t tv) | |
110 { | |
111 if (timevar_enable) | |
112 timevar_pop_1 (tv); | |
113 } | |
114 | |
96 extern void print_time (const char *, long); | 115 extern void print_time (const char *, long); |
97 | 116 |
98 extern bool timevar_enable; | |
99 | |
100 extern size_t timevar_ggc_mem_total; | |
101 | |
102 #endif /* ! GCC_TIMEVAR_H */ | 117 #endif /* ! GCC_TIMEVAR_H */ |