Sync ansidecl.h with GCC
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 12 Aug 2015 12:02:21 +0000 (05:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 12 Aug 2015 12:02:21 +0000 (05:02 -0700)
Sync with GCC
2015-08-11  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* ansidecl.h (GCC_FINAL): New macro.

include/ChangeLog
include/ansidecl.h

index 8a453073e48f87b3c933d28d56a6e9530b52267b..df9e2e22cccfef038c17ddc089fb63a449a73e5f 100644 (file)
@@ -1,3 +1,10 @@
+2015-08-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Sync with GCC
+       2015-08-11  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
+       * ansidecl.h (GCC_FINAL): New macro.
+
 2015-07-16  Jiong Wang  <jiong.wang@arm.com>
 
        * elf/aarch64.h (R_AARCH64_P32_TLSLD_ADR_PREL21): New enumeration.
index 224627df2d121b13a10a9c730a9d729267adac44..6e4bfc21f25fba689eeb896486328f45cdc537b4 100644 (file)
@@ -311,6 +311,15 @@ So instead we use the macro below and test it against specific values.  */
 #define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
 #else
 #define ENUM_BITFIELD(TYPE) unsigned int
+#endif
+
+    /* This is used to mark a class or virtual function as final.  */
+#if __cplusplus >= 201103L
+#define GCC_FINAL final
+#elif GCC_VERSION >= 4007
+#define GCC_FINAL __final
+#else
+#define GCC_FINAL
 #endif
 
 #ifdef __cplusplus
This page took 0.037964 seconds and 4 git commands to generate.