This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, lra] PR70751, correct the cost for spilling non-pseudo into memory


On 27/06/16 17:26, Dominik Vogt wrote:
On Thu, Jun 09, 2016 at 09:52:39AM -0600, Jeff Law wrote:
On 06/08/2016 10:47 AM, Jiong Wang wrote:
As discussed on the PR

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70751,

here is the patch.
This commit has introduced an ICE with s390x, march=z13.  Is it a
backend bug or one in the middleend?

-- x.c --
void foo(int *n, int off, int *m)
{
   int i;

   for(i = 0 ;i <= 3; i++)
     {
       n[off + i] = m[2 * i];
       n[off + 7 - i] = m[2 * i + 1];
     }
}
-- snip --

   $ gcc -S -O3 -march=z13 x.c
x.c: In function âfooâ:
x.c:10:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90)

I tried the following on gcc trunk (r237817, 28-June-2016), can't reproduce the issue.

configure --target=s390-linux
./cc1 -O3 1.c -nostdinc -march=z13

Can you please paste "gcc -v -S -O3 -march=z13 x.c" to see what's passed to cc1?

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]