projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d29b54
)
Redefine __nonnull so that test for incorrect parameters in the libc code itself...
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 10 May 2007 20:15:11 +0000
(20:15 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 10 May 2007 20:15:11 +0000
(20:15 +0000)
include/sys/cdefs.h
patch
|
blob
|
history
diff --git
a/include/sys/cdefs.h
b/include/sys/cdefs.h
index
8ba9804
..
cd0750b
100644
(file)
--- 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)