* macro.c (sub_actual): Don't lose string if it turns out that
authorAlan Modra <amodra@gmail.com>
Mon, 2 Jun 2003 15:03:20 +0000 (15:03 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Jun 2003 15:03:20 +0000 (15:03 +0000)
&string wasn't an arg.

gas/ChangeLog
gas/macro.c

index 34e844bbfffbe0d03cbcb677c77b81cc46493a28..e5ac47426f13ce8e17fc0b88759c51113e3058d2 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-02  Alan Modra  <amodra@bigpond.net.au>
+
+       * macro.c (sub_actual): Don't lose string if it turns out that
+       &string wasn't an arg.
+
 2003-05-31  Richard Henderson  <rth@redhat.com>
 
        * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
index 469ca801f32101fc9e078dd5375fa429608c54e0..b0b7ec21e75d336fa7a571e09d8ec5d0c74018c6 100644 (file)
@@ -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)
     {