From 567d0e9f44b8c64e7c3aa8a3822cbfefe7bd21d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niels=20M=C3=B6ller?= Date: Thu, 24 Sep 2020 19:53:24 +0200 Subject: [PATCH] Prefer to use ppc register names, if assembler supports it. --- ChangeLog | 5 +++++ aclocal.m4 | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f3426ef7..f1fc7e9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-09-24 Niels Möller + + * aclocal.m4 (GMP_ASM_POWERPC_R_REGISTERS): Prefer to use register + names. Can be tested by configuring with CC='gcc -Wa,-mregnames'. + 2020-09-21 Niels Möller * m4-utils.m4: New file with m4 utilities, copied from GMP's diff --git a/aclocal.m4 b/aclocal.m4 index 29aa5c3e..68154a72 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -570,12 +570,12 @@ AC_DEFUN([GMP_ASM_POWERPC_R_REGISTERS], gmp_cv_asm_powerpc_r_registers, [GMP_TRY_ASSEMBLE( [ $gmp_cv_asm_text - mtctr 6], -[gmp_cv_asm_powerpc_r_registers=no], -[GMP_TRY_ASSEMBLE( -[ .text mtctr r6], [gmp_cv_asm_powerpc_r_registers=yes], +[GMP_TRY_ASSEMBLE( +[ .text + mtctr 6], +[gmp_cv_asm_powerpc_r_registers=no], [AC_MSG_ERROR([neither "mtctr 6" nor "mtctr r6" works])])])]) ASM_PPC_WANT_R_REGISTERS="$gmp_cv_asm_powerpc_r_registers" ]) -- 2.47.2