To avoid

FAIL: gcc.target/i386/noplt-1.c scan-assembler call[
\\t]\\\\*.*foo.*@GOTPCREL\\\\(%rip\\\\)
FAIL: gcc.target/i386/noplt-2.c scan-assembler jmp[
\\t]\\\\*.*foo.*@GOTPCREL\\\\(%rip\\\\)
FAIL: gcc.target/i386/noplt-3.c scan-assembler call[
\\t]\\\\*.*foo.*@GOTPCREL\\\\(%rip\\\\)
FAIL: gcc.target/i386/noplt-4.c scan-assembler jmp[
\\t]\\\\*.*foo.*@GOTPCREL\\\\(%rip\\\\)

failures for 32bit multilibs.

2015-06-17  Uros Bizjak  <ubiz...@gmail.com>

    * gcc.target/i386/noplt-1.c (dg-do): Fix target selector.
    * gcc.target/i386/noplt-2.c (dg-do): Ditto.
    * gcc.target/i386/noplt-3.c (dg-do): Ditto.
    * gcc.target/i386/noplt-4.c (dg-do): Ditto.

Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.

Uros.
Index: gcc.target/i386/noplt-1.c
===================================================================
--- gcc.target/i386/noplt-1.c   (revision 224576)
+++ gcc.target/i386/noplt-1.c   (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target x86_64-*-linux* } } */
+/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
 /* { dg-options "-fno-pic" } */
 
 __attribute__ ((noplt))
Index: gcc.target/i386/noplt-2.c
===================================================================
--- gcc.target/i386/noplt-2.c   (revision 224576)
+++ gcc.target/i386/noplt-2.c   (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target x86_64-*-linux* } } */
+/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
 /* { dg-options "-O2 -fno-pic" } */
 
 
Index: gcc.target/i386/noplt-3.c
===================================================================
--- gcc.target/i386/noplt-3.c   (revision 224576)
+++ gcc.target/i386/noplt-3.c   (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target x86_64-*-linux* } } */
+/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
 /* { dg-options "-fno-pic -fno-plt" } */
 
 void foo();
Index: gcc.target/i386/noplt-4.c
===================================================================
--- gcc.target/i386/noplt-4.c   (revision 224576)
+++ gcc.target/i386/noplt-4.c   (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target x86_64-*-linux* } } */
+/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
 /* { dg-options "-O2 -fno-pic -fno-plt" } */
 
 int foo();

Reply via email to