aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2015-04-17 20:55:54 +0930
committerAlan Modra <amodra@gmail.com>2015-04-17 21:01:28 +0930
commitef7a936968ec4cdeadd19b0ccb213403adc26390 (patch)
tree24a260d61dd5fd3aeba0960ce13b77730a9fbfe5 /gas
parent1b6e6f5c7ffba559a681d11852acf38ef48dceff (diff)
downloadgdb-ef7a936968ec4cdeadd19b0ccb213403adc26390.zip
gdb-ef7a936968ec4cdeadd19b0ccb213403adc26390.tar.gz
gdb-ef7a936968ec4cdeadd19b0ccb213403adc26390.tar.bz2
Fix avr compiler warning
declaration of "link" shadows a global declaration * config/tc-avr.c (create_record_for_frag): Rename link to prop_rec_link.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-avr.c30
2 files changed, 20 insertions, 15 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7161b43..18d0f41 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
+
+ * config/tc-avr.c (create_record_for_frag): Rename link to
+ prop_rec_link.
+
2015-04-15 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention
diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c
index cc0328d..5c8982c 100644
--- a/gas/config/tc-avr.c
+++ b/gas/config/tc-avr.c
@@ -2060,41 +2060,41 @@ exclude_section_from_property_tables (segT sec)
static struct avr_property_record_link *
create_record_for_frag (segT sec, fragS *fragP)
{
- struct avr_property_record_link *link;
+ struct avr_property_record_link *prop_rec_link;
- link = xmalloc (sizeof (struct avr_property_record_link));
- memset (link, 0, sizeof (*link));
+ prop_rec_link = xmalloc (sizeof (struct avr_property_record_link));
+ memset (prop_rec_link, 0, sizeof (*prop_rec_link));
if (fragP->tc_frag_data.is_org)
{
- link->record.offset = fragP->fr_next->fr_address;
- link->record.section = sec;
+ prop_rec_link->record.offset = fragP->fr_next->fr_address;
+ prop_rec_link->record.section = sec;
if (fragP->tc_frag_data.has_fill)
{
- link->record.data.org.fill = fragP->tc_frag_data.fill;
- link->record.type = RECORD_ORG_AND_FILL;
+ prop_rec_link->record.data.org.fill = fragP->tc_frag_data.fill;
+ prop_rec_link->record.type = RECORD_ORG_AND_FILL;
}
else
- link->record.type = RECORD_ORG;
+ prop_rec_link->record.type = RECORD_ORG;
}
else
{
- link->record.offset = fragP->fr_address;
- link->record.section = sec;
+ prop_rec_link->record.offset = fragP->fr_address;
+ prop_rec_link->record.section = sec;
gas_assert (fragP->tc_frag_data.is_align);
if (fragP->tc_frag_data.has_fill)
{
- link->record.data.align.fill = fragP->tc_frag_data.fill;
- link->record.type = RECORD_ALIGN_AND_FILL;
+ prop_rec_link->record.data.align.fill = fragP->tc_frag_data.fill;
+ prop_rec_link->record.type = RECORD_ALIGN_AND_FILL;
}
else
- link->record.type = RECORD_ALIGN;
- link->record.data.align.bytes = fragP->tc_frag_data.alignment;
+ prop_rec_link->record.type = RECORD_ALIGN;
+ prop_rec_link->record.data.align.bytes = fragP->tc_frag_data.alignment;
}
- return link;
+ return prop_rec_link;
}
/* Build a list of AVR_PROPERTY_RECORD_LINK structures for section SEC, and