diff options
author | Richard Henderson <rth@redhat.com> | 1999-06-05 18:19:09 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-06-05 18:19:09 +0000 |
commit | b3dc0d0492d90feb3678f43ce687fcf9a5a6a5ab (patch) | |
tree | 4b4bde46e630be6f6b6f323e6a4ab1fbcba0bbe2 /gas/expr.c | |
parent | af81b7d64e968306829fe02bdbd1ab1b090fca20 (diff) | |
download | binutils-redhat-b3dc0d0492d90feb3678f43ce687fcf9a5a6a5ab.tar.gz |
* dwarf2dbg.c (*): Convert to K&R + prototypes.
(dwarf2_gen_line_info): Kill unused variables.
(dwarf2_finish): Likewise.
(dwarf2_where): Likewise.
(dwarf2_directive_file): If we've only got a string,
hand off to s_app_file.
* ecoff.c: Move the include of ecoff.h.
* symbols.h (S_IS_FUNCTION): Prototype.
* read.c (LEX_HASH): Supply a default.
(lex_type): Use it.
(s_globl): Update `c' after skipping whitespace.
* read.h (LEX_END_NAME, is_name_ender): New.
* expr.c (get_symbol_end): Respect it.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/expr.c b/gas/expr.c index 6e74bfa1da..c50e2c2f33 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -1863,9 +1863,13 @@ get_symbol_end () /* We accept \001 in a name in case this is being called with a constructed string. */ if (is_name_beginner (c = *input_line_pointer++) || c == '\001') - while (is_part_of_name (c = *input_line_pointer++) - || c == '\001') - ; + { + while (is_part_of_name (c = *input_line_pointer++) + || c == '\001') + ; + if (is_name_ender (c)) + c = *input_line_pointer++; + } *--input_line_pointer = 0; return (c); } |