Commit 95784c5a by Marek Polacek Committed by Marek Polacek

* doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.

From-SVN: r216033
parent f5e523b7
2014-10-09 Marek Polacek <polacek@redhat.com>
* doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2014-10-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/61969
......@@ -5604,6 +5604,19 @@ This option enables instrumentation of return statements in functions
marked with @code{returns_nonnull} function attribute, to detect returning
of null values from such functions.
@item -fsanitize=bool
@opindex fsanitize=bool
This option enables instrumentation of loads from bool. If a value other
than 0/1 is loaded, a run-time error is issued.
@item -fsanitize=enum
@opindex fsanitize=enum
This option enables instrumentation of loads from an enum type. If
a value outside the range of values for the enum type is loaded,
a run-time error is issued.
@end table
While @option{-ftrapv} causes traps for signed overflows to be emitted,
......
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