[PATCH, rs6000] Correct effective target in gcc.target/powerpc/pr63354.c
Bill Schmidt
wschmidt@linux.vnet.ibm.com
Mon Jul 25 20:30:00 GMT 2016
Hi,
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?
Thanks,
Bill
2016-07-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* gcc.target/powerpc/pr63354.c: Require lp64 since
-mprofile-kernel is not legal with -m32.
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)
More information about the Gcc-patches
mailing list