https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64753 --- Comment #2 from UroÅ¡ Bizjak --- (In reply to Rasmus Villemoes from comment #0) > At the two places marked # we do a cmp and a conditional jump to .L3, where > for good measure the same cmp is done again... there's no other path to .L3, > so it would seem that simply omitting that extra cmp should be ok. IIRC postreload redundant compare elimination pass removes these redundant compares. Unfortunately, the pass is not yet enabled for x86 targets. >From gcc-bugs-return-475242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 28 13:31:04 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17995 invoked by alias); 28 Jan 2015 13:31:04 -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 17468 invoked by uid 48); 28 Jan 2015 13:30:59 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64757] [5 Regression] ICE in fold_convert_loc, at fold-const.c:2353 Date: Wed, 28 Jan 2015 13:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to attachments.created 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-01/txt/msg03236.txt.bz2 Content-length: 681 https://gcc.gnu.org/bugzilla/show_bug.cgi?idd757 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #7 from Paul Thomas --- Created attachment 34607 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id4607&actioníit Draft patch for the PR I believe that this regression was caused by the fix for pr60357. The patch is regtesting right now. Paul