Clear hard frame pointer alignment if not needed
authorH.J. Lu <hjl@gcc.gnu.org>
Wed, 4 Feb 2015 19:35:17 +0000 (11:35 -0800)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 4 Feb 2015 19:35:17 +0000 (11:35 -0800)
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.

From-SVN: r220414

gcc/ChangeLog
gcc/testsuite/ChangeLog

index 2507b892ee35296f4130d5b78f4ddded0dd45c5f..f724d54539bec2bbf006a39c8cc7b8fd4f8d0702 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR rtl-optimization/64905
+       * lra-eliminations.c (setup_can_eliminate): Clear hard frame
+       pointer alignment if it isn't needed.
+
 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
 
        * config/aarch64/aarch64-cores.def: Add cortex-a72 and
index 6b10ca54a9bbc421c959c34e1eee16b52e29bc10..ef6201751bdfa7d06bd62b05da1ad4c14b382fe0 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR rtl-optimization/64905
+       * gcc.target/i386/pr64905.c: New file.
+
 2015-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * gcc.dg/guality/pr41447-1.c: Remove xfail.