This is suitable for output with `assemble_name'. */
#undef ASM_GENERATE_INTERNAL_LABEL
-#ifndef USE_GAS
-#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) \
- sprintf ((LABEL), "%s%%%d", (PREFIX), (NUM))
-#else /* USE_GAS */
#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) \
- sprintf ((LABEL), ".%s%d", (PREFIX), (NUM))
-#endif /* USE_GAS */
+ sprintf ((LABEL), "%s%s%d", LOCAL_LABEL_PREFIX, (PREFIX), (NUM))
/* 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
-#ifndef USE_GAS
-#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
- fprintf (FILE, "%s%%%d:\n", PREFIX, NUM)
-#else /* USE_GAS */
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
- fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
-#endif /* USE_GAS */
+ asm_fprintf (FILE, "%L%s%d:\n", PREFIX, NUM)
/* The prefix to add to user-visible assembler symbols. */
/* This is how to output an element of a case-vector that is absolute.
(The 68000 does not use such vectors,
but we must define this macro anyway.) */
+/* The L after the local prefix is the "L" prefix for the normal labels
+ generated by gcc; why are ASM_OUTPUT_ADDR_VEC_ELT and
+ ASM_OUTPUT_ADDR_DIFF_ELT not called with a PREFIX parameter, like
+ ASM_OUTPUT_INTERNAL_LABEL ? */
#undef ASM_OUTPUT_ADDR_VEC_ELT
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "\t%s %L%d\n", ASM_LONG, (VALUE))
+ asm_fprintf (FILE, "\t%s %LL%d\n", ASM_LONG, (VALUE))
/* This is how to output an element of a case-vector that is relative. */
#undef ASM_OUTPUT_ADDR_DIFF_ELT
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
- asm_fprintf (FILE, "\t%s %L%d-%L%d\n", ASM_SHORT, (VALUE), (REL))
+ asm_fprintf (FILE, "\t%s %LL%d-%LL%d\n", ASM_SHORT, (VALUE), (REL))
#ifndef USE_GAS
#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLE) \
- fprintf (FILE, "\tswbeg &%d\n%s%%%d:\n", \
+ asm_fprintf (FILE, "\tswbeg &%d\n%L%s%d:\n", \
XVECLEN (PATTERN (TABLE), 1), (PREFIX), (NUM))
/* sysV68 as cannot handle LD%n(%pc,%reg) */