[Bug rtl-optimization/64905] unsigned short is loaded with 4-byte load (movl)

hjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 4 19:35:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64905

--- Comment #6 from hjl at gcc dot gnu.org <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



More information about the Gcc-bugs mailing list