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, testsuite]: Disable gcc.target/i386/volatile-2.c for PIC targets


Hello!

Asm scan patterns expect direct memory references, so the test is not
appropriate for PIC targets.

2010-08-31  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/volatile-2.c: Require nonpic target.

Committed to mainline SVN.

Uros.

Index: gcc.target/i386/volatile-2.c
===================================================================
--- gcc.target/i386/volatile-2.c	(revision 163678)
+++ 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]