summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-06-16 22:40:47 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2003-06-16 22:40:47 +0200
commit33b0d00f2a41e9a0dcdfeeabfd61242ea46a9b04 (patch)
tree4a1f5a8d5497ba07bc73cfff5ce06aa0ef5b9c9c
parent3391875b693deb002dd58198aec31e13a0ffc18b (diff)
downloadgcc-33b0d00f2a41e9a0dcdfeeabfd61242ea46a9b04.tar.gz
timevar.c (get_run_time): Remove function provided also by libiberty.
* timevar.c (get_run_time): Remove function provided also by libiberty. * timevar.h: Remove get_run_time declaration. From-SVN: r68037
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/timevar.c13
-rw-r--r--gcc/timevar.h3
3 files changed, 8 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 35afeb5b7de..b515689e1e3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-16 Andreas Jaeger <aj@suse.de>
+
+ * timevar.c (get_run_time): Remove function provided also by
+ libiberty.
+ * timevar.h: Remove get_run_time declaration.
+
2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
* config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
diff --git a/gcc/timevar.c b/gcc/timevar.c
index 534001bfe10..d793029add9 100644
--- a/gcc/timevar.c
+++ b/gcc/timevar.c
@@ -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.
@@ -513,17 +513,6 @@ timevar_print (fp)
|| 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
TOTAL (given in microseconds). */
diff --git a/gcc/timevar.h b/gcc/timevar.h
index abcbb95dee0..5de57ed6e9d 100644
--- a/gcc/timevar.h
+++ b/gcc/timevar.h
@@ -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_id_t, struct timevar_time_def *));
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 */