From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21290 invoked by alias); 5 Nov 2012 16:21:11 -0000 Received: (qmail 20513 invoked by uid 48); 5 Nov 2012 16:20:46 -0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55195] [4.8 Regression] shorten_branches generates incorrect forward branch distances Date: Mon, 05 Nov 2012 16:21: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amylaar 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-Changed-Fields: Component Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-11/txt/msg00385.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55195 Jorn Wolfgang Rennecke changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |middle-end --- Comment #9 from Jorn Wolfgang Rennecke 2012-11-05 16:20:44 UTC --- (In reply to comment #8) > That would be nice, and pretty straightforward to code, but we seem short of > generator program patches reviewers now. I take back that statement about this being straightforward. We need valid minimum and maximum instruction lengths. The opaque dummy clause automatically provides a value to be included in these calculations. If we had a varying_length attribute, I suppose we could make its value the maximum length, and 0 the minimum length. Maybe we should call the attribute max_length then. But something would need to be done to weave these values into the generated insn_ min / default _length functions.