diff options
author | DJ Delorie <dj@redhat.com> | 2015-03-04 18:01:00 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2015-03-04 18:01:00 +0000 |
commit | a8c0685bb2f1688f6eddfbff08820ae404ca46fd (patch) | |
tree | 6cea5c2ec3bf959026a57466b0325c54ef3a8106 /include/ansidecl.h | |
parent | e8ef9994cf785b86b9db1a6efbb730b96e1e5ae8 (diff) | |
download | newlib-a8c0685bb2f1688f6eddfbff08820ae404ca46fd.zip newlib-a8c0685bb2f1688f6eddfbff08820ae404ca46fd.tar.gz newlib-a8c0685bb2f1688f6eddfbff08820ae404ca46fd.tar.bz2 |
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r-- | include/ansidecl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h index 0fb23bb..04d75c3 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -276,6 +276,15 @@ So instead we use the macro below and test it against specific values. */ # endif /* GNUC >= 4.3 */ #endif /* ATTRIBUTE_HOT */ +/* Attribute 'no_sanitize_undefined' was valid as of gcc 4.9. */ +#ifndef ATTRIBUTE_NO_SANITIZE_UNDEFINED +# if (GCC_VERSION >= 4009) +# define ATTRIBUTE_NO_SANITIZE_UNDEFINED __attribute__ ((no_sanitize_undefined)) +# else +# define ATTRIBUTE_NO_SANITIZE_UNDEFINED +# endif /* GNUC >= 4.9 */ +#endif /* ATTRIBUTE_NO_SANITIZE_UNDEFINED */ + /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ |