aboutsummaryrefslogtreecommitdiff
path: root/gcc/reginfo.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-10-02 13:12:37 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-10-02 13:12:37 +0000
commitea4b29d53a6d8e3ab2655a5d13c99bc445b8f286 (patch)
tree6658c42095e71f5f3c6776afba4afa23e9a44104 /gcc/reginfo.c
parent4bdb8c3dca3b518a6ca8dbaf60068f7e897ccc0e (diff)
downloadgcc-ea4b29d53a6d8e3ab2655a5d13c99bc445b8f286.zip
gcc-ea4b29d53a6d8e3ab2655a5d13c99bc445b8f286.tar.gz
gcc-ea4b29d53a6d8e3ab2655a5d13c99bc445b8f286.tar.bz2
Fix shadowing in globalize_reg
2019-10-02 Richard Sandiford <richard.sandiford@arm.com> gcc/ * reginfo.c (globalize_reg): Fix shadowed variable in function_abis walk. From-SVN: r276457
Diffstat (limited to 'gcc/reginfo.c')
-rw-r--r--gcc/reginfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reginfo.c b/gcc/reginfo.c
index 6bed844..9813bab 100644
--- a/gcc/reginfo.c
+++ b/gcc/reginfo.c
@@ -731,8 +731,8 @@ globalize_reg (tree decl, int i)
if (i != STACK_POINTER_REGNUM)
{
SET_HARD_REG_BIT (regs_invalidated_by_call, i);
- for (unsigned int i = 0; i < NUM_ABI_IDS; ++i)
- function_abis[i].add_full_reg_clobber (i);
+ for (unsigned int j = 0; j < NUM_ABI_IDS; ++j)
+ function_abis[j].add_full_reg_clobber (i);
}
/* If already fixed, nothing else to do. */