Commit b5afeda1 by H.J. Lu Committed by H.J. Lu

Add more tests for PR target/66232

	PR target/66232
	* gcc.target/i386/pr66232-6.c: New tests.
	* gcc.target/i386/pr66232-7.c: Likewise.
	* gcc.target/i386/pr66232-8.c: Likewise.
	* gcc.target/i386/pr66232-9.c: Likewise.

From-SVN: r226254
parent ad7b853a
2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
PR target/66232
* gcc.target/i386/pr66232-6.c: New tests.
* gcc.target/i386/pr66232-7.c: Likewise.
* gcc.target/i386/pr66232-8.c: Likewise.
* gcc.target/i386/pr66232-9.c: Likewise.
2015-07-27 Marek Polacek <polacek@redhat.com>
PR c++/66555
......
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
extern void bar (void) __attribute__((visibility("hidden")));
void
foo (void)
{
bar ();
}
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOT" { target ia32 } } } */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
extern void bar (void) __attribute__((visibility("hidden")));
int
foo (void)
{
bar ();
return 0;
}
/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOT" { target ia32 } } } */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
extern int bar (void) __attribute__((visibility("hidden")));
int
foo (void)
{
return bar ();
}
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "jmp\[ \t\]*.bar@GOT" { target ia32 } } } */
/* { dg-do compile { target *-*-linux* } } */
/* { dg-options "-O2 -fno-pic -fno-plt" } */
extern int bar (void) __attribute__((visibility("hidden")));
int
foo (void)
{
return bar () + 1;
}
/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOTPCREL" { target { ! ia32 } } } } */
/* { dg-final { scan-assembler-not "call\[ \t\]*.bar@GOT" { target ia32 } } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment