This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.4-BIB] Turn on MS bitfields for Interix
- From: Richard Henderson <rth at redhat dot com>
- To: Douglas B Rupp <rupp at gnat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Nov 2002 10:34:09 -0800
- Subject: Re: [3.4-BIB] Turn on MS bitfields for Interix
- References: <019701c28490$a9d6aa10$0500a8c0@Jinx>
On Mon, Nov 04, 2002 at 10:00:33PM -0800, Douglas B Rupp wrote:
> * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
> MASK_MS_BITFIELD_LAYOUT
> (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
> MS bitfields for Objective-C.
> (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
> defines.
>
> * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
> (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
> (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
>
> * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
> TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
> (TARGET_SWITCHES): Add above mask.
>
> * testsuite/gcc.dg/bf-ms-layout.c: New test case.
> * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
> * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
> flags for interix.
Ok.
r~