This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix oversight in timevar_print
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 May 2007 23:25:47 +0200
- Subject: Fix oversight in timevar_print
Tested on i586-suse-linux, applied as obvious.
2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
* timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
of ASSERT_CHECKING. Tweak message.
--
Eric Botcazou
Index: timevar.c
===================================================================
--- timevar.c (revision 124378)
+++ timevar.c (working copy)
@@ -483,10 +483,9 @@ timevar_print (FILE *fp)
fprintf (fp, "Extra diagnostic checks enabled; compiler may run slowly.\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");
+#ifndef ENABLE_ASSERT_CHECKING
+ fprintf (fp, "Internal checks disabled; compiler is not suited for release.\n");
+ fprintf (fp, "Configure with --enable-checking=release to enable checks.\n");
#endif
#endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME)