diff options
author | Steve Chamberlain <sac@cygnus> | 1995-08-01 01:31:42 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-08-01 01:31:42 +0000 |
commit | 5f57cea3f66564abf5062e33ea31c0acd09efe82 (patch) | |
tree | 7c52cc0a2ac11cd59ca81afa06b7e64a644a7ffe /gas/gasp.c | |
parent | Oops, don't edit a file when your checkin hasn't finished (diff) | |
download | binutils-gdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.tar.gz binutils-gdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.tar.bz2 binutils-gdb-5f57cea3f66564abf5062e33ea31c0acd09efe82.zip |
* gasp.c (change_base): Don't modify numbers in strings. (pr7583)
* testsuite/gas/gasp/*: New.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r-- | gas/gasp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/gasp.c b/gas/gasp.c index 87e55a1dc76..c164412a89a 100644 --- a/gas/gasp.c +++ b/gas/gasp.c @@ -1362,6 +1362,18 @@ change_base (idx, in, out) idx++; } } + else if (in->ptr[idx] == '"' || in->ptr[idx] == '\'') + { + char tchar = in->ptr[idx]; + /* copy entire names through quickly */ + sb_add_char (out, in->ptr[idx]); + idx++; + while (idx < in->len && in->ptr[idx] != tchar) + { + sb_add_char (out, in->ptr[idx]); + idx++; + } + } else { /* nothing special, just pass it through */ |