From: Richard Stallman Date: Fri, 30 Oct 1992 01:16:23 +0000 (+0000) Subject: (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e28d6e8a917f47a50d6d29c484d6609a75450966;p=gcc.git (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Override, if NO_UNDERSCORES. From-SVN: r2654 --- diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index a57e2f149a5..141a857ec46 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -134,3 +134,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Print opcodes the way that GAS expects them. */ #define GAS_MNEMONICS 1 + +#ifdef NO_UNDERSCORES /* If user-symbols don't have underscores, + then it must take more than `L' to identify + a label that should be ignored. */ + +/* 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'. */ + +#undef ASM_GENERATE_INTERNAL_LABEL +#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ + sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER)) + +/* This is how to output an internal numbered label where + PREFIX is the class of label and NUM is the number within the class. */ + +#undef ASM_OUTPUT_INTERNAL_LABEL +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ + fprintf (FILE, ".%s%d:\n", PREFIX, NUM) + +#endif /* NO_UNDERSCORES */