Don't include times.h for winnt.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 30 Sep 1994 21:29:38 +0000 (17:29 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 30 Sep 1994 21:29:38 +0000 (17:29 -0400)
(get_run_time): Just return zero for winnt.
(main): Don't print memory usage for OS/2 or winnt.

From-SVN: r8182

gcc/toplev.c

index 3d3e62038e9a1c8c1e8ca450fa8b401607662293..4ab582cc08df160021bd1d86b9140e4061a50872 100644 (file)
@@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <ctype.h>
 #include <sys/stat.h>
 
+#ifndef WINNT
 #ifdef USG
 #undef FLOAT
 #include <sys/param.h>
@@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/resource.h>
 #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);