* gas/i386/opcode.s: Pad section.
[deliverable/binutils-gdb.git] / gas / macro.c
index 09917443a1d5695e36972e7f96ba20185369dc8d..edadcc947ae91cc6b15feb270c54ced642ee5b16 100644 (file)
@@ -1,5 +1,5 @@
 /* macro.c - macro support for gas
-   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
    Written by Steve and Judy Chamberlain of Cygnus Support,
@@ -54,6 +54,7 @@ extern void *alloca ();
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
+#include "as.h"
 #include "libiberty.h"
 #include "safe-ctype.h"
 #include "sb.h"
@@ -132,6 +133,14 @@ macro_init (int alternate, int mri, int strip_at,
   macro_expr = expr;
 }
 
+/* Switch in and out of alternate mode on the fly.  */
+
+void
+macro_set_alternate (int alternate)
+{
+  macro_alternate = alternate;
+}
+
 /* Switch in and out of MRI mode on the fly.  */
 
 void
@@ -748,7 +757,7 @@ macro_expand_body (sb *in, sb *out, formal_entry *formals,
 
                  src = get_token (src, in, &f->name);
                  ++loccnt;
-                 sprintf (buf, "LL%04x", loccnt);
+                 sprintf (buf, IS_ELF ? ".LL%04x" : "LL%04x", loccnt);
                  sb_add_string (&f->actual, buf);
 
                  err = hash_jam (formal_hash, sb_terminate (&f->name), f);
This page took 0.023022 seconds and 4 git commands to generate.