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]

[PATCH, rs6000] Correct effective target in gcc.target/powerpc/pr63354.c


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)


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