Add a testcase for PR bootstrap/66978
PR bootstrap/66978 * gcc.target/i386/pr66978.c: New test. From-SVN: r226150
This commit is contained in:
parent
b8fedf996b
commit
67fd278918
2 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-07-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR bootstrap/66978
|
||||
* gcc.target/i386/pr66978.c: New test.
|
||||
|
||||
2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
|
||||
|
||||
* gcc.target/s390/gpr2fprsavecfi.c: New test.
|
||||
|
|
15
gcc/testsuite/gcc.target/i386/pr66978.c
Normal file
15
gcc/testsuite/gcc.target/i386/pr66978.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* { dg-do compile { target { ! { ia32 } } } } */
|
||||
/* { dg-require-effective-target maybe_x32 } */
|
||||
/* { dg-options "-O2 -mx32 -maddress-mode=short" } */
|
||||
|
||||
extern int foo (int *);
|
||||
int
|
||||
bar (int *p)
|
||||
{
|
||||
__attribute__ ((noinline, noclone))
|
||||
int hack_digit (void)
|
||||
{
|
||||
return foo (p);
|
||||
}
|
||||
return hack_digit ();
|
||||
}
|
Loading…
Add table
Reference in a new issue