From a196f01fdf15b503763b23822770e1c945517cef Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 6 May 1992 03:58:20 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r914 --- gcc/config/m68k/dpx2.h | 2 ++ gcc/config/svr3.h | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/gcc/config/m68k/dpx2.h b/gcc/config/m68k/dpx2.h index 49438234013..e4ddf10c982 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 9e871537a2f..9d70cbf0ae6 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 -- 2.30.2