[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    [PATCH, testsuite]: Disable gcc.target/i386/volatile-2.c for PIC targets
From:       Uros Bizjak <ubizjak () gmail ! com>
Date:       2010-08-31 17:35:51
Message-ID: AANLkTinJbacVF9Xh4wJxb1FCQTY4k2OUnQ0nZnux+g3X () mail ! gmail ! com
[Download RAW message or body]

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 */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic