This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/25762] All objc.dg-struct-layout-encoding-1 fails
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2006 16:23:33 -0000
- Subject: [Bug libobjc/25762] All objc.dg-struct-layout-encoding-1 fails
- References: <bug-25762-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-29 16:23 -------
This can be worked around with the following patch:
Index: config/i386/darwin.h
===================================================================
--- config/i386/darwin.h (revision 110327)
+++ config/i386/darwin.h (working copy)
@@ -111,6 +111,14 @@ extern void darwin_x86_file_end (void);
#define ASM_LONG "\t.long\t"
/* Darwin as doesn't do ".quad". */
+/* Native complier aligns internal doubles in structures on dword boundaries
+ but vectors are aligned to quad word boundaries.
+ FIXME: This is a hack until libobjc no longer depends on GCC's headers. */
+#ifdef IN_TARGET_LIBS
+#undef BIGGEST_FIELD_ALIGNMENT
+#define BIGGEST_FIELD_ALIGNMENT 128
+#endif
+
#define SUBTARGET_ENCODE_SECTION_INFO darwin_encode_section_info
#undef ASM_OUTPUT_ALIGN
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25762