aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-score.c8
-rw-r--r--gas/config/tc-score7.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/tc-score.c b/gas/config/tc-score.c
index 6242b8c..e8c8b6d 100644
--- a/gas/config/tc-score.c
+++ b/gas/config/tc-score.c
@@ -6854,8 +6854,8 @@ s3_relax_branch_inst16 (fragS * fragp)
frag_addr = 0;
else
{
- if (s->bsym != 0)
- symbol_address = (addressT) s->sy_frag->fr_address;
+ if (s->bsym != NULL)
+ symbol_address = (addressT) symbol_get_frag (s)->fr_address;
}
inst_value = s3_md_chars_to_number (fragp->fr_literal, s3_INSN16_SIZE);
@@ -6901,8 +6901,8 @@ s3_relax_cmpbranch_inst32 (fragS * fragp)
frag_addr = 0;
else
{
- if (s->bsym != 0)
- symbol_address = (addressT) s->sy_frag->fr_address;
+ if (s->bsym != NULL)
+ symbol_address = (addressT) symbol_get_frag (s)->fr_address;
}
inst_value = s3_md_chars_to_number (fragp->fr_literal, s3_INSN_SIZE);
diff --git a/gas/config/tc-score7.c b/gas/config/tc-score7.c
index 4719680..7bf0ad6 100644
--- a/gas/config/tc-score7.c
+++ b/gas/config/tc-score7.c
@@ -5263,8 +5263,8 @@ s7_b32_relax_to_b16 (fragS * fragp)
frag_addr = 0;
else
{
- if (s->bsym != 0)
- symbol_address = (addressT) s->sy_frag->fr_address;
+ if (s->bsym != NULL)
+ symbol_address = (addressT) symbol_get_frag (s)->fr_address;
}
value = s7_md_chars_to_number (fragp->fr_literal, s7_INSN_SIZE);