diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:22:47 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-12 15:22:47 +0000 |
commit | acf33246a354dae234916567f4ec13ab7605f363 (patch) | |
tree | 3c9f6f6b73da1e911c382f02ee8f66176045d960 /include | |
parent | 19ca40f571f10833b02548789b53d57fd685a437 (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/cdefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h index 8ba980477d..cd0750b452 100644 --- a/include/sys/cdefs.h +++ b/include/sys/cdefs.h @@ -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) |