aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-09-30 17:29:38 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-09-30 17:29:38 -0400
commiteb910b5a56c7305decd563a2d737ac88b4e55492 (patch)
treed1103c7bf5c928f6cf85adff62ec7d2895b5226c
parent369404d97d31cd99ba163cc2fdb2736bd901162f (diff)
downloadgcc-eb910b5a56c7305decd563a2d737ac88b4e55492.zip
gcc-eb910b5a56c7305decd563a2d737ac88b4e55492.tar.gz
gcc-eb910b5a56c7305decd563a2d737ac88b4e55492.tar.bz2
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
-rw-r--r--gcc/toplev.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 3d3e620..4ab582c 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 <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);