This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Make -ftime-report print something about checking
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 21 Jan 2004 17:40:23 -0500
- Subject: [PATCH]: Make -ftime-report print something about checking
This is to prevent people from reporting compile time regressions with
checking on.
2004-01-21 Daniel Berlin (dberlin@dberlin.org)
* timevar.c (timevar_print): Print something about checking if it is
on.
Index: timevar.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/timevar.c,v
retrieving revision 1.20.2.10
diff -u -3 -p -r1.20.2.10 timevar.c
--- timevar.c 23 Jul 2003 16:59:58 -0000 1.20.2.10
+++ timevar.c 21 Jan 2004 22:36:46 -0000
@@ -500,6 +500,9 @@ timevar_print (FILE *fp)
#endif /* defined (HAVE_USER_TIME) || defined (HAVE_SYS_TIME)
|| defined (HAVE_WALL_TIME) */
+#ifdef ENABLE_CHECKING
+ fprintf (fp, "Extra diagnostic checks enabled; compiler may run
slowly. Configure with --disable-checking to disable checks.\n");
+#endif
}
/* Prints a message to stderr stating that time elapsed in STR is