diff mbox

[testsuite] : Disable gcc.target/i386/volatile-2.c for PIC targets

Message ID AANLkTinJbacVF9Xh4wJxb1FCQTY4k2OUnQ0nZnux+g3X@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Aug. 31, 2010, 5:35 p.m. UTC
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.
diff mbox

Patch

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