aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-07-21 17:27:07 +0000
committerDJ Delorie <dj@redhat.com>2004-07-21 17:27:07 +0000
commita35b6b049e653973939a56ad0ba656dffad60a0e (patch)
tree1218493ba06e0bddfe43be358b4f725e1ca2f861 /include/ansidecl.h
parent73cc75f3b22c0bb899f4f91727e8c3e01f289824 (diff)
downloadgdb-a35b6b049e653973939a56ad0ba656dffad60a0e.zip
gdb-a35b6b049e653973939a56ad0ba656dffad60a0e.tar.gz
gdb-a35b6b049e653973939a56ad0ba656dffad60a0e.tar.bz2
merge from gcc
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r--include/ansidecl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h
index d2c8776..4b3eae9 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -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'