[Patch/testsuite] Fix g++.dg/abi/bitfield3.C fail on cygwin/mingw
Danny Smith
dannysmith@clear.net.nz
Wed Jun 9 12:46:00 GMT 2004
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
{
More information about the Gcc-patches
mailing list