summaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2003-06-02 15:03:20 +0000
committerAlan Modra <amodra@bigpond.net.au>2003-06-02 15:03:20 +0000
commit17c2bc12768a8a8305e366a52cd90d90b1cf327e (patch)
tree19538cb0a6715a5268b92439c65070e6e93ed963 /gas/macro.c
parent31ef0624759298ea0db04aaa22cff5024ebdca69 (diff)
downloadbinutils-redhat-17c2bc12768a8a8305e366a52cd90d90b1cf327e.tar.gz
* macro.c (sub_actual): Don't lose string if it turns out that
&string wasn't an arg.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 469ca801f3..b0b7ec21e7 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -637,6 +637,7 @@ sub_actual (start, in, t, formal_hash, kind, out, copyifnotthere)
{
/* Doing this permits people to use & in macro bodies. */
sb_add_char (out, '&');
+ sb_add_sb (out, t);
}
else if (copyifnotthere)
{