]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Prefer to use ppc register names, if assembler supports it.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 24 Sep 2020 17:53:24 +0000 (19:53 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 24 Sep 2020 17:53:24 +0000 (19:53 +0200)
ChangeLog
aclocal.m4

index f3426ef7d3cf2769faac5e949466c6a519c63e52..f1fc7e9b24827ba545257b405b101a61287df6cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-24  Niels Möller  <nisse@obsidian>
+
+       * 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  <nisse@obsidian>
 
        * m4-utils.m4: New file with m4 utilities, copied from GMP's
index 29aa5c3e260a61fb7cedfc2b218be60a1767902e..68154a723f01d69c85d788b8084f77b413911cd4 100644 (file)
@@ -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"
 ])