This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New attribute: returns_nonnull


On Mon, 7 Oct 2013, Marc Glisse wrote:

2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
[...]
gcc/
	* doc/extend.texi (returns_nonnull): New function attribute.

By the way, I'll commit this obvious doc fix next chance I get:

2013-10-12  Marc Glisse  <marc.glisse@inria.fr>

	* doc/extend.texi (returns_nonnull): Remove arguments.

--- extend.texi	(revision 203436)
+++ extend.texi	(working copy)
@@ -3310,7 +3310,7 @@ my_memcpy (void *dest, const void *src,
         __attribute__((nonnull));
 @end smallexample

-@item returns_nonnull (@var{arg-index}, @dots{})
+@item returns_nonnull
 @cindex @code{returns_nonnull} function attribute
 The @code{returns_nonnull} attribute specifies that the function
 return value should be a non-null pointer.  For instance, the declaration:



--
Marc Glisse


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]