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: Apply attribute returns_nonnull in libiberty


On Fri, 11 Oct 2013, Marc Glisse wrote:

Hello,

here are some uses for returns_nonnull in libiberty.

Bootstrap+testsuite (default languages) on x86_64-unknown-linux-gnu.

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

	PR tree-optimization/58689
include/
	* ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro.
	* libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename,
	concat_copy): Mark with attributes nonnull(1) and returns_nonnull.
	(concat, reconcat, concat_copy2, choose_temp_base, xstrerror,
	xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init):
	Mark with attribute returns_nonnull.

libiberty/
	* concat.c: Remove note about xmalloc.

Hello,

I cross-posted this message:
http://gcc.gnu.org/ml/gcc-patches/2013-10/msg00986.html

to the various libiberty users, and the only replies I got were:

ok for gcc
gdb doesn't mind (Tom Tromey)
makes sense (Mike Frysinger)

is the original patch thus ok?
http://gcc.gnu.org/ml/gcc-patches/2013-10/msg00818.html

--
Marc Glisse


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