This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Sync ansidecl.h with GCC


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d6404f01d38b1f34bd9bba4d78276e8154f3312

commit 4d6404f01d38b1f34bd9bba4d78276e8154f3312
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 14 09:10:59 2015 -0700

    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.

Diff:
---
 include/ChangeLog  | 8 ++++++++
 include/ansidecl.h | 9 +++++++++
 2 files changed, 17 insertions(+)

diff --git a/include/ChangeLog b/include/ChangeLog
index cd83b28..7dd0885 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,11 @@
+2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	Sync with GCC
+	2015-03-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
+
+	PR target/65261
+	* ansidecl.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
+
 2015-07-09  Catherine Moore  <clm@codesourcery.com>
 
         * elf/mips/mips.h (Val_GNU_MIPS_ABI_FP_NAN2008): New.
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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]