From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69896 invoked by alias); 3 Jul 2015 10:06:52 -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 69860 invoked by uid 48); 3 Jul 2015 10:06:47 -0000 From: "edlinger at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/66747] [6 Regression] The commit r225260 broke the builds of the mips-{mti,img}-linux-gnu tool chains. Date: Fri, 03 Jul 2015 10:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: edlinger at gcc dot gnu.org 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: 6.0 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/msg00241.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66747 --- Comment #2 from Bernd Edlinger --- get_attr_got fails when called with a SEQUENCE. I am not sure if reg_overlap_mentioned_p works with SEQUENCE. --- gcc/config/mips/mips.c.jj 2015-06-08 23:06:50.000000000 +0200 +++ gcc/config/mips/mips.c 2015-07-03 11:38:48.962336295 +0200 @@ -9902,7 +9902,7 @@ mips_cfun_has_inflexible_gp_ref_p (void) static bool mips_insn_has_flexible_gp_ref_p (rtx_insn *insn) { - return (get_attr_got (insn) != GOT_UNSET + return ((PATTERN (insn)->code != SEQUENCE && get_attr_got (insn) != GOT_UNSET) || mips_small_data_pattern_p (PATTERN (insn)) || reg_overlap_mentioned_p (pic_offset_table_rtx, PATTERN (insn))); }