public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63448] New: ICE when compiling atlas 3.10.2
@ 2014-10-03  6:42 svante.signell at gmail dot com
  2014-10-03  6:48 ` [Bug c/63448] " svante.signell at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: svante.signell at gmail dot com @ 2014-10-03  6:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63448
           Summary: ICE when compiling atlas 3.10.2
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: svante.signell at gmail dot com


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/63448] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
@ 2014-10-03  6:48 ` svante.signell at gmail dot com
  2014-10-03  6:56 ` svante.signell at gmail dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: svante.signell at gmail dot com @ 2014-10-03  6:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Svante Signell <svante.signell at gmail dot com> ---
Created attachment 33642
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33642&action=edit
Preprocessed source stored into /tmp/ccejGHdk.out file


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/63448] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
  2014-10-03  6:48 ` [Bug c/63448] " svante.signell at gmail dot com
@ 2014-10-03  6:56 ` svante.signell at gmail dot com
  2014-10-03  7:00 ` trippels at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: svante.signell at gmail dot com @ 2014-10-03  6:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Svante Signell <svante.signell at gmail dot com> ---
Hi, when compiling ./build/atlas-base/src/blas/gemm/KERNEL/ATL_cNCCUmmNN.c from
Debian atlas 3.10.2-3 on GNU/Hurd the ICE happens (twice):
ATL_cNCCUmmNN.c:3856:1: internal compiler error: Maximum number of LRA
constraint passes is achieved (30)

 }
 ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.

gcc version is Debian 4.9.1-15.

It might be so that the input data for this generated file is non-sensical, the
CPU speed detection does not work on Hurd. Nevertheless, the compiler should
not error out with an ICE?

Thanks!


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/63448] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
  2014-10-03  6:48 ` [Bug c/63448] " svante.signell at gmail dot com
  2014-10-03  6:56 ` svante.signell at gmail dot com
@ 2014-10-03  7:00 ` trippels at gcc dot gnu.org
  2014-10-03  7:02 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-10-03  7:00 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-10-03
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Please post the complete command line that triggers the bug.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/63448] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (2 preceding siblings ...)
  2014-10-03  7:00 ` trippels at gcc dot gnu.org
@ 2014-10-03  7:02 ` pinskia at gcc dot gnu.org
  2014-10-06 14:57 ` [Bug rtl-optimization/63448] " rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-10-03  7:02 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #3)
> Please post the complete command line that triggers the bug.

It is included in the preprocessed source :).


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (3 preceding siblings ...)
  2014-10-03  7:02 ` pinskia at gcc dot gnu.org
@ 2014-10-06 14:57 ` rguenth at gcc dot gnu.org
  2014-10-06 18:52 ` [Bug rtl-optimization/63448] [4.9/5 Regression] " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-06 14:57 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra
             Target|                            |i?86-gnu
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|2014-10-03 00:00:00         |2014-10-06
                 CC|                            |vmakarov at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.2, 5.0

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
>From the attachment:

/usr/lib/gcc/i586-gnu/4.9/cc1 -quiet -I
/home/srs/DEBs/atlas/atlas-3.10.2/build/atlas-base/include -I
/home/srs/DEBs/atlas/atlas-3.10.2/build/atlas-base/../..//include -I
/home/srs/DEBs/atlas/atlas-3.10.2/build/atlas-base/../..//include/contrib
-imultilib . -imultiarch i386-gnu -D L2SIZE=4194304 -D Add_ -D F77_INTEGER=int
-D StringSunStyle -D ATL_OS_Linux -D ATL_ARCH_x86x87 -D ATL_GAS_x8632 -D WALL
ATL_cNCCUmmNN.c -quiet -dumpbase ATL_cNCCUmmNN.c -mfpmath=387 -m32
-mtune=generic -march=i586 -auxbase ATL_cNCCUmmNN -O2 -std=c99
-fomit-frame-pointer -falign-loops=4 -fPIC -o - -frandom-seed=0


Reproducible with just -std=c99 -m32 -O on x86_64-linux.  Confirmed on 4.9
branch and trunk.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] [4.9/5 Regression] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (4 preceding siblings ...)
  2014-10-06 14:57 ` [Bug rtl-optimization/63448] " rguenth at gcc dot gnu.org
