[Gmp-commit] /var/hg/gmp: (ASM_START): Rewrite (fix broken error handling).

mercurial at gmplib.org mercurial at gmplib.org
Mon Jul 8 15:56:43 UTC 2019


details:   /var/hg/gmp/rev/d45112d7a5e2
changeset: 17778:d45112d7a5e2
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Jul 08 17:56:36 2019 +0200
description:
(ASM_START): Rewrite (fix broken error handling).

diffstat:

 mpn/arm/arm-defs.m4 |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r cbc6dbf95a10 -r d45112d7a5e2 mpn/arm/arm-defs.m4
--- a/mpn/arm/arm-defs.m4	Wed Jul 03 12:46:56 2019 +0200
+++ b/mpn/arm/arm-defs.m4	Mon Jul 08 17:56:36 2019 +0200
@@ -2,7 +2,7 @@
 
 dnl  m4 macros for ARM assembler.
 
-dnl  Copyright 2001, 2012-2016, 2018 Free Software Foundation, Inc.
+dnl  Copyright 2001, 2012-2016, 2018-2019 Free Software Foundation, Inc.
 
 dnl  This file is part of the GNU MP Library.
 dnl
@@ -36,9 +36,10 @@
 
 changecom(@&*$)
 
-define(`ASM_START',`
-ifelse($1,`neon',`.fpu	neon',
-m4_assert_numargs(0))')
+define(`ASM_START',
+m4_assert_numargs_range(0,1)
+`ifelse($1,`neon',`.fpu	neon',
+        $#,1,`m4_error(`$0 got invalid argument $1')')')
 
 dnl  APCS register names.
 


More information about the gmp-commit mailing list