[Gmp-commit] /var/hg/gmp: More powerpc64le changes (by Ulrich Weigand).

mercurial at gmplib.org mercurial at gmplib.org
Sat Dec 14 16:54:01 UTC 2013


details:   /var/hg/gmp/rev/92ab483b71b5
changeset: 16101:92ab483b71b5
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sat Dec 14 17:53:57 2013 +0100
description:
More powerpc64le changes (by Ulrich Weigand).

diffstat:

 ChangeLog               |  6 ++++++
 mpn/powerpc32/darwin.m4 |  8 +++++---
 mpn/powerpc32/elf.m4    |  7 ++++---
 3 files changed, 15 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r 85e13c6f3293 -r 92ab483b71b5 ChangeLog
--- a/ChangeLog	Fri Dec 13 12:23:03 2013 +0100
+++ b/ChangeLog	Sat Dec 14 17:53:57 2013 +0100
@@ -1,3 +1,9 @@
+2013-12-14  Ulrich Weigand  <Ulrich.Weigand at de.ibm.com>
+
+	* mpn/powerpc32/darwin.m4: Allow (and ignore) optional
+	'toc' parameter to PROLOGUE_cpu.
+	* mpn/powerpc32/elf.m4: Likewise.
+
 2013-12-09  Ulrich Weigand  <Ulrich.Weigand at de.ibm.com>
 
 	* configure.ac: Check for ELFv2 ABI on PowerPC.
diff -r 85e13c6f3293 -r 92ab483b71b5 mpn/powerpc32/darwin.m4
--- a/mpn/powerpc32/darwin.m4	Fri Dec 13 12:23:03 2013 +0100
+++ b/mpn/powerpc32/darwin.m4	Sat Dec 14 17:53:57 2013 +0100
@@ -20,13 +20,15 @@
 
 define(`ASM_START',`')
 
-dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
+dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo[,toc])
 dnl          EPILOGUE_cpu(GSYM_PREFIX`'foo)
 dnl
 
 define(`PROLOGUE_cpu',
-m4_assert_numargs(1)
-`	.text
+m4_assert_numargs_range(1,2)
+`ifelse(`$2',toc,,
+`ifelse(`$2',,,`m4_error(`Unrecognised PROLOGUE parameter')')')dnl
+	.text
 	.globl	$1
 	.align	3
 $1:')
diff -r 85e13c6f3293 -r 92ab483b71b5 mpn/powerpc32/elf.m4
--- a/mpn/powerpc32/elf.m4	Fri Dec 13 12:23:03 2013 +0100
+++ b/mpn/powerpc32/elf.m4	Sat Dec 14 17:53:57 2013 +0100
@@ -20,13 +20,14 @@
 
 define(`ASM_START',`')
 
-dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo)
+dnl  Called: PROLOGUE_cpu(GSYM_PREFIX`'foo[,toc])
 dnl          EPILOGUE_cpu(GSYM_PREFIX`'foo)
 dnl
 
 define(`PROLOGUE_cpu',
-m4_assert_numargs(1)
-	`
+m4_assert_numargs_range(1,2)
+`ifelse(`$2',toc,,
+`ifelse(`$2',,,`m4_error(`Unrecognised PROLOGUE parameter')')')dnl
 	.section	".text"
 	.align	3
 	.globl	$1


More information about the gmp-commit mailing list