]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* ansidecl.h (ARG_UNUSED): New Macro.
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jul 2004 17:49:27 +0000 (17:49 +0000)
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 24 Jul 2004 17:49:27 +0000 (17:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85120 138bc75d-0d04-0410-961f-82ee72b054a4

include/ChangeLog
include/ansidecl.h

index 8f714da954737c5e4ecb20acc7394f613b05bc1f..e62b362819009efd7463da6a96fd6a7627c4aacf 100644 (file)
@@ -1,14 +1,18 @@
-2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
+2004-07-24  Bernardo Innocenti  <bernie@develer.com>
 
-       * ansidecl.h (ATTRIBUTE_PURE): New.
+       * ansidecl.h (ARG_UNUSED): New Macro.
 
-2004-07-13  Bernardo Innocenti  <bernie@develer.com>
+2004-07-24  Bernardo Innocenti  <bernie@develer.com>
 
        * libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from
        libcpp/internal.h.
        (XDELETE, XRESIZEVEC, XDELETEVEC, XNEWVAR, XCNEWVAR, XRESIZEVAR): New
        macros.
 
+2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
+
+       * ansidecl.h (ATTRIBUTE_PURE): New.
+
 2004-07-13  Bernardo Innocenti  <bernie@develer.com>
 
        * libiberty.h (ASTRDUP): Add casts required for stricter
index 4b3eae9d8870c39bbdac54e1d371a98e39461865..ccf0b2757ae30a5859fdf578ec1e01b08d8e03fb 100644 (file)
@@ -264,6 +264,14 @@ So instead we use the macro below and test it against specific values.  */
 #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
 #endif /* ATTRIBUTE_UNUSED */
 
+/* Before GCC 3.4, the C++ frontend couldn't parse attributes placed after the
+   identifier name.  */
+#if ! defined(__cplusplus) || (GCC_VERSION >= 3004)
+# define ARG_UNUSED(NAME) NAME ATTRIBUTE_UNUSED
+#else /* !__cplusplus || GNUC >= 3.4 */
+# define ARG_UNUSED(NAME) NAME
+#endif /* !__cplusplus || GNUC >= 3.4 */
+
 #ifndef ATTRIBUTE_NORETURN
 #define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
 #endif /* ATTRIBUTE_NORETURN */