aboutsummaryrefslogtreecommitdiff
path: root/gold/ChangeLog
diff options
context:
space:
mode:
authorIlya Tocar <ilya.tocar@intel.com>2015-04-06 12:37:34 +0300
committerIlya Tocar <ilya.tocar@intel.com>2015-04-06 12:37:34 +0300
commit1fa29f10602cd0ab395e0f83c9d87ab160b0df8a (patch)
treeacd7f929971240760aa1a3723d1a64734f2218be /gold/ChangeLog
parentcbaa2d709747b9da2955761ec86cbee4340263e3 (diff)
downloadgdb-1fa29f10602cd0ab395e0f83c9d87ab160b0df8a.zip
gdb-1fa29f10602cd0ab395e0f83c9d87ab160b0df8a.tar.gz
gdb-1fa29f10602cd0ab395e0f83c9d87ab160b0df8a.tar.bz2
[Gold,x86_64] Convert mov foo@GOTPCREL(%rip), %reg to lea foo(%rip), %reg
2015-04-06 Ilya Tocar <ilya.tocar@intel.com> PR gold/17641 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): New. (Target_x86_64::Scan::local): Don't create GOT entry, when we can convert mov to lea. (Target_x86_64::Scan::global): Ditto. (Target_x86_64::Relocate::relocate): Convert mov foo@GOTPCREL(%rip), %reg to lea foo(%rip), %reg if possible. * testsuite/Makefile.am (x86_64_mov_to_lea): New test. * testsuite/x86_64_mov_to_lea1.s: New. * testsuite/x86_64_mov_to_lea2.s: Ditto. * testsuite/x86_64_mov_to_lea3.s: Ditto. * testsuite/x86_64_mov_to_lea4.s: Ditto. * testsuite/x86_64_mov_to_lea.sh: Ditto. ---
Diffstat (limited to 'gold/ChangeLog')
-rw-r--r--gold/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index ea4390e..a838b05 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,19 @@
+2015-04-06 Ilya Tocar <ilya.tocar@intel.com>
+
+ PR gold/17641
+ * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): New.
+ (Target_x86_64::Scan::local): Don't create GOT entry, when we
+ can convert mov to lea.
+ (Target_x86_64::Scan::global): Ditto.
+ (Target_x86_64::Relocate::relocate): Convert mov foo@GOTPCREL(%rip),
+ %reg to lea foo(%rip), %reg if possible.
+ * testsuite/Makefile.am (x86_64_mov_to_lea): New test.
+ * testsuite/x86_64_mov_to_lea1.s: New.
+ * testsuite/x86_64_mov_to_lea2.s: Ditto.
+ * testsuite/x86_64_mov_to_lea3.s: Ditto.
+ * testsuite/x86_64_mov_to_lea4.s: Ditto.
+ * testsuite/x86_64_mov_to_lea.sh: Ditto.
+
2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.