summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-13 23:31:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-13 23:31:23 +0000
commit743a6f47192b27adb8bb3dba58163c342b64d3fc (patch)
tree7c3835d567e4f5a0701ce4cfb8a1f2b8d696022d /gcc/crtstuff.c
parent00dfb616ad0add4ba6f8bdf0db3bd9b11dfba7aa (diff)
downloadgcc-743a6f47192b27adb8bb3dba58163c342b64d3fc.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89009 138bc75d-0d04-0410-961f-82ee72b054a4
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 ecb3dea314a..22f221b90b2 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 */