From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70799 invoked by alias); 9 Apr 2015 19:46:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 70699 invoked by uid 48); 9 Apr 2015 19:46:55 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57032] [4.9/5 Regression]: internal compiler error: Max. number of generated reload insns per insn is achieved (90) Date: Thu, 09 Apr 2015 19:46: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: SUSPENDED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00753.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57032 --- Comment #10 from Uro=C5=A1 Bizjak --- (In reply to Richard Henderson from comment #9) > I think all of the bits touching reload internals stems > from the non-existence of define_memory_constraint when > the port was first written. >=20 > I suspect that this is fixable with nothing more than >=20 > (define_memory_constraint "Q" > "@internal normal memory operand" > (and (match_code "mem") > (match_test "GET_CODE (XEXP (op, 0)) !=3D AND") > (match_test "memory_address_addr_space_p > (GET_MODE (op), XEXP (op, 0), > MEM_ADDR_SPACE (op))"))) Great, this fix brings bootstrap way further to libgomp, but now crashes wi= th: /space/homedirs/uros/gcc-svn/trunk/libgomp/team.c: In function =E2=80=98gomp_team_start=E2=80=99: /space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:836:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90) However, this is different problem, and this one indeed looks like RA probl= em. There, RA wants to reload: (insn 280 2259 279 17 (set (reg:DI 364) (ashift:DI (zero_extend:DI (subreg/s/u:QI (reg/v:DI 98 [ bind ]) 0)) (ashift:DI (reg/f:DI 362) (const_int 3 [0x3])))) /space/homedirs/uros/gcc-svn/trunk/libgomp/team.c:334 83 {insbl} (nil)) and creates reload loop trying to move QImode subreg of DImode value to QI = reg: Choosing alt 0 in insn 280: (0) =3Dr (1) r (2) rI {insbl} Creating newreg=3D1020, assigning class GENERAL_REGS to r1020 280: r364:DI=3Dzero_extend(r1020:QI)<>From gcc-bugs-return-483202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Apr 09 19:47:56 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75029 invoked by alias); 9 Apr 2015 19:47:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74937 invoked by uid 48); 9 Apr 2015 19:47:52 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65710] [5 Regression] Thumb1 ICE caused by no register to spill Date: Thu, 09 Apr 2015 19:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: 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: 2015-04/txt/msg00754.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65710 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |FIXED --- Comment #5 from Jakub Jelinek --- Fixed, thanks.