Commit 6d27d749 by Richard Biener Committed by Richard Biener

common.opt (fchecking): New flag controlling flag_checking.

2015-10-28  Richard Biener  <rguenther@suse.de>

	* common.opt (fchecking): New flag controlling flag_checking.
	* passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
	* timevar.c (timer::print): Adjust output.
	* doc/invoke.texi (fchecking): Document.

From-SVN: r229480
parent 254b22cc
2015-10-28 Richard Biener <rguenther@suse.de> 2015-10-28 Richard Biener <rguenther@suse.de>
* common.opt (fchecking): New flag controlling flag_checking.
* passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
* timevar.c (timer::print): Adjust output.
* doc/invoke.texi (fchecking): Document.
2015-10-28 Richard Biener <rguenther@suse.de>
PR middle-end/68067 PR middle-end/68067
* fold-const.c (negate_expr_p): We cannot negate plus or minus * fold-const.c (negate_expr_p): We cannot negate plus or minus
if overflow is not wrapping. Likewise multiplication unless if overflow is not wrapping. Likewise multiplication unless
...@@ -46,11 +46,6 @@ int optimize_fast ...@@ -46,11 +46,6 @@ int optimize_fast
Variable Variable
bool in_lto_p = false bool in_lto_p = false
; Enable additional checks of internal state consistency, which may slow
; the compiler down.
Variable
bool flag_checking = CHECKING_P
; 0 means straightforward implementation of complex divide acceptable. ; 0 means straightforward implementation of complex divide acceptable.
; 1 means wide ranges of inputs must work for complex divide. ; 1 means wide ranges of inputs must work for complex divide.
; 2 means C99-like requirements for complex multiply and divide. ; 2 means C99-like requirements for complex multiply and divide.
...@@ -1002,6 +997,10 @@ fcheck-new ...@@ -1002,6 +997,10 @@ fcheck-new
Common Var(flag_check_new) Common Var(flag_check_new)
Check the return value of new in C++. Check the return value of new in C++.
fchecking
Common Var(flag_checking) Init(CHECKING_P)
Perform internal consistency checkings.
fcombine-stack-adjustments fcombine-stack-adjustments
Common Report Var(flag_combine_stack_adjustments) Optimization Common Report Var(flag_combine_stack_adjustments) Optimization
Looks for opportunities to reduce stack adjustments and stack references. Looks for opportunities to reduce stack adjustments and stack references.
......
...@@ -310,7 +310,7 @@ Objective-C and Objective-C++ Dialects}. ...@@ -310,7 +310,7 @@ Objective-C and Objective-C++ Dialects}.
-fsanitize=@var{style} -fsanitize-recover -fsanitize-recover=@var{style} @gol -fsanitize=@var{style} -fsanitize-recover -fsanitize-recover=@var{style} @gol
-fasan-shadow-offset=@var{number} -fsanitize-sections=@var{s1},@var{s2},... @gol -fasan-shadow-offset=@var{number} -fsanitize-sections=@var{s1},@var{s2},... @gol
-fsanitize-undefined-trap-on-error @gol -fsanitize-undefined-trap-on-error @gol
-fcheck-pointer-bounds -fchkp-check-incomplete-type @gol -fcheck-pointer-bounds -fchecking -fchkp-check-incomplete-type @gol
-fchkp-first-field-has-own-bounds -fchkp-narrow-bounds @gol -fchkp-first-field-has-own-bounds -fchkp-narrow-bounds @gol
-fchkp-narrow-to-innermost-array -fchkp-optimize @gol -fchkp-narrow-to-innermost-array -fchkp-optimize @gol
-fchkp-use-fast-string-functions -fchkp-use-nochk-string-functions @gol -fchkp-use-fast-string-functions -fchkp-use-nochk-string-functions @gol
...@@ -6145,6 +6145,12 @@ structure field attribute (@pxref{Type Attributes}) and ...@@ -6145,6 +6145,12 @@ structure field attribute (@pxref{Type Attributes}) and
functions for controlling the Pointer Bounds Checker. @xref{Pointer functions for controlling the Pointer Bounds Checker. @xref{Pointer
Bounds Checker builtins}, for more information. Bounds Checker builtins}, for more information.
@item -fchecking
@opindex fchecking
@opindex fno-checking
Enable internal consistency checking. The default depends on
the compiler configuration.
@item -fchkp-check-incomplete-type @item -fchkp-check-incomplete-type
@opindex fchkp-check-incomplete-type @opindex fchkp-check-incomplete-type
@opindex fno-chkp-check-incomplete-type @opindex fno-chkp-check-incomplete-type
......
...@@ -2073,7 +2073,7 @@ clear_last_verified (function *fn, void *data ATTRIBUTE_UNUSED) ...@@ -2073,7 +2073,7 @@ clear_last_verified (function *fn, void *data ATTRIBUTE_UNUSED)
/* Helper function. Verify that the properties has been turn into the /* Helper function. Verify that the properties has been turn into the
properties expected by the pass. */ properties expected by the pass. */
static void DEBUG_FUNCTION static void
verify_curr_properties (function *fn, void *data) verify_curr_properties (function *fn, void *data)
{ {
unsigned int props = (size_t)data; unsigned int props = (size_t)data;
......
...@@ -728,13 +728,10 @@ timer::print (FILE *fp) ...@@ -728,13 +728,10 @@ timer::print (FILE *fp)
#endif #endif
fprintf (fp, "%8u kB\n", (unsigned) (total->ggc_mem >> 10)); fprintf (fp, "%8u kB\n", (unsigned) (total->ggc_mem >> 10));
if (flag_checking) if (CHECKING_P || flag_checking)
{ fprintf (fp, "Extra diagnostic checks enabled; compiler may run slowly.\n");
fprintf (fp, "Extra diagnostic checks enabled; " if (CHECKING_P)
"compiler may run slowly.\n"); fprintf (fp, "Configure with --enable-checking=release to disable checks.\n");
fprintf (fp, "Configure with --enable-checking=release "
"to disable checks.\n");
}
#ifndef ENABLE_ASSERT_CHECKING #ifndef ENABLE_ASSERT_CHECKING
fprintf (fp, "Internal checks disabled; compiler is not suited for release.\n"); fprintf (fp, "Internal checks disabled; compiler is not suited for release.\n");
fprintf (fp, "Configure with --enable-checking=release to enable checks.\n"); fprintf (fp, "Configure with --enable-checking=release to enable checks.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment