aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-02-23 08:43:44 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-02-23 08:43:44 +0000
commit6fc605d8438121cf30c1c6b237b27a61347324cf (patch)
tree68609f738e0b898a168b585d74127e6dd87bc7e3 /gcc
parent3a685f6f037cfcb6d0c0d23bb7accff7de0b7403 (diff)
downloadgcc-6fc605d8438121cf30c1c6b237b27a61347324cf.zip
gcc-6fc605d8438121cf30c1c6b237b27a61347324cf.tar.gz
gcc-6fc605d8438121cf30c1c6b237b27a61347324cf.tar.bz2
Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
* libobjc/Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS. * gcc/config/i386/i386.h: If IN_TARGET_LIBS is defined, make BIGGEST_FIELD_ALIGNMENT a constant. From-SVN: r32110
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.h11
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84c5af1..1079577 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
+
+ * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
+ BIGGEST_FIELD_ALIGNMENT a constant.
+
2000-02-21 Jason Merrill <jason@casey.cygnus.com>
* dwarf2out.c (output_line_info): Put the marker for the end of
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index e8ae4d9..3965878 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -469,10 +469,15 @@ extern int ix86_arch;
#define BIGGEST_ALIGNMENT 128
/* The published ABIs say that doubles should be aligned on word
- boundaries, so lower the aligmnet for structure fields unless
- -malign_double is set. */
-
+ boundaries, so lower the aligment for structure fields unless
+ -malign-double is set. */
+/* BIGGEST_FIELD_ALIGNMENT is also used in libobjc, where it must be
+ constant. Use the smaller value in that context. */
+#ifndef IN_TARGET_LIBS
#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