Some local variables that are passed as outputs to longlong.h macros are
declared register.  A later patch makes longlong.h take the address of
its outputs, in order to check their size inside the asm operand, and a
register variable has no address.

Drop register from those variables, and from the other locals in the
same functions for consistency.

libquadmath/ChangeLog:

        * printf/addmul_1.c (mpn_addmul_1): Drop register from locals.
        * printf/mul_1.c (mpn_mul_1): Likewise.
        * printf/submul_1.c (mpn_submul_1): Likewise.
        * strtod/strtod_l.c (got_limb): Likewise.
---
 libquadmath/printf/addmul_1.c | 8 ++++----
 libquadmath/printf/mul_1.c    | 6 +++---
 libquadmath/printf/submul_1.c | 8 ++++----
 libquadmath/strtod/strtod_l.c | 2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/libquadmath/printf/addmul_1.c b/libquadmath/printf/addmul_1.c
index f9284a2213d..d8dbfd294e2 100644
--- a/libquadmath/printf/addmul_1.c
+++ b/libquadmath/printf/addmul_1.c
@@ -29,10 +29,10 @@ mp_limb_t
 mpn_addmul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size,
              mp_limb_t s2_limb)
 {
-  register mp_limb_t cy_limb;
-  register mp_size_t j;
-  register mp_limb_t prod_high, prod_low;
-  register mp_limb_t x;
+  mp_limb_t cy_limb;
+  mp_size_t j;
+  mp_limb_t prod_high, prod_low;
+  mp_limb_t x;
 
   /* The loop counter and index J goes from -SIZE to -1.  This way
      the loop becomes faster.  */
diff --git a/libquadmath/printf/mul_1.c b/libquadmath/printf/mul_1.c
index 17087bfaa23..6727a94c783 100644
--- a/libquadmath/printf/mul_1.c
+++ b/libquadmath/printf/mul_1.c
@@ -27,9 +27,9 @@ mp_limb_t
 mpn_mul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size,
           mp_limb_t s2_limb)
 {
-  register mp_limb_t cy_limb;
-  register mp_size_t j;
-  register mp_limb_t prod_high, prod_low;
+  mp_limb_t cy_limb;
+  mp_size_t j;
+  mp_limb_t prod_high, prod_low;
 
   /* The loop counter and index J goes from -S1_SIZE to -1.  This way
      the loop becomes faster.  */
diff --git a/libquadmath/printf/submul_1.c b/libquadmath/printf/submul_1.c
index a2a4fc8b4f9..7b5bb91e8c5 100644
--- a/libquadmath/printf/submul_1.c
+++ b/libquadmath/printf/submul_1.c
@@ -29,10 +29,10 @@ mp_limb_t
 mpn_submul_1 (mp_ptr res_ptr, mp_srcptr s1_ptr, mp_size_t s1_size,
              mp_limb_t s2_limb)
 {
-  register mp_limb_t cy_limb;
-  register mp_size_t j;
-  register mp_limb_t prod_high, prod_low;
-  register mp_limb_t x;
+  mp_limb_t cy_limb;
+  mp_size_t j;
+  mp_limb_t prod_high, prod_low;
+  mp_limb_t x;
 
   /* The loop counter and index J goes from -SIZE to -1.  This way
      the loop becomes faster.  */
diff --git a/libquadmath/strtod/strtod_l.c b/libquadmath/strtod/strtod_l.c
index 4e8502347d4..8a2ea96cc7c 100644
--- a/libquadmath/strtod/strtod_l.c
+++ b/libquadmath/strtod/strtod_l.c
@@ -1517,7 +1517,7 @@ ____STRTOF_INTERNAL (const STRING_TYPE *nptr, STRING_TYPE 
**endptr, int group)
 #define got_limb                                                             \
              if (bits == 0)                                                  \
                {                                                             \
-                 register int cnt;                                           \
+                 int cnt;                                                    \
                  if (quot == 0)                                              \
                    cnt = BITS_PER_MP_LIMB;                                   \
                  else                                                        \

-- 
2.54.0

Reply via email to