On Fri, Jul 24, 2015 at 2:22 AM, Richard Biener <richard.guent...@gmail.com> wrote: > On Fri, Jul 24, 2015 at 1:19 AM, H.J. Lu <hjl.to...@gmail.com> wrote: >> On Thu, Jul 23, 2015 at 4:14 PM, David Edelsohn <dje....@gmail.com> wrote: >>> On Thu, Jul 23, 2015 at 5:59 PM, H.J. Lu <hjl.to...@gmail.com> wrote: >>>> On Thu, Jul 23, 2015 at 1:57 PM, H.J. Lu <hjl.to...@gmail.com> wrote: >>>>> On Thu, Jul 23, 2015 at 1:31 PM, Segher Boessenkool >>>>> <seg...@kernel.crashing.org> wrote: >>>>>> On Thu, Jul 23, 2015 at 12:29:14PM -0300, Alexandre Oliva wrote: >>>>>>> Yeah. Thanks, I've tested it with this change, and I'm now checking >>>>>>> this in (full patch first; adjusted incremental patch at the end): >>>>>> >>>>>> Unfortunately it causes about a thousand test fails on powerpc64-linux >>>>>> (at least, it seems to be this patch, I haven't actually checked). >>>>>> >>>>> >>>>> It also caused: >>>>> >>>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66978 >>>>> >>>> >>>> and maybe: >>>> >>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66983 >>> >>> I request that this patch be reverted (again). >> >> And I request to test any new patches under x32 before checking in. >> You can use Ubuntu 14 to test x32. > > x32 is neither primary nor secondary arch. >
I suggested a way to reproduce the problem. I checked in this testcase so that the problem will show up on Linux/x86-64. -- H.J. --- Index: ChangeLog =================================================================== --- ChangeLog (revision 226149) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2015-07-24 H.J. Lu <hongjiu...@intel.com> + + PR bootstrap/66978 + * gcc.target/i386/pr66978.c: New test. + 2015-07-24 Andreas Krebbel <kreb...@linux.vnet.ibm.com> * gcc.target/s390/gpr2fprsavecfi.c: New test. Index: gcc.target/i386/pr66978.c =================================================================== --- gcc.target/i386/pr66978.c (revision 0) +++ gcc.target/i386/pr66978.c (working copy) @@ -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 (); +}