[Gmp-commit] /var/hg/gmp: Avoid addend for GOT entry, it is not portable.

mercurial at gmplib.org mercurial at gmplib.org
Mon Apr 15 23:00:48 CEST 2013


details:   /var/hg/gmp/rev/5ea92466ab67
changeset: 15723:5ea92466ab67
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Apr 15 23:00:14 2013 +0200
description:
Avoid addend for GOT entry, it is not portable.

diffstat:

 ChangeLog                                |  3 +++
 mpn/sparc64/ultrasparct3/invert_limb.asm |  5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0b90b31bd2b7 -r 5ea92466ab67 ChangeLog
--- a/ChangeLog	Mon Apr 15 21:53:23 2013 +0200
+++ b/ChangeLog	Mon Apr 15 23:00:14 2013 +0200
@@ -1,5 +1,8 @@
 2013-04-15  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/sparc64/ultrasparct3/invert_limb.asm: Avoid addend for GOT entry,
+	it is not portable.
+
 	* mpn/sparc64/tabselect.asm: New file.
 
 	* mpn/x86/mmx/tabselect.asm: New file.
diff -r 0b90b31bd2b7 -r 5ea92466ab67 mpn/sparc64/ultrasparct3/invert_limb.asm
--- a/mpn/sparc64/ultrasparct3/invert_limb.asm	Mon Apr 15 21:53:23 2013 +0200
+++ b/mpn/sparc64/ultrasparct3/invert_limb.asm	Mon Apr 15 23:00:14 2013 +0200
@@ -40,9 +40,10 @@
 	sethi	%hi(_GLOBAL_OFFSET_TABLE_+4), %g4
 	add	%g4, %lo(_GLOBAL_OFFSET_TABLE_+8), %g4
 	add	%g3, %g4, %g4
-	sethi	%hi(approx_tab-512), %g2
-	or	%g2, %lo(approx_tab-512), %g2
+	sethi	%hi(approx_tab), %g2
+	or	%g2, %lo(approx_tab), %g2
 	ldx	[%g4+%g2], %g2
+	add	%g1, -512, %g1
 ',`
 	sethi	%hh(approx_tab-512), %g3
 	or	%g3, %hm(approx_tab-512), %g3


More information about the gmp-commit mailing list