Message ID | 60fab437-bce8-0d48-e3ea-7eaaa555fec4@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On Mon, Jul 25, 2016 at 03:29:55PM -0500, Bill Schmidt wrote: > The subject test case uses the -mprofile-kernel option, which is not > permitted in 32-bit mode. It currently restricts the effective target > to powerpc64, which is not sufficient when using -m32 on 64-bit hardware. > This patch changes the effective target restriction to lp64 to correct > this. > > Tested on powerpc64-unknown-linux-gnu, verified. Ok for trunk? Yes, thanks. Backports are okay as well. Segher
Index: gcc/testsuite/gcc.target/powerpc/pr63354.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr63354.c (revision 236120) +++ gcc/testsuite/gcc.target/powerpc/pr63354.c (working copy) @@ -3,7 +3,7 @@ /* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-options "-O2 -pg -mprofile-kernel" } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-final { scan-assembler-not "mtlr" } } */ int foo(void)