fixup libobjc's usage of PCC_BITFIELD_TYPE_MATTERS
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>
Thu, 30 Apr 2015 02:08:05 +0000 (02:08 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Thu, 30 Apr 2015 02:08:05 +0000 (02:08 +0000)
libobjc/ChangeLog:

* encoding.c (objc_layout_structure_next_member): check value of
PCC_BITFIELD_TYPE_MATTERS instead of if it is defined.

From-SVN: r222605

libobjc/ChangeLog
libobjc/encoding.c

index 34c3e8e8b0c27c2d0b81b4434768f4438def7fde..544292402ccda196bf9b3fc74dafb9c9faae4ab6 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-29  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
+       * encoding.c (objc_layout_structure_next_member): Check the value of
+       PCC_BITFIELD_TYPE_MATTERS not if it is defined.
+
 2015-02-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR libobjc/63765
index 73339086086bb0812eb2ade0be4094f8e7004b3c..20ace465916d1b1442eaf424c59b5f129f33e529 100644 (file)
@@ -1167,7 +1167,7 @@ objc_layout_structure_next_member (struct objc_struct_layout *layout)
   /* Record must have at least as much alignment as any field.
      Otherwise, the alignment of the field within the record
      is meaningless.  */
-#ifndef PCC_BITFIELD_TYPE_MATTERS
+#if !PCC_BITFIELD_TYPE_MATTERS
   layout->record_align = MAX (layout->record_align, desired_align);
 #else  /* PCC_BITFIELD_TYPE_MATTERS */
   if (*type == _C_BFLD)