aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-10-13 16:31:23 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-10-13 16:31:23 -0700
commit61f03abaa5aabfabc4aaf73df1a19960f1239a89 (patch)
tree7c3835d567e4f5a0701ce4cfb8a1f2b8d696022d /gcc/crtstuff.c
parent32e66afd7f82ae62f3232146743d3ab7eec86557 (diff)
downloadgcc-61f03abaa5aabfabc4aaf73df1a19960f1239a89.zip
gcc-61f03abaa5aabfabc4aaf73df1a19960f1239a89.tar.gz
gcc-61f03abaa5aabfabc4aaf73df1a19960f1239a89.tar.bz2
re PR c/17384 (ICE with mode attribute on structures)
PR c/17384 * c-common.c (handle_mode_attribute): Disallow mode changes that alter the CODE of the top-level type. * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit integer from internal limits macros. * config/i386/mm3dnow.h (__v2sf): Fix base type. From-SVN: r89009
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index ecb3dea..22f221b 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -455,9 +455,18 @@ STATIC func_ptr __DTOR_END__[1]
#ifdef EH_FRAME_SECTION_NAME
/* Terminate the frame unwind info section with a 4byte 0 as a sentinel;
this would be the 'length' field in a real FDE. */
-STATIC EH_FRAME_SECTION_CONST int __FRAME_END__[]
- __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME),
- aligned(4)))
+# if __INT_MAX__ == 2147483647
+typedef int int32;
+# elif __LONG_MAX__ == 2147483647
+typedef long int32;
+# elif __SHRT_MAX__ == 2147483647
+typedef short int32;
+# else
+# error "Missing a 4 byte integer"
+# endif
+STATIC EH_FRAME_SECTION_CONST int32 __FRAME_END__[]
+ __attribute__ ((unused, section(EH_FRAME_SECTION_NAME),
+ aligned(sizeof(int32))))
= { 0 };
#endif /* EH_FRAME_SECTION_NAME */