diff options
author | Andreas Jaeger <aj@suse.de> | 2003-07-06 14:35:56 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2003-07-06 14:35:56 +0200 |
commit | 46c5ad278b15d1db509093032ea1eed00459b3a0 (patch) | |
tree | 2e1f352052c069dc89b540d510fb95d6fac245ed /gcc/timevar.c | |
parent | 6623b2f26dd64817454896e5b20a793e8d6ac14c (diff) | |
download | gcc-46c5ad278b15d1db509093032ea1eed00459b3a0.tar.gz |
sbitmap.c: Convert prototypes to ISO C90.
* sbitmap.c: Convert prototypes to ISO C90.
* sbitmap.h: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
* sched-deps.c: Likewise.
* sched-ebb.c: Likewise.
* sched-int.h: Likewise.
* sched-rgn.c: Likewise.
* sched-vis.c: Likewise.
* sibcall.c: Likewise.
* simplify-rtx.c: Likewise.
* sreal.c: Likewise.
* sreal.h: Likewise.
* ssa-ccp.c: Likewise.
* ssa-dce.c: Likewise.
* ssa.c: Likewise.
* ssa.h: Likewise.
* stack.h: Likewise.
* stmt.c: Likewise.
* stor-layout.c: Likewise.
* stringpool.c: Likewise.
* target.h: Likewise.
* timevar.c: Likewise.
* timevar.h: Likewise.
* tlink.c: Likewise.
* tracer.c: Likewise.
* tree-inline.c: Likewise.
* tree-inline.h: Likewise.
* tree.c: Likewise.
* tree.h: Likewise.
From-SVN: r69002
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r-- | gcc/timevar.c | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c index d793029add9..776f575eb69 100644 --- a/gcc/timevar.c +++ b/gcc/timevar.c @@ -71,7 +71,7 @@ struct tms information). */ #ifdef HAVE_TIMES # if defined HAVE_DECL_TIMES && !HAVE_DECL_TIMES - extern clock_t times PARAMS ((struct tms *)); + extern clock_t times (struct tms *); # endif # define USE_TIMES # define HAVE_USER_TIME @@ -168,19 +168,17 @@ static struct timevar_stack_def *unused_stack_instances; element. */ static struct timevar_time_def start_time; -static void get_time - PARAMS ((struct timevar_time_def *)); -static void timevar_accumulate - PARAMS ((struct timevar_time_def *, struct timevar_time_def *, - struct timevar_time_def *)); +static void get_time (struct timevar_time_def *); +static void timevar_accumulate (struct timevar_time_def *, + struct timevar_time_def *, + struct timevar_time_def *); /* Fill the current times into TIME. The definition of this function also defines any or all of the HAVE_USER_TIME, HAVE_SYS_TIME, and HAVE_WALL_TIME macros. */ static void -get_time (now) - struct timevar_time_def *now; +get_time (struct timevar_time_def *now) { now->user = 0; now->sys = 0; @@ -211,10 +209,9 @@ get_time (now) /* Add the difference between STOP_TIME and START_TIME to TIMER. */ static void -timevar_accumulate (timer, start_time, stop_time) - struct timevar_time_def *timer; - struct timevar_time_def *start_time; - struct timevar_time_def *stop_time; +timevar_accumulate (struct timevar_time_def *timer, + struct timevar_time_def *start_time, + struct timevar_time_def *stop_time) { timer->user += stop_time->user - start_time->user; timer->sys += stop_time->sys - start_time->sys; @@ -224,7 +221,7 @@ timevar_accumulate (timer, start_time, stop_time) /* Initialize timing variables. */ void -timevar_init () +timevar_init (void) { timevar_enable = true; @@ -253,8 +250,7 @@ timevar_init () TIMEVAR cannot be running as a standalone timer. */ void -timevar_push (timevar) - timevar_id_t timevar; +timevar_push (timevar_id_t timevar) { struct timevar_def *tv = &timevars[timevar]; struct timevar_stack_def *context; @@ -306,8 +302,7 @@ timevar_push (timevar) timing variable. */ void -timevar_pop (timevar) - timevar_id_t timevar; +timevar_pop (timevar_id_t timevar) { struct timevar_time_def now; struct timevar_stack_def *popped = stack; @@ -346,8 +341,7 @@ timevar_pop (timevar) attributed to TIMEVAR. */ void -timevar_start (timevar) - timevar_id_t timevar; +timevar_start (timevar_id_t timevar) { struct timevar_def *tv = &timevars[timevar]; @@ -370,8 +364,7 @@ timevar_start (timevar) is attributed to it. */ void -timevar_stop (timevar) - timevar_id_t timevar; +timevar_stop (timevar_id_t timevar) { struct timevar_def *tv = &timevars[timevar]; struct timevar_time_def now; @@ -391,9 +384,7 @@ timevar_stop (timevar) update-to-date information even if TIMEVAR is currently running. */ void -timevar_get (timevar, elapsed) - timevar_id_t timevar; - struct timevar_time_def *elapsed; +timevar_get (timevar_id_t timevar, struct timevar_time_def *elapsed) { struct timevar_def *tv = &timevars[timevar]; struct timevar_time_def now; @@ -419,8 +410,7 @@ timevar_get (timevar, elapsed) for normalizing the others, and is displayed last. */ void -timevar_print (fp) - FILE *fp; +timevar_print (FILE *fp) { /* Only print stuff if we have some sort of time information. */ #if defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME) || defined (HAVE_WALL_TIME) @@ -517,9 +507,7 @@ timevar_print (fp) TOTAL (given in microseconds). */ void -print_time (str, total) - const char *str; - long total; +print_time (const char *str, long total) { long all_time = get_run_time (); fprintf (stderr, |