diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-07-24 12:08:00 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-07-24 05:08:00 -0700 |
commit | 67fd2789185d5075adc71def1590a3cabceb547a (patch) | |
tree | c579a3ae78c820227a30b0eb4bdd4ec3e91ccbd3 | |
parent | b8fedf996be60ac2de2dcd0dbe39e9f258cf0c8e (diff) | |
download | gcc-67fd2789185d5075adc71def1590a3cabceb547a.zip gcc-67fd2789185d5075adc71def1590a3cabceb547a.tar.gz gcc-67fd2789185d5075adc71def1590a3cabceb547a.tar.bz2 |
Add a testcase for PR bootstrap/66978
PR bootstrap/66978
* gcc.target/i386/pr66978.c: New test.
From-SVN: r226150
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr66978.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 72955da..3e8c2d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.target/i386/pr66978.c b/gcc/testsuite/gcc.target/i386/pr66978.c new file mode 100644 index 0000000..7e4a631 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr66978.c @@ -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 (); +} |