On Fri, Apr 8, 2011 at 6:58 AM, Michael Matz <m...@suse.de> wrote: > Hi, > > On Fri, 8 Apr 2011, Jakub Jelinek wrote: > >> On Fri, Apr 08, 2011 at 03:33:49PM +0200, Michael Matz wrote: >> > --- testsuite/gcc.target/i386/pr48389.c (revision 0) >> > +++ testsuite/gcc.target/i386/pr48389.c (revision 0) >> > @@ -0,0 +1,12 @@ >> > +/* PR middle-end/48389 */ >> > +/* { dg-do compile } */ >> > +/* { dg-options "-O -m32 -mtune=pentiumpro -Wno-abi" } */ >> >> -m32/-m64 should never go into dg-options. Either do something like: >> /* { dg-options "-O" } */ >> /* { dg-options "-O -mtune=pentiumpro -Wno-abi" { target ilp32 } } */ >> or remove -m32 from dg-options and conditionalize dg-do compile on ilp32 >> target. > > But then I'd have to use --target_board to hit the original problem. > Can't I somehow make it so that independend of the target_board setting > 32bit code is generated (possibly only when the compiler supports it)? > If it's not possible consider the testcase to be adjusted like below. > >
You SHOULD use --target_board to test both 32bit and 64bit on Linux/x86-64. -- H.J.