From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11075 invoked by alias); 4 Feb 2015 19:35:53 -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 11042 invoked by uid 55); 4 Feb 2015 19:35:49 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/64905] unsigned short is loaded with 4-byte load (movl) Date: Wed, 04 Feb 2015 19:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.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-02/txt/msg00361.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64905 --- Comment #6 from hjl at gcc dot gnu.org --- Author: hjl Date: Wed Feb 4 19:35:17 2015 New Revision: 220414 URL: https://gcc.gnu.org/viewcvs?rev=220414&root=gcc&view=rev Log: Clear hard frame pointer alignment if not needed When hard frame pointer isn't needed, the register for hard frame pointer may be reused. This patch clears alignment on hard frame pointer if hard frame pointer isn't needed. gcc/ PR rtl-optimization/64905 * lra-eliminations.c (setup_can_eliminate): Clear hard frame pointer alignment if it isn't needed. gcc/testsuite/ PR rtl-optimization/64905 * gcc.target/i386/pr64905.c: New file. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog