un-break libobjc on i386
Zack Weinberg
zack@wolery.cumb.org
Fri Feb 11 09:39:00 GMT 2000
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
More information about the Gcc-patches
mailing list