diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2002-12-16 18:23:00 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-12-16 18:23:00 +0000 |
commit | 4977bab6ed59f01c73f9c8b9e92298706df9b6d5 (patch) | |
tree | c259697c448b0c6f548f153c48c46a8d7a75970f /gcc/timevar.c | |
parent | b51dc045004ee7eb8d2bf4358ddf22a6cc6c1d00 (diff) | |
download | gcc-4977bab6ed59f01c73f9c8b9e92298706df9b6d5.tar.gz |
Merge basic-improvements-branch to trunk
From-SVN: r60174
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r-- | gcc/timevar.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c index 7a10fe78b47..3697a5a2ed8 100644 --- a/gcc/timevar.c +++ b/gcc/timevar.c @@ -21,6 +21,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "config.h" #include "system.h" +#include "coretypes.h" +#include "tm.h" #include "intl.h" #include "rtl.h" @@ -100,13 +102,13 @@ extern clock_t clock PARAMS ((void)); precompute them. Whose wonderful idea was it to make all those _constants_ variable at run time, anyway? */ #ifdef USE_TIMES -static float ticks_to_msec; -#define TICKS_TO_MSEC (1 / (float)TICKS_PER_SECOND) +static double ticks_to_msec; +#define TICKS_TO_MSEC (1 / (double)TICKS_PER_SECOND) #endif #ifdef USE_CLOCK -static float clocks_to_msec; -#define CLOCKS_TO_MSEC (1 / (float)CLOCKS_PER_SEC) +static double clocks_to_msec; +#define CLOCKS_TO_MSEC (1 / (double)CLOCKS_PER_SEC) #endif #include "flags.h" @@ -449,7 +451,7 @@ timevar_print (fp) for (id = 0; id < (unsigned int) TIMEVAR_LAST; ++id) { struct timevar_def *tv = &timevars[(timevar_id_t) id]; - const float tiny = 5e-3; + const double tiny = 5e-3; /* Don't print the total execution time here; that goes at the end. */ |