public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
@ 2014-04-05 10:45 glisse at gcc dot gnu.org
  2014-04-07 10:20 ` [Bug rtl-optimization/60769] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-04-05 10:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60769

            Bug ID: 60769
           Summary: [4.8 Regression] ICE: Max. number of generated reload
                    insns per insn is achieved (90)
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org

Hello,

the following seems already fixed in 4.9, but it would be great to backport it
(I don't know which patch) to 4.8. For many bugs, it is often possible to find
a workaround, but for allocation bugs, it is quite mysterious what fragile
changes I have to make to my code to work around it. I tested with debian's
current gcc-4.8, which is essentially r207828 from gcc-4_8-branch.

Compile with g++-4.8 -c -O ouin.ii:
ouin.ii: In function ‘void fn3(N&)’:
ouin.ii:38:1: internal compiler error: Max. number of generated reload insns
per insn is achieved (90)

 }
 ^




template <class T> void fun(T);
struct B {};
struct R {
  int *x;
  B f;
};
R v(int &, R);
void rfun(R &);
struct A {
  void m_fn2(R p1) {
    R a = p1;
    rfun(p1);
    fun(this);
    fun(a);
  }
};
struct J {
  A ep;
  A ap;
  int c2a;
  void m_fn1(R &p2) {
    R d, e, b;
    v(c2a, p2);
    e = v(c2a, b);
    ap.m_fn2(e);
    v(c2a, p2);
    d = v(c2a, b);
    ep.m_fn2(d);
  }
};
struct N {
  int &p_;
  J cfo;
};
void fn3(N&n) {
  R h;
  n.cfo.m_fn1(h);
}
extern N &c;
void fn1() { fn3(c); }
>From gcc-bugs-return-448361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 05 10:55:38 2014
Return-Path: <gcc-bugs-return-448361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 23600 invoked by alias); 5 Apr 2014 10:55:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 23576 invoked by uid 48); 5 Apr 2014 10:55:35 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
Date: Sat, 05 Apr 2014 10:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.8.3
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60769-4-G4GFwkOdeW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60769-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60769-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-04/txt/msg00381.txt.bz2
Content-length: 469

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`769

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Still present with a pure r209150.

0x98bcc9 lra_constraints(bool)
    /data/repos/gcc/gcc-4_8-branch/gcc/lra-constraints.c:3563
0x97c676 lra(_IO_FILE*)
    /data/repos/gcc/gcc-4_8-branch/gcc/lra.c:2278
0x937a82 do_reload
    /data/repos/gcc/gcc-4_8-branch/gcc/ira.c:4667
0x937cd9 rest_of_handle_reload
    /data/repos/gcc/gcc-4_8-branch/gcc/ira.c:4791


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
@ 2014-04-07 10:20 ` rguenth at gcc dot gnu.org
  2014-04-10 23:22 ` vmakarov at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-04-07 10:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60769

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-*
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.7.3, 4.9.0
           Keywords|                            |ra
   Last reconfirmed|                            |2014-04-07
                 CC|                            |vmakarov at gcc dot gnu.org
     Ever confirmed|0                           |1
   Target Milestone|---                         |4.8.3
      Known to fail|                            |4.8.0, 4.8.2

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
  2014-04-07 10:20 ` [Bug rtl-optimization/60769] " rguenth at gcc dot gnu.org
@ 2014-04-10 23:22 ` vmakarov at gcc dot gnu.org
  2014-04-11  6:14 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-04-10 23:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60769

--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Thu Apr 10 23:22:10 2014
New Revision: 209285

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

    PR rtl-optimization/60769
    * lra-constraints.c (simplify_operand_subreg): Force reload of
    paradoxical subreg if it is not in the class contents.

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

    PR rtl-optimization/60769
    * g++.dg/pr60769.C: New.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/pr60769.C
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/lra-constraints.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
  2014-04-07 10:20 ` [Bug rtl-optimization/60769] " rguenth at gcc dot gnu.org
  2014-04-10 23:22 ` vmakarov at gcc dot gnu.org
@ 2014-04-11  6:14 ` jakub at gcc dot gnu.org
  2014-04-11  8:00 ` glisse at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-11  6:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60769

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Are you going to commit the testcase to the trunk too?


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-04-11  6:14 ` jakub at gcc dot gnu.org
@ 2014-04-11  8:00 ` glisse at gcc dot gnu.org
  2014-05-22  9:07 ` rguenth at gcc dot gnu.org
  2014-12-10 12:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-04-11  8:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60769

--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
Thanks!
(not closing because of Jakub's comment, but it is working fine now)


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-04-11  8:00 ` glisse at gcc dot gnu.org
@ 2014-05-22  9:07 ` rguenth at gcc dot gnu.org
  2014-12-10 12:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-22  9:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.3                       |4.8.4

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 4.8.3 is being released, adjusting target milestone.


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

* [Bug rtl-optimization/60769] [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90)
  2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-05-22  9:07 ` rguenth at gcc dot gnu.org
@ 2014-12-10 12:56 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-10 12:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.


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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05 10:45 [Bug rtl-optimization/60769] New: [4.8 Regression] ICE: Max. number of generated reload insns per insn is achieved (90) glisse at gcc dot gnu.org
2014-04-07 10:20 ` [Bug rtl-optimization/60769] " rguenth at gcc dot gnu.org
2014-04-10 23:22 ` vmakarov at gcc dot gnu.org
2014-04-11  6:14 ` jakub at gcc dot gnu.org
2014-04-11  8:00 ` glisse at gcc dot gnu.org
2014-05-22  9:07 ` rguenth at gcc dot gnu.org
2014-12-10 12:56 ` rguenth 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).