This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite]: Disable gcc.target/i386/volatile-2.c for PIC targets
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Aug 2010 19:35:51 +0200
- Subject: [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 */