PR bootstrap/66978
* gcc.target/i386/pr66978.c: New test.
From-SVN: r226150
+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.
--- /dev/null
+/* { 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 ();
+}