This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR48389: ICE in make_edges


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.


Ciao,
Michael.
-- 
/* PR middle-end/48389 */
/* { dg-do compile } */
/* { dg-options "-O -mtune=pentiumpro -Wno-abi" } */
/* { dg-require-effective-target ilp32 } */
typedef float V2SF __attribute__ ((vector_size (128)));
V2SF foo (int x, V2SF a)
{
  V2SF b = {};
  if (x & 42)
    b = a;
  a += b;
  return a;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]