diff mbox

[doc] Document -fsanitize=return

Message ID 20131202174156.GG9986@redhat.com
State New
Headers show

Commit Message

Marek Polacek Dec. 2, 2013, 5:41 p.m. UTC
On Mon, Dec 02, 2013 at 06:17:21PM +0100, Gerald Pfeifer wrote:
> On Mon, 2 Dec 2013, Marek Polacek wrote:
> > 2013-12-02  Marek Polacek  <polacek@redhat.com>
> > 
> > 	* doc/invoke.texi:
> > 
> > --- gcc/doc/invoke.texi.mp3	2013-12-02 13:34:44.223747841 +0100
> > +++ gcc/doc/invoke.texi	2013-12-02 13:40:28.658028051 +0100
> > @@ -5352,6 +5352,14 @@ built with this option turned on will is
> >  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 the return statement checking.  The application
> 
> Omit "the".
> 
> "The application" -> "Programs"
> 
> > +built with this option turned on will issue an error message when
> > +the end of a value-returning function without returning a value is
> > +reached.  This option works in C++ only.
> 
> "...when the end of a non-void function is reached without actually 
> returning a value."
> 
> Fine with these changes.

Thanks.  And I posted wrong ChangeLog - thus fixed.

2013-12-02  Marek Polacek  <polacek@redhat.com>

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


	Marek
diff mbox

Patch

--- gcc/doc/invoke.texi.mp3	2013-12-02 13:34:44.223747841 +0100
+++ gcc/doc/invoke.texi	2013-12-02 13:40:28.658028051 +0100
@@ -5352,6 +5352,14 @@  built with this option turned on will is
 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,