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: [PATCH, rs6000] Fix PR63354


Hi,

On Thu, 2016-01-21 at 21:21 -0600, Bill Schmidt wrote:
> The testcase will need a slight adjustment, as currently it fails on
> powerpc64 with -m32 testing.  Working on a fix.
> 
> Bill
> 

This patch adjusts the gcc.target/powerpc/pr63354 test to require 64-bit
code generation, and also restricts the test to Linux targets, as this
is necessary for using -mprofile-kernel.  Tested on
powerpc64-unknown-linux-gnu configured with --with-cpu=power7 and
testing with -m32; the test is now correctly skipped there.  Is this
okay for trunk?

Thanks,
Bill


2016-01-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* gcc.target/powerpc/pr63354.c: Restrict to Linux targets with
	64-bit support.


Index: gcc/testsuite/gcc.target/powerpc/pr63354.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/pr63354.c	(revision 232716)
+++ gcc/testsuite/gcc.target/powerpc/pr63354.c	(working copy)
@@ -1,8 +1,9 @@
 /* Verify that we don't stack a frame for leaf functions when using
    -pg -mprofile-kernel.  */
 
-/* { dg-do compile { target { powerpc64*-*-* } } } */
+/* { dg-do compile { target { powerpc64*-linux-* } } } */
 /* { dg-options "-O2 -pg -mprofile-kernel" } */
+/* { dg-require-effective-target powerpc64 } */
 /* { 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]