* toplev.c (get_run_time): Do something sensible for cygwin32.
authorJeffrey A Law <law@cygnus.com>
Fri, 14 Nov 1997 15:44:56 +0000 (15:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 14 Nov 1997 15:44:56 +0000 (08:44 -0700)
From-SVN: r16497

gcc/ChangeLog
gcc/toplev.c

index c7d4a414319b66e9e5ffca12075d0cc093d8e618..5a948803ed10e4723c26da2a6fa416b43af1dd89 100644 (file)
@@ -1,3 +1,7 @@
+Fri Nov 14 08:46:56 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * toplev.c (get_run_time): Do something sensible for cygwin32.
+
 Fri Nov 14 07:24:20 1997  Richard Henderson  <rth@cygnus.com>
 
        * expr.c (expand_builtin_setjmp): Set
index aeffbb3a85c83bfb2466fa75b4994c9dea5bc3fe..43b7d8a6264fc14f0f567e3eac1fd4117a144f3f 100644 (file)
@@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/types.h>
 #include <ctype.h>
 #include <sys/stat.h>
-
-#ifndef _WIN32
+#if !defined (_WIN32) || defined (__CYGWIN32__)
 #ifdef USG
 #undef FLOAT
 #include <sys/param.h>
@@ -989,7 +988,7 @@ int dump_time;
 int
 get_run_time ()
 {
-#ifndef _WIN32
+#if !defined (_WIN32) || defined (__CYGWIN32__)
 #ifdef USG
   struct tms tms;
 #else
@@ -1009,7 +1008,7 @@ get_run_time ()
 
   if (quiet_flag)
     return 0;
-#ifdef _WIN32
+#if defined (_WIN32) && !defined (__CYGWIN32__)
   if (clock() < 0)
     return 0;
   else