From 67fd2789185d5075adc71def1590a3cabceb547a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 24 Jul 2015 12:08:00 +0000 Subject: [PATCH] Add a testcase for PR bootstrap/66978 PR bootstrap/66978 * gcc.target/i386/pr66978.c: New test. From-SVN: r226150 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr66978.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr66978.c 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 (); +} -- 2.30.2