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

login
register
mail settings
Submitter Uros Bizjak
Date Aug. 31, 2010, 5:35 p.m.
Message ID <AANLkTinJbacVF9Xh4wJxb1FCQTY4k2OUnQ0nZnux+g3X@mail.gmail.com>
Download mbox | patch
Permalink /patch/63306/
State New
Headers show

Comments

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

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