This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]