aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-02 15:03:20 +0000
committerAlan Modra <amodra@gmail.com>2003-06-02 15:03:20 +0000
commitc1ed1235d7943e118f65f6fd906be98113b16df5 (patch)
treec6d9d1f5c32fd582a9be706b5148e4345fbb4b94 /gas/macro.c
parent92991082e9db02ae89daffa50771552e958ba177 (diff)
downloadgdb-c1ed1235d7943e118f65f6fd906be98113b16df5.zip
gdb-c1ed1235d7943e118f65f6fd906be98113b16df5.tar.gz
gdb-c1ed1235d7943e118f65f6fd906be98113b16df5.tar.bz2
* 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 469ca80..b0b7ec2 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)
{