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:
H.J. Lu 2015-07-24 12:08:00 +00:00 committed by H.J. Lu
parent b8fedf996b
commit 67fd278918
2 changed files with 20 additions and 0 deletions

View file

@ -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.

View 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 ();
}