* doc/invoke.texi: Document -fsanitize=return.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205601
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
Manuel López-Ibáñez <manu@gcc.gnu.org>
tries to dereference a NULL pointer, or if a reference (possibly an
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
While @option{-ftrapv} causes traps for signed overflows to be emitted,