@ 2014-10-06 18:52 ` jakub at gcc dot gnu.org
  2014-10-15 15:15 ` vmakarov at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-06 18:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.9.2
            Summary|ICE when compiling atlas    |[4.9/5 Regression] ICE when
                   |3.10.2                      |compiling atlas 3.10.2

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
int a, d, e, g, h, j;
float b, c, k, l, m, n;
int *__restrict i;
void
foo (void)
{
  int o = e;
  int *p;
  float *q, *r = (float *) 0x1234000;
  float s, t, u, v, w, x;
  do
    {
      for (a = o; a; a--)
    {
      s += m;
      t += n;
      u += m;
      v += n;
      w += d;
      x += d;
      n = l;
      s += r[1];
      t += n;
      v += r[1];
      m = k * r[4];
      n = q[0] * r[4];
      s += m;
      m = q[1] * r[4];
      t += n;
      q += g;
      k = *q;
      n = q[1] * r[4];
      s += m;
      t += n;
      u += r[4];
      m = q[8] * r[4];
      q += 1;
      n = q[1] * r[4];
      s += m;
      m = q[4];
      t += n;
      q += g;
      w += m;
      m = k * r[4];
      s += m;
      t += q[0];
      m = q[1] * r[4];
      v += q[0];
      n = q[10] * r[4];
      s += m;
      t += n;
      u += b;
      m = q[8] * r[4];
      n = q[2] * r[4];
      s += m;
      m = q[4] * r[4];
      t += n;
      q++;
      n = q[2] * r[16];
      s += m;
      m = q[4];
      t += n;
      s += m;
      t += r[6];
      q += g;
      k = *q;
      w += m;
      m = k * r[20];
      x += r[16];
      n = q[1] * r[20];
      s += m;
      t += n;
      q += g;
      k = *q;
      w += m;
      m = k * r[2];
      n = q[1] * r[22];
      s += m;
      m = q[4];
      t += n;
      q += g;
      s += m;
      t += q[0];
      s += m;
      u += m;
      n = q[1] * r[22];
      s += m;
      m = q[4] * r[22];
      t += n;
      q += g;
      k = 1;
      w += m;
      c = q[10];
      x += r[22];
      s += m;
      t += r[22];
      u += m;
      v += r[22];
      n = q[10] * r[30];
      d = r[32];
      l = q[1];
      b = 0;
      w += m;
      m = r[32];
      x += n;
      r = 0;
    }
      *i = s;
      p[0] = t;
      p[1] = u;
      p[6] = v;
      p[8] = w;
      p[10] = x;
    }
  while (j);
}

at -O -m32 -std=c99 ICE started at r210824 aka PR60969 fix.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] [4.9/5 Regression] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (5 preceding siblings ...)
  2014-10-06 18:52 ` [Bug rtl-optimization/63448] [4.9/5 Regression] " jakub at gcc dot gnu.org
@ 2014-10-15 15:15 ` vmakarov at gcc dot gnu.org
  2014-10-15 15:49 ` vmakarov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-10-15 15:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
I already saw such problem.  It is chain of spills and reassignment of
non-reload pseudos.  Each pass considers only 1-2 pseudos and very few insns. 
We just need 2 more passes to finish RA for the test.  The current code of LRA
looping prevention is too conservative for the case.

Finally I have an idea how to solve this kind of problems.  The patch is on the
way.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] [4.9/5 Regression] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (6 preceding siblings ...)
  2014-10-15 15:15 ` vmakarov at gcc dot gnu.org
