stor-layout.c (update_alignment_for_field): Guard use of ADJUST_FIELD_ALIGN with...
authorMark Mitchell <mark@codesourcery.com>
Mon, 23 Dec 2002 05:10:14 +0000 (05:10 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 23 Dec 2002 05:10:14 +0000 (05:10 +0000)
* stor-layout.c (update_alignment_for_field): Guard use of
ADJUST_FIELD_ALIGN with #ifdef.

From-SVN: r60422

gcc/ChangeLog
gcc/stor-layout.c

index dca029bd1e5d38edc74bd5c46fb4c3376385cfd9..65e8ed77067dd771e1faf5914686d18af4f2f0f4 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 21791fccf0d4130d7d85333292cb23a27132683a..c4fdaeeb91eb9bfb992f6b932f4a50ca7abc2d13 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'