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] 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 */


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