This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Tweak gcc.dg/20020103-1.c for powerpc -msecure-plt
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 25 Aug 2005 16:31:15 +0930
- Subject: Tweak gcc.dg/20020103-1.c for powerpc -msecure-plt
This test has been spuriously failing on powerpc-linux, because
-msecure-plt uses a local label.
bar:
stwu 1,-80(1)
mflr 0
bcl 20,31,.LCF0
.LCF0:
By restricting the label pattern match to those emitted by
output_constant_pool, we can make this test pass (*) but still properly
check that no constants are put in memory.
* gcc.dg/20020103-1.c: Scan for LC[0-9], not LC.
OK to apply?
*) At least, if either of the fixes for PR11594 are applied.
Index: gcc/testsuite/gcc.dg/20020103-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20020103-1.c,v
retrieving revision 1.7
diff -u -p -r1.7 20020103-1.c
--- gcc/testsuite/gcc.dg/20020103-1.c 6 Apr 2004 20:29:09 -0000 1.7
+++ gcc/testsuite/gcc.dg/20020103-1.c 25 Aug 2005 06:43:53 -0000
@@ -2,7 +2,7 @@
spilled to the stack, or regenerated, but not dropped to memory. */
/* { dg-do compile { target i?86-*-* powerpc-*-* rs6000-*-* alpha*-*-* x86_64-*-*} } */
/* { dg-options "-O2 -fpic -fno-omit-frame-pointer -fno-asynchronous-unwind-tables" } */
-/* { dg-final { scan-assembler-not "LC" } } */
+/* { dg-final { scan-assembler-not "LC\[0-9\]" } } */
/* Clobber all call-saved registers that can hold a pointer value. */
#if defined(__i386__)
--
Alan Modra
IBM OzLabs - Linux Technology Centre