aboutsummaryrefslogtreecommitdiff
path: root/libobjc/encoding.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde@gcc.gnu.org>2015-05-02 04:11:07 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-05-02 04:11:07 +0000
commit539280a8e89d4e63c6ccb9573b755bd17793e33a (patch)
treefee646565688a42fe976a306924b04532245ff8c /libobjc/encoding.c
parent90eb63a3a045dd9ac0774860e03163da82cb0a1c (diff)
downloadgcc-539280a8e89d4e63c6ccb9573b755bd17793e33a.zip
gcc-539280a8e89d4e63c6ccb9573b755bd17793e33a.tar.gz
gcc-539280a8e89d4e63c6ccb9573b755bd17793e33a.tar.bz2
fixup libobjc usage of PCC_BITFIELD_TYPE_MATTERS
libobjc/ChangeLog: 2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * acinclude.m4: Include bitfields.m4. * config.h.in: Regenerate. * configure: Likewise. * configure.ac: Invoke gt_BITFIELD_TYPE_MATTERS. * encoding.c: Check HAVE_BITFIELD_TYPE_MATTERS. config/ChangeLog: 2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * bitfields.m4: New file. From-SVN: r222715
Diffstat (limited to 'libobjc/encoding.c')
-rw-r--r--libobjc/encoding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index 20ace46..abb6145 100644
--- a/libobjc/encoding.c
+++ b/libobjc/encoding.c
@@ -29,6 +29,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* FIXME: This file contains functions that will abort the entire
program if they fail. Is that really needed ? */
+#include "config.h"
#include "objc-private/common.h"
#include "objc-private/error.h"
#include "tconfig.h"
@@ -1167,7 +1168,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. */
-#if !PCC_BITFIELD_TYPE_MATTERS
+#ifndef HAVE_BITFIELD_TYPE_MATTERS
layout->record_align = MAX (layout->record_align, desired_align);
#else /* PCC_BITFIELD_TYPE_MATTERS */
if (*type == _C_BFLD)