summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-12-13 14:36:23 +0100
committerTorbjorn Granlund <tege@gmplib.org>2012-12-13 14:36:23 +0100
commita9a3e6e26674370af81ed6cce05d640ae127451b (patch)
treee0546d58d8fb14bb2d007c4dbf364e4e15347e0f
parent4c597d25de6ba417845a03ef4e3ba6bd6b0f44e4 (diff)
downloadgmp-a9a3e6e26674370af81ed6cce05d640ae127451b.tar.gz
(JMPENT): Remove PIC variant.
(PIC): Move definition early.
-rw-r--r--mpn/x86_64/dos64.m423
1 files changed, 14 insertions, 9 deletions
diff --git a/mpn/x86_64/dos64.m4 b/mpn/x86_64/dos64.m4
index c1ae46c04..6263f85f8 100644
--- a/mpn/x86_64/dos64.m4
+++ b/mpn/x86_64/dos64.m4
@@ -18,15 +18,26 @@ dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
define(`HOST_DOS64')
+
+dnl On DOS64 we always generate position-independent-code
+dnl
+
+define(`PIC')
+
+
define(`LEA',`
lea $1(%rip), $2
')
+
+dnl Usage: JUMPTABSECT
+
define(`JUMPTABSECT', `RODATA')
-ifdef(`PIC',
- `define(`JMPENT', `.long $1-$2')',
- `define(`JMPENT', `.quad $1')')
+
+dnl Usage: JMPENT(targlabel,tablabel)
+
+define(`JMPENT', `.long $1-$2')
dnl Usage: FUNC_ENTRY(nregparmas)
@@ -52,12 +63,6 @@ define(`FUNC_EXIT',
pop %rdi')
-dnl On DOS64 we always generate position-independent-code
-dnl
-
-define(`PIC')
-
-
dnl Target ABI macros. For DOS64 we override the defaults.
define(`IFDOS', `$1')