aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/macro.c7
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/all/altmac2.s2
-rw-r--r--gas/testsuite/gas/all/altmacro.s2
5 files changed, 14 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 83d9f6b..28f5c53 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,9 @@
2006-02-28 Jan Beulich <jbeulich@novell.com>
+ * macro.c (get_any_string): Don't insert quotes for <>-quoted input.
+
+2006-02-28 Jan Beulich <jbeulich@novell.com>
+
PR/1070
* macro.c (getstring): Don't treat parentheses special anymore.
(get_any_string): Don't consider '(' and ')' as quoting anymore.
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
{
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 4f3e09d..7f91b24 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2006-02-28 Jan Beulich <jbeulich@novell.com>
+ * gas/all/altmacro.s: Adjust.
+ * gas/all/altmac2.s: Adjust.
+
+2006-02-28 Jan Beulich <jbeulich@novell.com>
+
* gas/macros/paren[sd]: New.
* gas/macros/macros.exp: Run new test.
diff --git a/gas/testsuite/gas/all/altmac2.s b/gas/testsuite/gas/all/altmac2.s
index 6038460..05f79af 100644
--- a/gas/testsuite/gas/all/altmac2.s
+++ b/gas/testsuite/gas/all/altmac2.s
@@ -1,5 +1,5 @@
.macro m1 str
- .ascii &str
+ .ascii "&str"
.endm
.data
diff --git a/gas/testsuite/gas/all/altmacro.s b/gas/testsuite/gas/all/altmacro.s
index a681981..d295539 100644
--- a/gas/testsuite/gas/all/altmacro.s
+++ b/gas/testsuite/gas/all/altmacro.s
@@ -20,7 +20,7 @@ m2 1, 3
m2 9, 27
m3 "abc"
-m3 <123>
+m3 <"1", "23">
.noaltmacro