This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Require nonpic effective target for gcc.target/i386/volatile-2.c
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Aug 2010 23:29:54 -0400
- Subject: [PATCH] Require nonpic effective target for gcc.target/i386/volatile-2.c
The attached patch eliminates the failures of...
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_0(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_1(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_2(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_3(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_4(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_5(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t]obj_5(\\(%rip\\))?,
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_6(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_7(\\(%rip\\))?
FAIL: gcc.target/i386/volatile-2.c scan-assembler movl[ \t][^,]+, obj_8(\\(%rip\\))?
on *86-apple-darwin* at -m32 due the -fPIC default on darwin. Tested on x86-64-apple-darwin10
at -m32. Okay for gcc trunk?
Jack
2010-08-24 Jack Howarth <howarth@bromo.med.uc.edu>
* testsuite/gcc.target/i386/volatile-2.c: Require nonpic effective target.
Index: gcc/testsuite/gcc.target/i386/volatile-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/volatile-2.c (revision 163490)
+++ gcc/testsuite/gcc.target/i386/volatile-2.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target nonpic } */
/* { dg-options "-O2" } */
/* Check volatiles are written, read or not re-read consistently */