diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-07-14 09:10:59 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-07-14 09:18:16 -0700 |
commit | 4d6404f01d38b1f34bd9bba4d78276e8154f3312 (patch) | |
tree | 434077a1d2523528dc0f9e480a5955abd61f90e2 /include/ansidecl.h | |
parent | 49d00f48e8e3c1331d367785f19c69867a47b4cd (diff) | |
download | gdb-4d6404f01d38b1f34bd9bba4d78276e8154f3312.zip gdb-4d6404f01d38b1f34bd9bba4d78276e8154f3312.tar.gz gdb-4d6404f01d38b1f34bd9bba4d78276e8154f3312.tar.bz2 |
Sync ansidecl.h with GCC
Sync with GCC
2015-03-02 Markus Trippelsdorf <markus@trippelsdorf.de>
PR target/65261
* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
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 6cbea97..224627d 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -274,6 +274,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. */ |