diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-22 14:35:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-22 14:35:19 +0000 |
commit | a77f5182c7d7ee65904c073161053e330bc8eed1 (patch) | |
tree | 3cd248846c9769f8b476cf4863e2564aa9a754d0 /gas/config/tc-arc.c | |
parent | 8fc2b121ea7cbd74147d537981dba1fa341bc8f9 (diff) | |
download | binutils-a77f5182c7d7ee65904c073161053e330bc8eed1.zip binutils-a77f5182c7d7ee65904c073161053e330bc8eed1.tar.gz binutils-a77f5182c7d7ee65904c073161053e330bc8eed1.tar.bz2 |
* config/tc-arc.c (get_arc_exp_reloc_type): Change uses of
sy_value with appropriate accessor functions.
* config/tc-arm.c (md_apply_fix3): Likewise.
* config/tc-d10v.c (AT_WORD_P): Likewise.
* config/tc-v850.c (reg_name_search): Likewise.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r-- | gas/config/tc-arc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 55543da..ccacd25 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -1242,13 +1242,13 @@ get_arc_exp_reloc_type (data_p, default_type, exp, expnew) if (exp->X_op == O_right_shift && exp->X_op_symbol != NULL - && exp->X_op_symbol->sy_value.X_op == O_constant - && exp->X_op_symbol->sy_value.X_add_number == 2 + && symbol_constant_p (exp->X_op_symbol) + && S_GET_VALUE (exp->X_op_symbol) == 2 && exp->X_add_number == 0) { if (exp->X_add_symbol != NULL - && (exp->X_add_symbol->sy_value.X_op == O_constant - || exp->X_add_symbol->sy_value.X_op == O_symbol)) + && (symbol_constant_p (exp->X_add_symbol) + || symbol_equated_p (exp->X_add_symbol))) { *expnew = *exp; expnew->X_op = O_symbol; @@ -1256,9 +1256,10 @@ get_arc_exp_reloc_type (data_p, default_type, exp, expnew) return data_p ? BFD_RELOC_ARC_B26 : arc_operand_map['J']; } else if (exp->X_add_symbol != NULL - && exp->X_add_symbol->sy_value.X_op == O_subtract) + && (symbol_get_value_expression (exp->X_add_symbol)->X_op + == O_subtract)) { - *expnew = exp->X_add_symbol->sy_value; + *expnew = *symbol_get_value_expression (exp->X_add_symbol); return data_p ? BFD_RELOC_ARC_B26 : arc_operand_map['J']; } } |