aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-07-03 19:16:20 +0000
committerDJ Delorie <dj@redhat.com>2005-07-03 19:16:20 +0000
commit6ba85b8caf7b49723e475c3563995c44649e23b3 (patch)
tree5b4a6d142c7a5d949dd365dd5bd4c01b563b55e6 /include/ansidecl.h
parent2f4535c7eb76b6a7ceee2e8805a103cb8a90efee (diff)
downloadbinutils-6ba85b8caf7b49723e475c3563995c44649e23b3.zip
binutils-6ba85b8caf7b49723e475c3563995c44649e23b3.tar.gz
binutils-6ba85b8caf7b49723e475c3563995c44649e23b3.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 4394311..a1a765d 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -352,6 +352,15 @@ So instead we use the macro below and test it against specific values. */
# endif /* GNUC >= 3.5 */
#endif /* ATTRIBUTE_SENTINEL */
+
+#ifndef ATTRIBUTE_ALIGNED_ALIGNOF
+# if (GCC_VERSION >= 3000)
+# define ATTRIBUTE_ALIGNED_ALIGNOF(m) __attribute__ ((__aligned__ (__alignof__ (m))))
+# else
+# define ATTRIBUTE_ALIGNED_ALIGNOF(m)
+# endif /* GNUC >= 3.0 */
+#endif /* ATTRIBUTE_ALIGNED_ALIGNOF */
+
/* We use __extension__ in some places to suppress -pedantic warnings
about GCC extensions. This feature didn't work properly before
gcc 2.8. */