summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-23 05:10:14 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-23 05:10:14 +0000
commit9c2ae6a5b4037f56b66e7c4eefa5abd544b7276a (patch)
tree43a8a5872c87f89bbc90de89ef4fa18fc50bdc3d
parent37c905a136ad9dd7aeab794a2a330063f2d2240e (diff)
downloadppe42-gcc-9c2ae6a5b4037f56b66e7c4eefa5abd544b7276a.tar.gz
ppe42-gcc-9c2ae6a5b4037f56b66e7c4eefa5abd544b7276a.zip
* stor-layout.c (update_alignment_for_field): Guard use of
ADJUST_FIELD_ALIGN with #ifdef. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60422 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/stor-layout.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dca029bd1e5..65e8ed77067 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2002-12-22 Mark Mitchell <mark@codesourcery.com>
+ * stor-layout.c (update_alignment_for_field): Guard use of
+ ADJUST_FIELD_ALIGN with #ifdef.
+
* stor-layout.c (update_alignment_for_field): Use
ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
bitfield when PCC_BITFIELD_TYPE_MATTERS.
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 21791fccf0d..c4fdaeeb91e 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -724,7 +724,9 @@ update_alignment_for_field (rli, field, known_align)
else if (! DECL_PACKED (field))
{
desired_align = TYPE_ALIGN (type);
+#ifdef ADJUST_FIELD_ALIGN
desired_align = ADJUST_FIELD_ALIGN (field, desired_align);
+#endif
}
/* A named bit field of declared type `int'
OpenPOWER on IntegriCloud