This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch/testsuite] Fix g++.dg/abi/bitfield3.C fail on cygwin/mingw
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 09 Jun 2004 10:43:23 +0100
- Subject: [Patch/testsuite] Fix g++.dg/abi/bitfield3.C fail on cygwin/mingw
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
Hi,
The reason that g++.dg/abi/bitfield3.C has been failing execution test on
cygwin and mingw is because these targets set -malign-double by default
(to make 8-byte struct align default, as per native windows32 compiler).
This fixes the failure.
OK for mainline?
Changelog
2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
* g++.dg/abi/bitfield3.C: Add -mno-align-double compile option
for mingw32 and cygwin targets.
Index: g++.dg/abi/bitfield3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/abi/bitfield3.C,v
retrieving revision 1.2
Index: g++.dg/abi/bitfield3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/abi/bitfield3.C,v
retrieving revision 1.2
diff -c -3 -p -r1.2 bitfield3.C
*** g++.dg/abi/bitfield3.C 7 Aug 2002 21:05:16 -0000 1.2
--- g++.dg/abi/bitfield3.C 9 Jun 2004 09:36:58 -0000
***************
*** 1,6 ****
--- 1,7 ----
// Test for oversized bitfield alignment in structs on IA-32
// { dg-do run { target i?86-*-* } }
// { dg-options "-O2" }
+ // { dg-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-mingw* } }
struct A
{