Commit cdb02ac7 by Marek Polacek Committed by Marek Polacek

re PR sanitizer/59353 (-fsanitize=return is not documented)

	PR sanitizer/59353
	* doc/invoke.texi: Document -fsanitize=return.

From-SVN: r205601
parent 52cacf72
2013-12-02 Marek Polacek <polacek@redhat.com>
PR sanitizer/59353
* doc/invoke.texi: Document -fsanitize=return.
2013-12-02 Tobias Burnus <burnus@net-b.de> 2013-12-02 Tobias Burnus <burnus@net-b.de>
Manuel López-Ibáñez <manu@gcc.gnu.org> Manuel López-Ibáñez <manu@gcc.gnu.org>
...@@ -5355,6 +5355,14 @@ built with this option turned on will issue an error message when it ...@@ -5355,6 +5355,14 @@ built with this option turned on will issue an error message when it
tries to dereference a NULL pointer, or if a reference (possibly an tries to dereference a NULL pointer, or if a reference (possibly an
rvalue reference) is bound to a NULL pointer. rvalue reference) is bound to a NULL pointer.
@item -fsanitize=return
@opindex fsanitize=return
This option enables return statement checking. Programs
built with this option turned on will issue an error message
when the end of a non-void function is reached without actually
returning a value. This option works in C++ only.
@end table @end table
While @option{-ftrapv} causes traps for signed overflows to be emitted, 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