From 2a00acf0302a5eeb785109e92e69518822d95ae4 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 5 Jan 1993 04:46:25 +0000 Subject: (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Alternate definitions if NO_UNDERSCORES. From-SVN: r3092 --- gcc/config/i386/bsd.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/config/i386/bsd.h b/gcc/config/i386/bsd.h index 8d23314..164290c 100644 --- a/gcc/config/i386/bsd.h +++ b/gcc/config/i386/bsd.h @@ -85,21 +85,31 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ to a multiple of 2**LOG bytes. */ #define ASM_OUTPUT_ALIGN(FILE,LOG) \ - if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG)) + if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG)) /* This is how to store into the string BUF the symbol_ref name of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. This is suitable for output with `assemble_name'. */ +#ifdef NO_UNDERSCORES +#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ + sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER)) +#else #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ sprintf ((BUF), "*%s%d", (PREFIX), (NUMBER)) +#endif /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ +#ifdef NO_UNDERSCORES +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ + fprintf (FILE, ".%s%d:\n", PREFIX, NUM) +#else #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ fprintf (FILE, "%s%d:\n", PREFIX, NUM) +#endif /* This is how to output a reference to a user-level label named NAME. */ -- cgit v1.1