This is the mail archive of the gcc-patches@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]

un-break libobjc on i386


This patch makes it possible to link Objective C programs again.
BIGGEST_FIELD_ALIGNMENT is used inside libobjc and therefore cannot
depend on target_flags.

zw

===================================================================
Index: config/i386/i386.h
--- config/i386/i386.h	2000/02/08 17:15:00	1.100
+++ config/i386/i386.h	2000/02/11 17:38:56
@@ -468,11 +468,15 @@ extern int ix86_arch;
 
 #define BIGGEST_ALIGNMENT 128
 
+#if 0
 /* The published ABIs say that doubles should be aligned on word
    boundaries, so lower the aligmnet for structure fields unless
    -malign_double is set.  */
 
 #define BIGGEST_FIELD_ALIGNMENT (TARGET_ALIGN_DOUBLE ? 64 : 32)
+#else
+#define BIGGEST_FIELD_ALIGNMENT 32
+#endif
 
 /* If defined, a C expression to compute the alignment given to a
    constant that is being placed in memory.  CONSTANT is the constant

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