From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 85367 invoked by alias); 24 Jul 2015 00:08:45 -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 85269 invoked by uid 48); 24 Jul 2015 00:08:40 -0000 From: "kkojima at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66930] [5 Regression]: gengtype.c is miscompiled during stage2 Date: Fri, 24 Jul 2015 00:08: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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kkojima at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.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-07/txt/msg02047.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66930 --- Comment #12 from Kazumoto Kojima --- (In reply to Oleg Endo from comment #10) > Index: gcc/config/sh/sh.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- gcc/config/sh/sh.c (revision 225987) > +++ gcc/config/sh/sh.c (working copy) > @@ -13888,6 +13888,7 @@ > && !sh_insn_operands_modified_between_p (t_before_negc.insn, > t_before_negc.insn, > t_after_negc.insn) > + && !modified_between_p (get_t_reg_rtx (), curr_insn, > t_after_negc.insn) > && !sh_unspec_insn_p (t_after_negc.insn) > && !volatile_insn_p (PATTERN (t_after_negc.insn)) > && !side_effects_p (PATTERN (t_after_negc.insn)) >=20 > I've added this code as part of PR 63986. I've checked with make -k > check-gcc RUNTESTFLAGS=3D"sh.exp > --target_board=3Dsh-sim\{-m2a/-mb,-m4/-ml,-m4/-mb}" that there are no new= SH > specific fails, so I assume the patch above should be OK (although all the > checks should probably be combined to avoid walking the insns repeatedly)= .=20 > Could you please add it to your test run? The toplevel "make -k check" on sh4-unknown-linux-gnu is running. I'll report back when it completes. BTW, during debugging the issue, I thought that this call-clobbered case is excluded with sh_find_set_of_reg and found again that NONJUMP_INSN_P is simply defined as (GET_CODE (X) =3D=3D INSN). Each time I've found it, I've recalled that it isn't (GET_CODE (X) !=3D JUMP_INSN), then the next time... Anyway I've tried another one liner --- a/config/sh/sh-protos.h +++ b/config/sh/sh-protos.h @@ -198,7 +198,7 @@ sh_find_set_of_reg (rtx reg, rtx_insn* insn, F stepfunc, { if (BARRIER_P (result.insn)) break; - if (!NONJUMP_INSN_P (result.insn)) + if (!NONJUMP_INSN_P (result.insn) && !CALL_P (result.insn)) continue; if (reg_set_p (reg, result.insn)) { and it works like as my expectation, though I'm not sure whether it's a "right thing" or not. >>From gcc-bugs-return-493158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jul 24 00:24:32 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110005 invoked by alias); 24 Jul 2015 00:24:32 -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 109952 invoked by uid 48); 24 Jul 2015 00:24:27 -0000 From: "eric.niebler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66962] [concepts] overloaded function causing memory blow-up and ICE Date: Fri, 24 Jul 2015 00:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: c++-concepts X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eric.niebler at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 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-07/txt/msg02048.txt.bz2 Content-length: 241 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66962 --- Comment #9 from Eric Niebler --- Jason, is there anything I can do in my code to avoid the quadratic explosion while we wait for Andrew to fix the bug?