From: Richard Kenner Date: Fri, 30 Sep 1994 21:29:38 +0000 (-0400) Subject: Don't include times.h for winnt. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb910b5a56c7305decd563a2d737ac88b4e55492;p=gcc.git Don't include times.h for winnt. (get_run_time): Just return zero for winnt. (main): Don't print memory usage for OS/2 or winnt. From-SVN: r8182 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 3d3e62038e9..4ab582cc08d 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include +#ifndef WINNT #ifdef USG #undef FLOAT #include @@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #endif #endif +#endif #include "input.h" #include "tree.h" @@ -853,6 +855,9 @@ int dump_time; int get_run_time () { +#ifdef WINNT + return 0; +#else #ifdef USG struct tms tms; #else @@ -885,6 +890,7 @@ get_run_time () return (vms_times.proc_user_time + vms_times.proc_system_time) * 10000; #endif #endif +#endif } #define TIMEVAR(VAR, BODY) \ @@ -3943,8 +3949,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! compile_file (filename); -#ifndef OS2 -#ifndef VMS +#if !defined(OS2) && !defined(VMS) && !defined(WINNT) if (flag_print_mem) { #ifdef __alpha @@ -3962,8 +3967,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! system ("ps v"); #endif /* not USG */ } -#endif /* not VMS */ -#endif /* not OS2 */ +#endif /* not OS2 and not VMS and not WINNT */ if (errorcount) exit (FATAL_EXIT_CODE);