[Bug libobjc/25762] All objc.dg-struct-layout-encoding-1 fails

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 29 16:23:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list