This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
get_run_time is part of libiberty. So, why do we still have it in GCC core? Ok to commit the appended patch? I've bootstrapped/regtested on x86_64-linux-gnu. Andreas * timevar.c (get_run_time): Remove function provided also by libiberty. * timevar.h: Remove get_run_time declaration. ============================================================ Index: gcc/timevar.c --- gcc/timevar.c 26 Apr 2003 15:19:05 -0000 1.28 +++ gcc/timevar.c 16 Jun 2003 16:45:24 -0000 @@ -1,5 +1,5 @@ /* Timing variables for measuring compiler performance. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2003 Free Software Foundation, Inc. Contributed by Alex Samuel <samuel@codesourcery.com> This file is part of GCC. @@ -511,17 +511,6 @@ timevar_print (fp) #endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME) || defined (HAVE_WALL_TIME) */ -} - -/* Returns time (user + system) used so far by the compiler process, - in microseconds. */ - -long -get_run_time () -{ - struct timevar_time_def total_elapsed; - timevar_get (TV_TOTAL, &total_elapsed); - return total_elapsed.user + total_elapsed.sys; } /* Prints a message to stderr stating that time elapsed in STR is ============================================================ Index: gcc/timevar.h --- gcc/timevar.h 26 Apr 2003 15:19:05 -0000 1.11 +++ gcc/timevar.h 16 Jun 2003 16:45:24 -0000 @@ -1,5 +1,5 @@ /* Timing variables for measuring compiler performance. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2003 Free Software Foundation, Inc. Contributed by Alex Samuel <samuel@codesourcery.com> This file is part of GCC. @@ -88,7 +88,6 @@ extern void timevar_get PARAMS ((timevar extern void timevar_print PARAMS ((FILE *)); /* Provided for backward compatibility. */ -extern long get_run_time PARAMS ((void)); extern void print_time PARAMS ((const char *, long)); #endif /* ! GCC_TIMEVAR_H */ -- Andreas Jaeger, SuSE Linux AG, aj@suse.de, http://www.suse.de/~aj GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |