From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48493 invoked by alias); 15 Jul 2015 18:12:38 -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 48470 invoked by uid 48); 15 Jul 2015 18:12:34 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66885] New: trunk/gcc/config/mcore/mcore.c:1656: poor code order ? Date: Wed, 15 Jul 2015 18:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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/msg01263.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66885 Bug ID: 66885 Summary: trunk/gcc/config/mcore/mcore.c:1656: poor code order ? Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- [trunk/gcc/config/mcore/mcore.c:1656]: (style) Expression is always false because 'else if' condition matches previous condition at line 1654. Source code is if (bytes & 1) max = 4*4; else if (bytes & 3) max = 8*4; else max = 16*4; Suggest check & 3 *before & 1.