diff options
author | Alan Modra <amodra@gmail.com> | 2001-07-30 06:15:49 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-07-30 06:15:49 +0000 |
commit | 468cced8b997b43359f2610c43a223d907a9bea7 (patch) | |
tree | db2276f7ee47ee5acfadd658dbc8086d7b59e142 /gas/config/tc-mn10200.c | |
parent | 5b2e4f117fa00ecf3846da58cf8756ec2e956052 (diff) | |
download | gdb-468cced8b997b43359f2610c43a223d907a9bea7.zip gdb-468cced8b997b43359f2610c43a223d907a9bea7.tar.gz gdb-468cced8b997b43359f2610c43a223d907a9bea7.tar.bz2 |
* config/obj-elf.c (obj_elf_symver): Temporarily modify lex_type
to include '@' in symbol names when parsing versioned symbols
rather than calling get_symbol_end multiple times.
* config/tc-i370.c (register_name): Format fixes. Don't call
get_symbol_end after parsing number.
* config/tc-mn10200.c (data_register_name): Format fixes. Hoist
code out of conditional.
(address_register_name): Likewise.
(other_register_name): Likewise.
* config/tc-mn10300.c (r_register_name): Likewise.
(xr_register_name): Likewise.
(data_register_name): Likewise.
(address_register_name): Likewise.
(other_register_name): Likewise.
* config/tc-ppc.c (register_name): Likewise.
* config/tc-s390.c (register_name): Likewise.
Diffstat (limited to 'gas/config/tc-mn10200.c')
-rw-r--r-- | gas/config/tc-mn10200.c | 51 |
1 files changed, 18 insertions, 33 deletions
diff --git a/gas/config/tc-mn10200.c b/gas/config/tc-mn10200.c index dd3f9e5..a6a46af 100644 --- a/gas/config/tc-mn10200.c +++ b/gas/config/tc-mn10200.c @@ -197,6 +197,9 @@ data_register_name (expressionP) c = get_symbol_end (); reg_number = reg_name_search (data_registers, DATA_REG_NAME_CNT, name); + /* Put back the delimiting char. */ + *input_line_pointer = c; + /* Look to see if it's in the register table. */ if (reg_number >= 0) { @@ -207,20 +210,12 @@ data_register_name (expressionP) expressionP->X_add_symbol = NULL; expressionP->X_op_symbol = NULL; - /* Put back the delimiting char. */ - *input_line_pointer = c; return true; } - else - { - /* Reset the line as if we had not done anything. */ - /* Put back the delimiting char. */ - *input_line_pointer = c; - /* Reset input_line pointer. */ - input_line_pointer = start; - return false; - } + /* Reset the line as if we had not done anything. */ + input_line_pointer = start; + return false; } /* Summary of register_name(). @@ -249,6 +244,9 @@ address_register_name (expressionP) c = get_symbol_end (); reg_number = reg_name_search (address_registers, ADDRESS_REG_NAME_CNT, name); + /* Put back the delimiting char. */ + *input_line_pointer = c; + /* Look to see if it's in the register table. */ if (reg_number >= 0) { @@ -259,20 +257,12 @@ address_register_name (expressionP) expressionP->X_add_symbol = NULL; expressionP->X_op_symbol = NULL; - /* Put back the delimiting char. */ - *input_line_pointer = c; return true; } - else - { - /* Reset the line as if we had not done anything. */ - /* Put back the delimiting char. */ - *input_line_pointer = c; - /* Reset input_line pointer. */ - input_line_pointer = start; - return false; - } + /* Reset the line as if we had not done anything. */ + input_line_pointer = start; + return false; } /* Summary of register_name(). @@ -301,6 +291,9 @@ other_register_name (expressionP) c = get_symbol_end (); reg_number = reg_name_search (other_registers, OTHER_REG_NAME_CNT, name); + /* Put back the delimiting char. */ + *input_line_pointer = c; + /* Look to see if it's in the register table. */ if (reg_number >= 0) { @@ -311,20 +304,12 @@ other_register_name (expressionP) expressionP->X_add_symbol = NULL; expressionP->X_op_symbol = NULL; - /* Put back the delimiting char. */ - *input_line_pointer = c; return true; } - else - { - /* Reset the line as if we had not done anything. */ - /* Put back the delimiting char. */ - *input_line_pointer = c; - /* Reset input_line pointer. */ - input_line_pointer = start; - return false; - } + /* Reset the line as if we had not done anything. */ + input_line_pointer = start; + return false; } void |