@ 2014-10-15 15:49 ` vmakarov at gcc dot gnu.org
  2014-10-15 15:51 ` vmakarov at gcc dot gnu.org
  2014-10-23 10:34 ` jakub at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-10-15 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Wed Oct 15 15:48:33 2014
New Revision: 216270

URL: https://gcc.gnu.org/viewcvs?rev=216270&root=gcc&view=rev
Log:
2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/63448
    * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
    (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
    (LRA_MAX_INHERITANCE_PASSES): Use it.
    (lra_constraint_iter_after_spill): Remove.
    (lra_assignment_iter): New.
    (lra_assignment_iter_after_spill): New.
    * lra-assigns.c (lra_assignment_iter): New.
    (lra_assignment_iter_after_spill): New.
    (former_reload_pseudo_spill_p): New.
    (spill_for): Set up former_reload_pseudo_spill_p.
    (setup_live_pseudos_and_spill_after_risky): Ditto.
    (assign_by_spills): Ditto.
    (lra_assign): Increment lra_assignment_iter.  Print the iteration
    number.  Reset former_reload_pseudo_spill_p.  Check
    lra_assignment_iter_after_spill.
    * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
    lra_assignment_iter and lra_assignment_iter_after_spill.
    * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
    (lra_constraints): Remove code with
    lra_assignment_iter_after_spill.

2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/63448
    * gcc.target/i386/pr63448.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr63448.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-assigns.c
    trunk/gcc/lra-constraints.c
    trunk/gcc/lra-int.h
    trunk/gcc/lra.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] [4.9/5 Regression] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (7 preceding siblings ...)
  2014-10-15 15:49 ` vmakarov at gcc dot gnu.org
@ 2014-10-15 15:51 ` vmakarov at gcc dot gnu.org
  2014-10-23 10:34 ` jakub at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-10-15 15:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Wed Oct 15 15:51:07 2014
New Revision: 216271

URL: https://gcc.gnu.org/viewcvs?rev=216271&root=gcc&view=rev
Log:
2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/63448
    * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
    (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
    (LRA_MAX_INHERITANCE_PASSES): Use it.
    (lra_constraint_iter_after_spill): Remove.
    (lra_assignment_iter): New.
    (lra_assignment_iter_after_spill): New.
    * lra-assigns.c (lra_assignment_iter): New.
    (lra_assignment_iter_after_spill): New.
    (former_reload_pseudo_spill_p): New.
    (spill_for): Set up former_reload_pseudo_spill_p.
    (setup_live_pseudos_and_spill_after_risky): Ditto.
    (assign_by_spills): Ditto.
    (lra_assign): Increment lra_assignment_iter.  Print the iteration
    number.  Reset former_reload_pseudo_spill_p.  Check
    lra_assignment_iter_after_spill.
    * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
    lra_assignment_iter and lra_assignment_iter_after_spill.
    * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
    (lra_constraints): Remove code with
    lra_assignment_iter_after_spill.

2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/63448
    * gcc.target/i386/pr63448.c: New test.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63448.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/lra-assigns.c
    branches/gcc-4_9-branch/gcc/lra-constraints.c
    branches/gcc-4_9-branch/gcc/lra-int.h
    branches/gcc-4_9-branch/gcc/lra.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug rtl-optimization/63448] [4.9/5 Regression] ICE when compiling atlas 3.10.2
  2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
                   ` (8 preceding siblings ...)
  2014-10-15 15:51 ` vmakarov at gcc dot gnu.org
@ 2014-10-23 10:34 ` jakub at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-23 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Should be fixed now.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-10-23 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03  6:42 [Bug c/63448] New: ICE when compiling atlas 3.10.2 svante.signell at gmail dot com
2014-10-03  6:48 ` [Bug c/63448] " svante.signell at gmail dot com
2014-10-03  6:56 ` svante.signell at gmail dot com
2014-10-03  7:00 ` trippels at gcc dot gnu.org
2014-10-03  7:02 ` pinskia at gcc dot gnu.org
2014-10-06 14:57 ` [Bug rtl-optimization/63448] " rguenth at gcc dot gnu.org
2014-10-06 18:52 ` [Bug rtl-optimization/63448] [4.9/5 Regression] " jakub at gcc dot gnu.org
2014-10-15 15:15 ` vmakarov at gcc dot gnu.org
2014-10-15 15:49 ` vmakarov at gcc dot gnu.org
2014-10-15 15:51 ` vmakarov at gcc dot gnu.org
2014-10-23 10:34 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).