summaryrefslogtreecommitdiff
path: root/gcc/timevar.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-21 23:00:23 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-21 23:00:23 +0000
commit1da863225a6557fbf4c60556f620cee43bbb162f (patch)
tree4ea0ed08ffb8f8e095b4d94390460ac81a328a89 /gcc/timevar.c
parentc627001c253cefb4fbec1d0502a8710b6f746bbd (diff)
downloadgcc-1da863225a6557fbf4c60556f620cee43bbb162f.tar.gz
* Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
* timevar.c: Do not include any core headers. (timevar_print): De-i18n-ize. (print_time): Likewise. * timevar.h (timevar_push, timevar_pop): Make inline functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r--gcc/timevar.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c
index 4ba2864a235..df671e4c27c 100644
--- a/gcc/timevar.c
+++ b/gcc/timevar.c
@@ -26,11 +26,7 @@ along with GCC; see the file COPYING3. If not see
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
-#include "coretypes.h"
-#include "tm.h"
-#include "intl.h"
-#include "rtl.h"
-#include "toplev.h"
+#include "timevar.h"
#ifndef HAVE_CLOCK_T
typedef int clock_t;
@@ -109,8 +105,8 @@ static double clocks_to_msec;
#define CLOCKS_TO_MSEC (1 / (double)CLOCKS_PER_SEC)
#endif
-#include "flags.h"
-#include "timevar.h"
+/* True if timevars should be used. In GCC, this happens with
+ the -ftime-report flag. */
bool timevar_enable;
@@ -408,7 +404,7 @@ timevar_print (FILE *fp)
TIMEVAR. */
start_time = now;
- fputs (_("\nExecution times (seconds)\n"), fp);
+ fputs ("\nExecution times (seconds)\n", fp);
for (id = 0; id < (unsigned int) TIMEVAR_LAST; ++id)
{
struct timevar_def *tv = &timevars[(timevar_id_t) id];
@@ -466,7 +462,7 @@ timevar_print (FILE *fp)
}
/* Print total time. */
- fputs (_(" TOTAL :"), fp);
+ fputs (" TOTAL :", fp);
#ifdef HAVE_USER_TIME
fprintf (fp, "%7.2f ", total->user);
#endif
@@ -499,7 +495,7 @@ print_time (const char *str, long total)
{
long all_time = get_run_time ();
fprintf (stderr,
- _("time in %s: %ld.%06ld (%ld%%)\n"),
+ "time in %s: %ld.%06ld (%ld%%)\n",
str, total / 1000000, total % 1000000,
all_time == 0 ? 0
: (long) (((100.0 * (double) total) / (double) all_time) + .5));