+2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gcc.target/i386/noplt-1.c: Don't disable for ia32. Scan for
+ ia32 if R_386_GOT32X relocation is supported.
+ * gcc.target/i386/noplt-3.c: Likewise.
+ * gcc.target/i386/noplt-2.c: Likewise.
+ (main): Renamed to ...
+ (bar): This.
+ * gcc.target/i386/noplt-4.c: Likewise.
+ (main): Renamed to ...
+ (bar): This.
+ * gcc.target/i386/pr67400-3.c: Don't disable for ia32.
+ * gcc.target/i386/pr67400-5.c: Likewise.
+
2016-06-24 Jakub Jelinek <jakub@redhat.com>
* c-c++-common/torture/builtin-arith-overflow-p-19.c: Run for C++ too.
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-fno-pic" } */
__attribute__ ((noplt))
return 0;
}
-/* { dg-final { scan-assembler "call\[ \t\]\\*.*foo.*@GOTPCREL\\(%rip\\)" } } */
+/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic" } */
__attribute__ ((noplt))
int foo();
-int main()
+int bar()
{
return foo();
}
-/* { dg-final { scan-assembler "jmp\[ \t\]\\*.*foo.*@GOTPCREL\\(%rip\\)" } } */
+/* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-fno-pic -fno-plt" } */
void foo();
return 0;
}
-/* { dg-final { scan-assembler "call\[ \t\]\\*.*foo.*@GOTPCREL\\(%rip\\)" } } */
+/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler "call\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
int foo();
-int main()
+int bar()
{
return foo();
}
-/* { dg-final { scan-assembler "jmp\[ \t\]\\*.*foo.*@GOTPCREL\\(%rip\\)" } } */
+/* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOTPCREL" { target { ! ia32 } } } } */
+/* { dg-final { scan-assembler "jmp\[ \t\]*.foo@GOT" { target { ia32 && got32x_reloc } } } } */
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
static void
-/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
+/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
extern void foo (void);