]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2004-07-21 Paolo Bonzini <bonzini@gnu.org>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jul 2004 08:25:57 +0000 (08:25 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jul 2004 08:25:57 +0000 (08:25 +0000)
        * ansidecl.h (ATTRIBUTE_PURE): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85001 138bc75d-0d04-0410-961f-82ee72b054a4

include/ChangeLog
include/ansidecl.h

index 0a736f82c52e6123a74da9185e2c50928e9bdf85..8f714da954737c5e4ecb20acc7394f613b05bc1f 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
+
+       * ansidecl.h (ATTRIBUTE_PURE): New.
+
 2004-07-13  Bernardo Innocenti  <bernie@develer.com>
 
        * libiberty.h (XNEW, XCNEW, XNEWVEC, XCNEWVEC, XOBNEW): Move here from
index d2c87768ce2ef6336c7f240b055a4b5e145c4976..4b3eae9d8870c39bbdac54e1d371a98e39461865 100644 (file)
@@ -277,6 +277,15 @@ So instead we use the macro below and test it against specific values.  */
 # endif /* GNUC >= 3.3 */
 #endif /* ATTRIBUTE_NONNULL */
 
+/* Attribute `pure' was valid as of gcc 3.0.  */
+#ifndef ATTRIBUTE_PURE
+# if (GCC_VERSION >= 3000)
+#  define ATTRIBUTE_PURE __attribute__ ((__pure__))
+# else
+#  define ATTRIBUTE_PURE
+# endif /* GNUC >= 3.0 */
+#endif /* ATTRIBUTE_PURE */
+
 /* Use ATTRIBUTE_PRINTF when the format specifier must not be NULL.
    This was the case for the `printf' format attribute by itself
    before GCC 3.3, but as of 3.3 we need to add the `nonnull'