From: H.J. Lu Date: Fri, 24 Jul 2015 12:08:00 +0000 (+0000) Subject: Add a testcase for PR bootstrap/66978 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67fd2789185d5075adc71def1590a3cabceb547a;p=gcc.git Add a testcase for PR bootstrap/66978 PR bootstrap/66978 * gcc.target/i386/pr66978.c: New test. From-SVN: r226150 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 72955da88ee..3e8c2d2d82f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-24 H.J. Lu + + PR bootstrap/66978 + * gcc.target/i386/pr66978.c: New test. + 2015-07-24 Andreas Krebbel * 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 00000000000..7e4a631261a --- /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 (); +}