[binutils][gas] Fix build failure with -std=c89
authorMatthew Malcomson <matthew.malcomson@arm.com>
Tue, 11 Feb 2020 10:17:33 +0000 (10:17 +0000)
committerMatthew Malcomson <matthew.malcomson@arm.com>
Tue, 11 Feb 2020 10:17:33 +0000 (10:17 +0000)
My previous patch introduced the use of a C99 feature.  C99 standard is
not required for gas, so this feature should be removed.

Committed as obvious.

gas/ChangeLog:

2020-02-11  Matthew Malcomson  <matthew.malcomson@arm.com>

* config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
loop initial declaration.

gas/ChangeLog
gas/config/tc-arm.c

index b0863740e82e99bcfc481facf719821da1c2e414..7da170803704bbda1daf9d15e8e570f235881263 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-11  Matthew Malcomson  <matthew.malcomson@arm.com>
+
+       * config/tc-arm.c (vcx_handle_register_arguments): Remove `for`
+       loop initial declaration.
+
 2020-02-10  Matthew Malcomson  <matthew.malcomson@arm.com>
 
        * config/tc-arm.c (NEON_MAX_TYPE_ELS): Increment to account for
index 48b1d3603f8c77ceb06d6e0f078f5e3cd612466e..102bedd4d109ba35c019a6912a43068cc35e1af5 100644 (file)
@@ -21980,9 +21980,9 @@ static void
 vcx_handle_register_arguments (unsigned num_registers,
                               enum vcx_reg_type reg_type)
 {
-  unsigned R;
+  unsigned R, i;
   unsigned reg_mult = vcx_handle_shape (reg_type);
-  for (unsigned i = 0; i < num_registers; i++)
+  for (i = 0; i < num_registers; i++)
     {
       R = inst.operands[i+1].reg;
       vcx_ensure_register_in_range (R, reg_type);