timevar.c (timevar_print): Change reference of --disable-checking to --enable-checkin...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sat, 21 Apr 2007 21:55:33 +0000 (21:55 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 21 Apr 2007 21:55:33 +0000 (14:55 -0700)
2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * timevar.c (timevar_print): Change reference of --disable-checking to
        --enable-checking=release.  Also warn if assert checking is disabled.

From-SVN: r124025

gcc/ChangeLog
gcc/timevar.c

index 8f74ec8492f0bc5c342772af077013d33d36a90d..19e47fc6aa0594520b53c114cd3e9f85c2170fbf 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * timevar.c (timevar_print): Change reference of --disable-checking to
+       --enable-checking=release.  Also warn if assert checking is disabled.
+
 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
 
        PR C/30265
index 09273841ff5e58e57f72e328bdd8a439175eacbd..01cc880e595a7d626b4413294ec001c0d723570b 100644 (file)
@@ -481,7 +481,12 @@ timevar_print (FILE *fp)
 
 #ifdef ENABLE_CHECKING
   fprintf (fp, "Extra diagnostic checks enabled; compiler may run slowly.\n");
-  fprintf (fp, "Configure with --disable-checking to disable checks.\n");
+  fprintf (fp, "Configure with --enable-checking=release to disable checks.\n");
+#endif
+#ifndef ASSERT_CHECKING
+  fprintf (fp, "Assert checking was disable; if you do an official compiling\n");
+  fprintf (fp, "time testing please use --enable-checking=release instead of\n");
+  fprintf (fp, "--disable-checking.\n");
 #endif
 
 #endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME)