From a134cc9b6ce1e678f2c34f4b2d88933854506fdf Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 7 May 2012 05:44:35 +0000 Subject: [PATCH] * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use local variable i_ instead of assuming and using a variable i. --- bfd/ChangeLog | 5 +++++ bfd/elf-bfd.h | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7eedaae66cd..455a1247ed7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-05-07 Hans-Peter Nilsson + + * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use + local variable i_ instead of assuming and using a variable i. + 2012-05-07 Maciej W. Rozycki * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index a016d473c26..5af46dcf5d3 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -2411,6 +2411,7 @@ extern asection _bfd_elf_large_com_section; rel, count, relend, \ howto, index, contents) \ { \ + int i_; \ _bfd_clear_contents (howto, input_bfd, input_section, \ contents + rel[index].r_offset); \ \ @@ -2440,10 +2441,10 @@ extern asection _bfd_elf_large_com_section; } \ } \ \ - for (i = 0; i < count; i++) \ + for (i_ = 0; i_ < count; i_++) \ { \ - rel[i].r_info = 0; \ - rel[i].r_addend = 0; \ + rel[i_].r_info = 0; \ + rel[i_].r_addend = 0; \ } \ rel += count - 1; \ continue; \