From ef58021bdb92d5a9cf2acabb1845ff9b70cc9541 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 31 Mar 1992 09:03:25 +0000 Subject: [PATCH] entered into RCS From-SVN: r644 --- gcc/config/m68k/hp320.h | 13 ++++++------- gcc/config/m68k/mot3300.h | 7 +++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gcc/config/m68k/hp320.h b/gcc/config/m68k/hp320.h index aa6c19179b8..eedf94ec20d 100644 --- a/gcc/config/m68k/hp320.h +++ b/gcc/config/m68k/hp320.h @@ -164,8 +164,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef PRINT_OPERAND #undef PRINT_OPERAND_ADDRESS #undef FUNCTION_PROFILER -#undef ASM_GLOBALIZE_LABEL #undef ASM_OUTPUT_INTERNAL_LABEL +#undef GLOBAL_ASM_OP #define TARGET_VERSION fprintf (stderr, " (68k, SGS/hpux syntax)"); @@ -293,6 +293,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define DATA_SECTION_ASM_OP "data" #define ASCII_DATA_ASM_OP "byte" + +/* This is the command to make the user-level label named NAME + defined for reference from other files. */ + +#define GLOBAL_ASM_OP "global" /* This says how to output an assembler line to define a global common symbol. */ @@ -318,12 +323,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 12), \ sprintf ((OUTPUT), "%s___%d", (NAME), (LABELNO))) -/* This is how to output a command to make the user-level label named NAME - defined for reference from other files. */ - -#define ASM_GLOBALIZE_LABEL(FILE,NAME) \ - do { fputs ("\tglobal ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) - #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ do{ if (PREFIX[0] == 'L' && PREFIX[1] == 'I') \ fprintf(FILE, "\tset %s%d,.+2\n", PREFIX, NUM); \ diff --git a/gcc/config/m68k/mot3300.h b/gcc/config/m68k/mot3300.h index caa894861c1..4501e43fda3 100644 --- a/gcc/config/m68k/mot3300.h +++ b/gcc/config/m68k/mot3300.h @@ -282,12 +282,11 @@ output_file_directive ((FILE), main_input_filename) ((N) == 0 || (N) == 8 || (TARGET_68881 && (N) == 16)) #endif -/* This is how to output a command to make the user-level label named NAME +/* This is the command to make the user-level label named NAME defined for reference from other files. */ -#undef ASM_GLOBALIZE_LABEL -#define ASM_GLOBALIZE_LABEL(FILE,NAME) \ - do { fputs ("\tglobal ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) +#undef GLOBAL_ASM_OP +#define GLOBAL_ASM_OP "global" /* Store in OUTPUT a string (made with alloca) containing an assembler-name for a local static variable named NAME. -- 2.30.2