2007-05-10 Ulrich Drepper <drepper@redhat.com>

* include/sys/cdefs.h: Redefine __nonnull so that test for
	incorrect parameters in the libc code itself are not omitted.
This commit is contained in:
Jakub Jelinek 2007-07-12 15:22:47 +00:00
parent 19ca40f571
commit acf33246a3
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-05-10 Ulrich Drepper <drepper@redhat.com>
* include/sys/cdefs.h: Redefine __nonnull so that test for
incorrect parameters in the libc code itself are not omitted.
2007-05-07 Ulrich Drepper <drepper@redhat.com>
Jakub Jelinek <jakub@redhat.com>

View File

@ -2,6 +2,12 @@
#include <misc/sys/cdefs.h>
/* The compiler will optimize based on the knowledge the parameter is
not NULL. This will omit tests. A robust implementation cannot allow
this so when compiling glibc itself we ignore this attribute. */
#undef __nonnull
#define __nonnull(params)
extern void __chk_fail (void) __attribute__ ((__noreturn__));
libc_hidden_proto (__chk_fail)
rtld_hidden_proto (__chk_fail)