diff options
author | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-05-02 04:11:07 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-05-02 04:11:07 +0000 |
commit | 539280a8e89d4e63c6ccb9573b755bd17793e33a (patch) | |
tree | fee646565688a42fe976a306924b04532245ff8c /libobjc/configure | |
parent | 90eb63a3a045dd9ac0774860e03163da82cb0a1c (diff) | |
download | gcc-539280a8e89d4e63c6ccb9573b755bd17793e33a.tar.gz |
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/configure')
-rwxr-xr-x | libobjc/configure | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libobjc/configure b/libobjc/configure index 642eb9cc5f2..0547f913a6b 100755 --- a/libobjc/configure +++ b/libobjc/configure @@ -11530,6 +11530,44 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5 $as_echo "$ac_exception_model_name" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5 +$as_echo_n "checking if the type of bitfields matters... " >&6; } +if test "${gt_cv_bitfield_type_matters+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +struct foo1 { char x; char :0; char y; }; +struct foo2 { char x; int :0; char y; }; +int foo1test[ sizeof (struct foo1) == 2 ? 1 : -1 ]; +int foo2test[ sizeof (struct foo2) == 5 ? 1 : -1]; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_bitfield_type_matters=yes +else + gt_cv_bitfield_type_matters=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5 +$as_echo "$gt_cv_bitfield_type_matters" >&6; } + if test $gt_cv_bitfield_type_matters = yes; then + +$as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h + + fi + + # ------ # Output # ------ |