diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-11-12 19:52:41 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-11-12 19:52:41 +0000 |
commit | 309fb86486627a810655e0e1f5767809ce4c0d51 (patch) | |
tree | 7d9c8cb288245599c654cb4728afe931aedad68c /gcc/config/m68k/mot3300.h | |
parent | 38281c46e9f16a5e88e2e056c976fbc99c9e94cd (diff) | |
download | gcc-309fb86486627a810655e0e1f5767809ce4c0d51.tar.gz |
(ASM_OUTPUT_INTERNAL_LABEL): Prefix labels with "L%".
(ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_CASE_LABEL): Likewise.
(ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13142 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k/mot3300.h')
-rw-r--r-- | gcc/config/m68k/mot3300.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index 37a53e26e8d..b4db7712119 100644 --- a/gcc/config/m68k/mot3300.h +++ b/gcc/config/m68k/mot3300.h @@ -520,25 +520,15 @@ do { long l; \ 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. */ @@ -548,21 +538,25 @@ do { long l; \ /* 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) */ |