Commit 8f9a402c by Danny Smith Committed by Danny Smith

timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.

* timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
(times): Don't ever declare if not HAVE_TIMES.
(clock): Don't ever declare if not HAVE_CLOCK.

From-SVN: r62175
parent f22d8308
2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
* timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
(times): Don't ever declare if not HAVE_TIMES.
(clock): Don't ever declare if not HAVE_CLOCK.
2003-01-30 Richard Henderson <rth@redhat.com> 2003-01-30 Richard Henderson <rth@redhat.com>
* flow.c (update_life_info): Zap life info after cleanup_cfg. * flow.c (update_life_info): Zap life info after cleanup_cfg.
......
...@@ -33,7 +33,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -33,7 +33,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "rtl.h" #include "rtl.h"
#include "toplev.h" #include "toplev.h"
#ifndef HAVE_CLOCK_T #ifndef HAVE_CLOCK_T
typedef int clock_t; typedef int clock_t;
#endif #endif
...@@ -48,16 +47,6 @@ struct tms ...@@ -48,16 +47,6 @@ struct tms
}; };
#endif #endif
#if defined HAVE_DECL_GETRUSAGE && !HAVE_DECL_GETRUSAGE
extern int getrusage PARAMS ((int, struct rusage *));
#endif
#if defined HAVE_DECL_TIMES && !HAVE_DECL_TIMES
extern clock_t times PARAMS ((struct tms *));
#endif
#if defined HAVE_DECL_CLOCK && !HAVE_DECL_CLOCK
extern clock_t clock PARAMS ((void));
#endif
#ifndef RUSAGE_SELF #ifndef RUSAGE_SELF
# define RUSAGE_SELF 0 # define RUSAGE_SELF 0
#endif #endif
...@@ -81,17 +70,26 @@ extern clock_t clock PARAMS ((void)); ...@@ -81,17 +70,26 @@ extern clock_t clock PARAMS ((void));
/* Prefer times to getrusage to clock (each gives successively less /* Prefer times to getrusage to clock (each gives successively less
information). */ information). */
#ifdef HAVE_TIMES #ifdef HAVE_TIMES
# if defined HAVE_DECL_TIMES && !HAVE_DECL_TIMES
extern clock_t times PARAMS ((struct tms *));
# endif
# define USE_TIMES # define USE_TIMES
# define HAVE_USER_TIME # define HAVE_USER_TIME
# define HAVE_SYS_TIME # define HAVE_SYS_TIME
# define HAVE_WALL_TIME # define HAVE_WALL_TIME
#else #else
#ifdef HAVE_GETRUSAGE #ifdef HAVE_GETRUSAGE
# if defined HAVE_DECL_GETRUSAGE && !HAVE_DECL_GETRUSAGE
extern int getrusage PARAMS ((int, struct rusage *));
# endif
# define USE_GETRUSAGE # define USE_GETRUSAGE
# define HAVE_USER_TIME # define HAVE_USER_TIME
# define HAVE_SYS_TIME # define HAVE_SYS_TIME
#else #else
#ifdef HAVE_CLOCK #ifdef HAVE_CLOCK
# if defined HAVE_DECL_CLOCK && !HAVE_DECL_CLOCK
extern clock_t clock PARAMS ((void));
# endif
# define USE_CLOCK # define USE_CLOCK
# define HAVE_USER_TIME # define HAVE_USER_TIME
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment