diff options
-rw-r--r-- | gcc/config/m68k/dpx2.h | 2 | ||||
-rw-r--r-- | gcc/config/svr3.h | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/config/m68k/dpx2.h b/gcc/config/m68k/dpx2.h index 4943823..e4ddf10 100644 --- a/gcc/config/m68k/dpx2.h +++ b/gcc/config/m68k/dpx2.h @@ -81,6 +81,8 @@ #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NA) \ do { fprintf ((FILE), "\t.file\t'%s'\n", (NA)); } while (0) +/* This may not matter anymore, now that svr3.h overrides + ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_INTERNAL_LABEL. */ #undef LOCAL_LABEL_PREFIX #define LOCAL_LABEL_PREFIX "." /* diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h index 9e87153..9d70cbf 100644 --- a/gcc/config/svr3.h +++ b/gcc/config/svr3.h @@ -161,6 +161,30 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. #undef ASM_OUTPUT_LABELREF #define ASM_OUTPUT_LABELREF(FILE,NAME) fprintf (FILE, "_%s", NAME) +/* This is how to output an internal numbered label where + PREFIX is the class of label and NUM is the number within the class. + + For most svr3 systems, the convention is that any symbol which begins + with a period is not put into the linker symbol table by the assembler. +*/ + +#undef ASM_OUTPUT_INTERNAL_LABEL +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ + fprintf (FILE, ".%s%d:\n", PREFIX, NUM) + +/* This is how to store into the string LABEL + 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'. + + For most svr3 systems, the convention is that any symbol which begins + with a period is not put into the linker symbol table by the assembler. +*/ + +#undef ASM_GENERATE_INTERNAL_LABEL +#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ + sprintf (LABEL, ".%s%d", PREFIX, NUM) + /* Support const sections and the ctors and dtors sections for g++. Note that there appears to be two different ways to support const sections at the moment. You can either #define the symbol |