aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Malcomson <matthew.malcomson@arm.com>2020-02-11 10:17:33 +0000
committerMatthew Malcomson <matthew.malcomson@arm.com>2020-02-11 10:17:33 +0000
commit1ed818b4dde56c5baf12c369b571c89b30b4a9e9 (patch)
tree46a741431aa45d4e556a13bbd83db81b92f68254
parentb2770d5e779088c62fd107a690dbfc94b4c89a88 (diff)
downloadgdb-1ed818b4dde56c5baf12c369b571c89b30b4a9e9.zip
gdb-1ed818b4dde56c5baf12c369b571c89b30b4a9e9.tar.gz
gdb-1ed818b4dde56c5baf12c369b571c89b30b4a9e9.tar.bz2
[binutils][gas] Fix build failure with -std=c89
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.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b086374..7da1708 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 48b1d36..102bedd 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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);