From 4e0c8ad2e76232d2011364f507c840b1573249f7 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 21 Sep 1996 06:53:37 -0400 Subject: (USER_LABEL_PREFIX): Define instead of ASM_OUTPUT_LABELREF. From-SVN: r12750 --- gcc/config/1750a/1750a.h | 6 ++---- gcc/config/a29k/a29k.h | 7 +++---- gcc/config/alpha/alpha.h | 6 ++---- gcc/config/convex/convex.h | 5 ++--- gcc/config/dsp16xx/dsp16xx.h | 8 ++++---- gcc/config/elxsi/elxsi.h | 9 ++++----- gcc/config/fx80/fx80.h | 8 +++----- gcc/config/gmicro/gmicro.h | 6 ++---- gcc/config/h8300/h8300.h | 6 ++---- gcc/config/i386/sun386.h | 7 +++---- gcc/config/i860/i860.h | 8 +++----- gcc/config/i960/i960.h | 5 ++--- gcc/config/ns32k/ns32k.h | 8 +++----- gcc/config/pdp11/pdp11.h | 6 ++---- gcc/config/pyr/pyr.h | 7 +++---- gcc/config/romp/romp.h | 6 ++---- gcc/config/sh/sh.h | 6 +++--- gcc/config/sparc/sparc.h | 6 ++---- gcc/config/spur/spur.h | 8 +++----- gcc/config/tahoe/tahoe.h | 7 +++---- gcc/config/vax/vax.h | 5 ++--- gcc/config/we32k/we32k.h | 8 +++----- 22 files changed, 58 insertions(+), 90 deletions(-) (limited to 'gcc') diff --git a/gcc/config/1750a/1750a.h b/gcc/config/1750a/1750a.h index 364da8e..86414a5 100644 --- a/gcc/config/1750a/1750a.h +++ b/gcc/config/1750a/1750a.h @@ -1084,11 +1084,9 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA fprintf (FILE, "\tglobal %s\t; export\n", NAME); \ } while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "%s", NAME) +#define USER_LABEL_PREFIX "" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/a29k/a29k.h b/gcc/config/a29k/a29k.h index b70e13d..f64c98d 100644 --- a/gcc/config/a29k/a29k.h +++ b/gcc/config/a29k/a29k.h @@ -1461,11 +1461,10 @@ extern int a29k_debug_reg_map[]; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.global ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#undef USER_LABEL_PREFIX +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 44a5410..dbd16a5 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -1753,11 +1753,9 @@ literal_section () \ #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "%s", NAME) +#define USER_LABEL_PREFIX "" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/convex/convex.h b/gcc/config/convex/convex.h index b687fbc..2aa6032 100644 --- a/gcc/config/convex/convex.h +++ b/gcc/config/convex/convex.h @@ -1292,10 +1292,9 @@ extern double atof(); #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index cfe6013..bb38904 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -1796,10 +1796,10 @@ const_section () \ assemble_name (FILE, XSTR (FUN, 0)); \ fprintf (FILE, "\n"); \ } -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) + +/* The prefix to add to user-visible assembler symbols. */ + +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/elxsi/elxsi.h b/gcc/config/elxsi/elxsi.h index 30cab54..7a7e757 100644 --- a/gcc/config/elxsi/elxsi.h +++ b/gcc/config/elxsi/elxsi.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler. Elxsi version. - Copyright (C) 1987, 1988, 1992, 1995 Free Software Foundation, Inc. - This port, done by Mike Stump in 1988, is the first + Copyright (C) 1987, 1988, 1992, 1995, 1996 Free Software Foundation, Inc. + This port, contributed by Mike Stump in 1988, is the first 64 bit port of GNU CC. Based upon the VAX port. @@ -797,10 +797,9 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES }; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.extdef\t", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "%s", NAME) +#define USER_LABEL_PREFIX "" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/fx80/fx80.h b/gcc/config/fx80/fx80.h index 59a3108..b56834a 100644 --- a/gcc/config/fx80/fx80.h +++ b/gcc/config/fx80/fx80.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. Alliant FX version. - Copyright (C) 1989, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. Adapted from m68k.h by Paul Petersen (petersen@uicsrd.csrd.uiuc.edu) and Joe Weening (weening@gang-of-four.stanford.edu). @@ -1063,11 +1063,9 @@ extern enum reg_class regno_reg_class[]; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/gmicro/gmicro.h b/gcc/config/gmicro/gmicro.h index 8b18bb0..6333b1e 100644 --- a/gcc/config/gmicro/gmicro.h +++ b/gcc/config/gmicro/gmicro.h @@ -1353,11 +1353,9 @@ extern enum reg_class regno_reg_class[]; } -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 9d4288b..acf0964 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -1191,11 +1191,9 @@ readonly_data() \ #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ ASM_OUTPUT_LABEL(FILE, NAME) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE, NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/i386/sun386.h b/gcc/config/i386/sun386.h index 6e26807..4d4d66c 100644 --- a/gcc/config/i386/sun386.h +++ b/gcc/config/i386/sun386.h @@ -1,5 +1,5 @@ /* Definitions for Sun assembler syntax for the Intel 80386. - Copyright (C) 1988 Free Software Foundation, Inc. + Copyright (C) 1988, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -131,10 +131,9 @@ do \ #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \ sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER)) -/* This is how to output a reference to a user-level label named NAME. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "%s", NAME) +#define USER_LABEL_PREFIX "" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/i860/i860.h b/gcc/config/i860/i860.h index eb8baf5..29a42cc 100644 --- a/gcc/config/i860/i860.h +++ b/gcc/config/i860/i860.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler, for Intel 860. - Copyright (C) 1989, 1991, 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1989, 1991, 1993, 1995, 1996 Free Software Foundation, Inc. Hacked substantially by Ron Guilmette (rfg@segfault.us.com) to cater to the whims of the System V Release 4 assembler. @@ -1046,15 +1046,13 @@ struct cumulative_args { int ints, floats; }; fputs ("\n", FILE); \ } while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. +/* The prefix to add to user-visible assembler symbols. This definition is overridden in i860v4.h because under System V Release 4, user-level symbols are *not* prefixed with underscores in the generated assembly code. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index 6838b0d..f5bcfa4 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -1263,10 +1263,9 @@ extern struct rtx_def *gen_compare_reg (); assemble_name (FILE, NAME); \ fputs ("\n", FILE); } -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h index 2f5109c..f10c772 100644 --- a/gcc/config/ns32k/ns32k.h +++ b/gcc/config/ns32k/ns32k.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. NS32000 version. - Copyright (C) 1988, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1988, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -1364,11 +1364,9 @@ do { \ } while (0) #endif -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h index f38a9a8..94da18e 100644 --- a/gcc/config/pdp11/pdp11.h +++ b/gcc/config/pdp11/pdp11.h @@ -1079,11 +1079,9 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n") \ #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs("\n", FILE); } while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/pyr/pyr.h b/gcc/config/pyr/pyr.h index 881956d..db9d174 100644 --- a/gcc/config/pyr/pyr.h +++ b/gcc/config/pyr/pyr.h @@ -1,6 +1,6 @@ /* Definitions of target machine parameters for GNU compiler, for Pyramid 90x, 9000, and MIServer Series. - Copyright (C) 1989, 1995 Free Software Foundation, Inc. + Copyright (C) 1989, 1995, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -1177,10 +1177,9 @@ extern int swap_operands; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME); +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/romp/romp.h b/gcc/config/romp/romp.h index 9fc6a4b..be12d36 100644 --- a/gcc/config/romp/romp.h +++ b/gcc/config/romp/romp.h @@ -1419,11 +1419,9 @@ extern int romp_debugger_arg_correction(); #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index f410396..92fa50e 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -1432,9 +1432,9 @@ dtors_section() \ assemble_name (STREAM, NAME), \ fputc ('\n',STREAM)) -/* Output a reference to a label. */ -#define ASM_OUTPUT_LABELREF(STREAM,NAME) \ - fprintf (STREAM, "_%s", NAME) +/* The prefix to add to user-visible assembler symbols. */ + +#define USER_LABEL_PREFIX "_" /* Make an internal label into a string. */ #define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \ diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index d3e18c2..4e51a96 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -2814,11 +2814,9 @@ extern struct rtx_def *legitimize_pic_address (); #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs ("\t.global ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output a definition of an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/spur/spur.h b/gcc/config/spur/spur.h index 75ddd4b..51e1add 100644 --- a/gcc/config/spur/spur.h +++ b/gcc/config/spur/spur.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler, for SPUR chip. - Copyright (C) 1988, 1995 Free Software Foundation, Inc. + Copyright (C) 1988, 1995, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -873,11 +873,9 @@ extern int current_function_pretend_args_size; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/tahoe/tahoe.h b/gcc/config/tahoe/tahoe.h index cd2b641..b4076ce 100644 --- a/gcc/config/tahoe/tahoe.h +++ b/gcc/config/tahoe/tahoe.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. Tahoe version. - Copyright (C) 1989, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -781,10 +781,9 @@ enum reg_class {NO_REGS,GENERAL_REGS,FPP_REG,ALL_REGS,LIM_REG_CLASSES}; #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* output a label by appending an underscore to it */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* use the standard format for printing internal labels */ diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index ddd8ac5..e9370a0 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -1076,10 +1076,9 @@ gen_rtx (PLUS, Pmode, frame, gen_rtx (CONST_INT, VOIDmode, 12)) #define ASM_GLOBALIZE_LABEL(FILE,NAME) \ do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) -/* This is how to output a reference to a user-level label named NAME. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "_%s", NAME) +#define USER_LABEL_PREFIX "_" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ diff --git a/gcc/config/we32k/we32k.h b/gcc/config/we32k/we32k.h index bf1364a..460fc3d 100644 --- a/gcc/config/we32k/we32k.h +++ b/gcc/config/we32k/we32k.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. AT&T we32000 version. - Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. Contributed by John Wehle (john@feith1.uucp) This file is part of GNU CC. @@ -770,11 +770,9 @@ enum reg_class { NO_REGS, GENERAL_REGS, fputs ("\n", FILE); \ } while (0) -/* This is how to output a reference to a user-level label named NAME. - `assemble_name' uses this. */ +/* The prefix to add to user-visible assembler symbols. */ -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - fprintf (FILE, "%s", NAME) +#define USER_LABEL_PREFIX "" /* This is how to output an internal numbered label where PREFIX is the class of label and NUM is the number within the class. */ -- cgit v1.1