* stor-layout.c (update_alignment_for_field): Guard use of
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Dec 2002 05:10:14 +0000 (05:10 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Dec 2002 05:10:14 +0000 (05:10 +0000)
ADJUST_FIELD_ALIGN with #ifdef.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60422 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stor-layout.c

index dca029b..65e8ed7 100644 (file)
@@ -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.
index 21791fc..c4fdaee 100644 (file)
@@ -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'