aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2006-02-28 07:57:09 +0000
committerJan Beulich <jbeulich@novell.com>2006-02-28 07:57:09 +0000
commit9f6f925e1e1a5aee784d0e04663e3c7a4dc76f55 (patch)
tree49c2490ea398fb8d9a58e742206368e635bebeeb /gas/macro.c
parent0e31b3e1a336b6cfed92f60bc0358e03aa694b96 (diff)
downloadgdb-9f6f925e1e1a5aee784d0e04663e3c7a4dc76f55.zip
gdb-9f6f925e1e1a5aee784d0e04663e3c7a4dc76f55.tar.gz
gdb-9f6f925e1e1a5aee784d0e04663e3c7a4dc76f55.tar.bz2
gas/
2006-02-28 Jan Beulich <jbeulich@novell.com> * macro.c (get_any_string): Don't insert quotes for <>-quoted input. gas/testsuite/ 2006-02-28 Jan Beulich <jbeulich@novell.com> * gas/all/altmacro.s: Adjust. * gas/all/altmac2.s: Adjust.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 0f3d507..af98bad 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -415,13 +415,12 @@ get_any_string (int idx, sb *in, sb *out)
|| (in->ptr[idx] == '<' && (macro_alternate || macro_mri))
|| (macro_alternate && in->ptr[idx] == '\''))
{
- if (macro_alternate && ! macro_strip_at)
+ if (macro_alternate && ! macro_strip_at && in->ptr[idx] != '<')
{
/* Keep the quotes. */
- sb_add_char (out, '\"');
-
+ sb_add_char (out, '"');
idx = getstring (idx, in, out);
- sb_add_char (out, '\"');
+ sb_add_char (out, '"');
}
else
{