This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]