aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2005-07-03 15:38:39 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2005-07-03 15:38:39 +0000
commit3fe725de2a240fe7f3e4c7882841df0259ff7833 (patch)
tree38409efff96267d2b07a5179f12c3a77552e05ab /include/ansidecl.h
parent419df6a2ef100863be73c97ea818b72b0735259f (diff)
downloadgcc-3fe725de2a240fe7f3e4c7882841df0259ff7833.zip
gcc-3fe725de2a240fe7f3e4c7882841df0259ff7833.tar.gz
gcc-3fe725de2a240fe7f3e4c7882841df0259ff7833.tar.bz2
re PR other/13906 (genmodes.c:964: internal compiler error: Bus error in md5_process_block)
PR other/13906 * ansidecl.h (ATTRIBUTE_ALIGNED_ALIGNOF): New. * md5.h (md5_uintptr): New. (md5_ctx): Align buffer field. From-SVN: r101556
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. */