summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/ansidecl.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/ansidecl.h')
-rw-r--r--contrib/gcc/ansidecl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/gcc/ansidecl.h b/contrib/gcc/ansidecl.h
index d2c8776..ee0aecf 100644
--- a/contrib/gcc/ansidecl.h
+++ b/contrib/gcc/ansidecl.h
@@ -305,6 +305,15 @@ So instead we use the macro below and test it against specific values. */
# define ATTRIBUTE_NULL_PRINTF_5 ATTRIBUTE_NULL_PRINTF(5, 6)
#endif /* ATTRIBUTE_NULL_PRINTF */
+
+#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. */
OpenPOWER on IntegriCloud