aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/stor-layout.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f3af63b..7d34071 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2000-05-22 Richard Henderson <rth@cygnus.com>
+ * stor-layout.c (place_field): Change rli->size to rli->offset.
+
+2000-05-22 Richard Henderson <rth@cygnus.com>
+
* function.c (thread_prologue_and_epilogue_insns): Make sure
existing line number notes appear after the prologue.
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index ad7768f..26aa48b 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -801,7 +801,7 @@ place_field (rli, field)
&& ! DECL_PACKED (field)
&& ! integer_zerop (DECL_SIZE (field))
&& host_integerp (DECL_SIZE (field), 1)
- && host_integerp (rli->size, 1)
+ && host_integerp (rli->offset, 1)
&& host_integerp (TYPE_SIZE (type), 1))
{
unsigned int type_align = TYPE_ALIGN (type);