aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-07-30 12:34:31 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-07-30 12:34:31 +0000
commit4ad5e05d7fc8e0544b8dbf9347e93376e4892630 (patch)
tree20b499ae703de470112842afebde469eff6420f4
parent8a4a72424f896e2eece646b980dcf4c38c420d24 (diff)
downloadgcc-4ad5e05d7fc8e0544b8dbf9347e93376e4892630.zip
gcc-4ad5e05d7fc8e0544b8dbf9347e93376e4892630.tar.gz
gcc-4ad5e05d7fc8e0544b8dbf9347e93376e4892630.tar.bz2
alpha.h, [...] (ASM_OUTPUT_LABEL): Delete definition.
* alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h, darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h, ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition. * defaults.h (ASM_OUTPUT_LABEL): Provide a default. * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs. From-SVN: r55872
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/config/alpha/alpha.h6
-rw-r--r--gcc/config/arc/arc.h5
-rw-r--r--gcc/config/arm/aout.h10
-rw-r--r--gcc/config/avr/avr.h11
-rw-r--r--gcc/config/c4x/c4x.h3
-rw-r--r--gcc/config/cris/cris.h8
-rw-r--r--gcc/config/d30v/d30v.h12
-rw-r--r--gcc/config/darwin.h4
-rw-r--r--gcc/config/dsp16xx/dsp16xx.h5
-rw-r--r--gcc/config/fr30/fr30.h13
-rw-r--r--gcc/config/h8300/h8300.h11
-rw-r--r--gcc/config/i370/i370.h5
-rw-r--r--gcc/config/i386/i386.h6
-rw-r--r--gcc/config/i960/i960.h6
-rw-r--r--gcc/config/ip2k/ip2k.h11
-rw-r--r--gcc/config/m32r/m32r.h12
-rw-r--r--gcc/config/m68hc11/m68hc11.h7
-rw-r--r--gcc/config/m68k/m68k.h6
-rw-r--r--gcc/config/m88k/m88k.h5
-rw-r--r--gcc/config/mcore/mcore.h4
-rw-r--r--gcc/config/mips/mips.h16
-rw-r--r--gcc/config/mn10200/mn10200.h6
-rw-r--r--gcc/config/mn10300/mn10300.h6
-rw-r--r--gcc/config/ns32k/ns32k.h10
-rw-r--r--gcc/config/pa/pa-linux.h11
-rw-r--r--gcc/config/pdp11/pdp11.h6
-rw-r--r--gcc/config/romp/romp.h6
-rw-r--r--gcc/config/rs6000/sysv4.h3
-rw-r--r--gcc/config/s390/linux.h8
-rw-r--r--gcc/config/sh/sh.h4
-rw-r--r--gcc/config/sparc/sparc.h6
-rw-r--r--gcc/config/stormy16/stormy16.h11
-rw-r--r--gcc/config/v850/v850.h6
-rw-r--r--gcc/config/vax/vax.h6
-rw-r--r--gcc/config/xtensa/xtensa.h9
-rw-r--r--gcc/defaults.h8
-rw-r--r--gcc/doc/tm.texi3
38 files changed, 25 insertions, 262 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f8e3ef6..e85d904 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,15 @@
+2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
+ darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
+ ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
+ mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
+ rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
+ v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
+
+ * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
+ * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
+
2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
* c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index b779858..f0be40c 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -1743,12 +1743,6 @@ do { \
fputs (name_, STREAM); \
} while (0)
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index 1acff9e..755c621 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -1174,11 +1174,6 @@ extern const char *arc_text_section, *arc_data_section, *arc_rodata_section;
no longer contain unusual constructs. */
#define ASM_APP_OFF ""
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
-do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* 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) \
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 868eee0..8a44dfb 100644
--- a/gcc/config/arm/aout.h
+++ b/gcc/config/arm/aout.h
@@ -144,16 +144,6 @@ Boston, MA 02111-1307, USA. */
while (0)
#endif
-#ifndef ASM_OUTPUT_LABEL
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
- do \
- { \
- assemble_name (STREAM,NAME); \
- fputs (":\n", STREAM); \
- } \
- while (0)
-#endif
-
/* Output a globalising directive for a label. */
#ifndef ASM_GLOBALIZE_LABEL
#define ASM_GLOBALIZE_LABEL(STREAM, NAME) \
diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h
index fca5c3f..b2bd755 100644
--- a/gcc/config/avr/avr.h
+++ b/gcc/config/avr/avr.h
@@ -1918,17 +1918,6 @@ do { \
This macro controls how the assembler definitions of uninitialized
static variables are output. */
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
-{ \
- assemble_name (STREAM, NAME); \
- fprintf (STREAM, ":\n"); \
-}
-/* A C statement (sans semicolon) to output to the stdio stream
- STREAM the assembler definition of a label named NAME. Use the
- expression `assemble_name (STREAM, NAME)' to output the name
- itself; before and after that, output the additional assembler
- syntax for defining the name, and a newline. */
-
#undef TYPE_ASM_OP
#undef SIZE_ASM_OP
#undef WEAK_ASM_OP
diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h
index 63d80b2..0318147 100644
--- a/gcc/config/c4x/c4x.h
+++ b/gcc/config/c4x/c4x.h
@@ -1704,9 +1704,6 @@ fini_section () \
#define NO_DOT_IN_LABEL /* Only required for TI format. */
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
-do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0);
-
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do { \
fprintf (FILE, "\t.global\t"); \
diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h
index 496a533..021f168 100644
--- a/gcc/config/cris/cris.h
+++ b/gcc/config/cris/cris.h
@@ -1574,14 +1574,6 @@ call_ ## FUNC (void) \
/* Node: Label Output */
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do \
- { \
- assemble_name (FILE, NAME); \
- fputs (":\n", FILE); \
- } \
- while (0)
-
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do \
{ \
diff --git a/gcc/config/d30v/d30v.h b/gcc/config/d30v/d30v.h
index 44d70fb..b8f817d 100644
--- a/gcc/config/d30v/d30v.h
+++ b/gcc/config/d30v/d30v.h
@@ -2993,18 +2993,6 @@ extern const char *d30v_branch_cost_string;
/* Output and Generation of Labels. */
-/* A C statement (sans semicolon) to output to the stdio stream STREAM the
- assembler definition of a label named NAME. Use the expression
- `assemble_name (STREAM, NAME)' to output the name itself; before and after
- that, output the additional assembler syntax for defining the name, and a
- newline. */
-
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
-do { \
- assemble_name (STREAM, NAME); \
- fputs (":\n", STREAM); \
-} while (0)
-
/* A C statement (sans semicolon) to output to the stdio stream STREAM any text
necessary for declaring the name NAME of a function which is being defined.
This macro is responsible for outputting the label definition (perhaps using
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 339fb6b..ade8512 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -161,10 +161,6 @@ do { text_section (); \
} \
} while (0)
-#undef ASM_OUTPUT_LABEL
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
#define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.space %d\n", SIZE)
diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h
index 905b027..a480005 100644
--- a/gcc/config/dsp16xx/dsp16xx.h
+++ b/gcc/config/dsp16xx/dsp16xx.h
@@ -1676,11 +1676,6 @@ extern struct dsp16xx_frame_info current_frame_info;
/* OUTPUT AND GENERATION OF LABELS */
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/fr30/fr30.h b/gcc/config/fr30/fr30.h
index ebf92f7..f616ee5 100644
--- a/gcc/config/fr30/fr30.h
+++ b/gcc/config/fr30/fr30.h
@@ -1165,19 +1165,6 @@ do \
/*}}}*/
/*{{{ Output and Generation of Labels. */
-/* A C statement (sans semicolon) to output to the stdio stream STREAM the
- assembler definition of a label named NAME. Use the expression
- `assemble_name (STREAM, NAME)' to output the name itself; before and after
- that, output the additional assembler syntax for defining the name, and a
- newline. */
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
- do \
- { \
- assemble_name (STREAM, NAME); \
- fputs (":\n", STREAM); \
- } \
- while (0)
-
/* A C statement (sans semicolon) to output to the stdio stream STREAM some
commands that will make the label NAME global; that is, available for
reference from other files. Use the expression `assemble_name (STREAM,
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 1fa64cc..9cd453d 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -1118,17 +1118,6 @@ struct cum_arg
/* Switch into a generic section. */
#define TARGET_ASM_NAMED_SECTION h8300_asm_named_section
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do \
- { \
- assemble_name (FILE, NAME); \
- fputs (":\n", FILE); \
- } \
- while (0)
-
#define ASM_OUTPUT_LABELREF(FILE, NAME) \
asm_fprintf ((FILE), "%U%s", (NAME) + (TINY_DATA_NAME_P (NAME) ? 1 : 0))
diff --git a/gcc/config/i370/i370.h b/gcc/config/i370/i370.h
index 3b7a798..ac57134 100644
--- a/gcc/config/i370/i370.h
+++ b/gcc/config/i370/i370.h
@@ -1845,11 +1845,6 @@ abort(); \
#define ASM_DOUBLE "\t.double"
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- (assemble_name (FILE, NAME), fputs (":\n", FILE))
-
/* #define ASM_OUTPUT_LABELREF(FILE, NAME) */ /* use gas -- defaults.h */
/* Generate internal label. Since we can branch here from off page, we
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 7cf9721..cf08e55 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -2960,12 +2960,6 @@ extern int const svr4_dbx_register_map[FIRST_PSEUDO_REGISTER];
? ((GLOBAL) ? DW_EH_PE_indirect : 0) | DW_EH_PE_pcrel | DW_EH_PE_sdata4\
: DW_EH_PE_absptr)
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- (assemble_name ((FILE), (NAME)), fputs (":\n", (FILE)))
-
/* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME.
LABELNO is an integer which is different for each call. */
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h
index b048d99..b54ff9d 100644
--- a/gcc/config/i960/i960.h
+++ b/gcc/config/i960/i960.h
@@ -1312,12 +1312,6 @@ extern struct rtx_def *i960_compare_op0, *i960_compare_op1;
fprintf((FILE),"\t.stabd 68,0,%d\n",(LINE)); \
} }
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/ip2k/ip2k.h b/gcc/config/ip2k/ip2k.h
index 7044445..655520b 100644
--- a/gcc/config/ip2k/ip2k.h
+++ b/gcc/config/ip2k/ip2k.h
@@ -2121,17 +2121,6 @@ do { \
This macro controls how the assembler definitions of uninitialized
static variables are output. */
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
-do { \
- assemble_name ((STREAM), (NAME)); \
- fprintf ((STREAM), ":\n"); \
-} while (0)
-/* A C statement (sans semicolon) to output to the stdio stream
- STREAM the assembler definition of a label named NAME. Use the
- expression `assemble_name (STREAM, NAME)' to output the name
- itself; before and after that, output the additional assembler
- syntax for defining the name, and a newline. */
-
#undef WEAK_ASM_OP
#define WEAK_ASM_OP ".weak"
diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h
index 2d97830..c9d3173 100644
--- a/gcc/config/m32r/m32r.h
+++ b/gcc/config/m32r/m32r.h
@@ -1660,18 +1660,6 @@ sbss_section () \
no longer contain unusual constructs. */
#define ASM_APP_OFF ""
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-/* On the M32R we need to ensure the next instruction starts on a 32 bit
- boundary [the previous insn must either be 2 16 bit insns or 1 32 bit]. */
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do \
- { \
- assemble_name (FILE, NAME); \
- fputs (":\n", FILE); \
- } \
- while (0)
-
/* 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) \
diff --git a/gcc/config/m68hc11/m68hc11.h b/gcc/config/m68hc11/m68hc11.h
index 0dec6e6..ff8eb5a 100644
--- a/gcc/config/m68hc11/m68hc11.h
+++ b/gcc/config/m68hc11/m68hc11.h
@@ -1555,13 +1555,6 @@ do { \
/* Output #ident as a .ident. */
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index fb71457..4d4a061 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -1735,12 +1735,6 @@ __transfer_from_trampoline () \
/* Before the prologue, the top of the frame is at 4(%sp). */
#define INCOMING_FRAME_SP_OFFSET 4
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h
index 8db17b6..791840d 100644
--- a/gcc/config/m88k/m88k.h
+++ b/gcc/config/m88k/m88k.h
@@ -1870,11 +1870,6 @@ do { \
ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
} while (0)
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* 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) \
diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h
index 682039e..da34d39 100644
--- a/gcc/config/mcore/mcore.h
+++ b/gcc/config/mcore/mcore.h
@@ -1112,10 +1112,6 @@ switch_to_section (section, decl) \
(STACK_BOUNDARY / BITS_PER_UNIT))
-/* Output a label definition. */
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* Output a reference to a label. */
#undef ASM_OUTPUT_LABELREF
#define ASM_OUTPUT_LABELREF(STREAM, NAME) \
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 3ec2cf5..d5e9674 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -4243,22 +4243,6 @@ while (0)
$Lc[0-9]+ Label for use in s<xx> operation.
$Le[0-9]+ End blocks for MIPS debug support */
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME.
-
- If we are optimizing the gp, remember that this label has been put
- out, so we know not to emit an .extern for it in mips_asm_file_end.
- We use one of the common bits in the IDENTIFIER tree node for this,
- since those bits seem to be unused, and we don't have any method
- of getting the decl nodes from the name. */
-
-#define ASM_OUTPUT_LABEL(STREAM,NAME) \
-do { \
- assemble_name (STREAM, NAME); \
- fputs (":\n", STREAM); \
-} while (0)
-
-
/* A C statement (sans semicolon) to output to the stdio stream
STREAM any text necessary for declaring the name NAME of an
initialized variable which is being defined. This macro must
diff --git a/gcc/config/mn10200/mn10200.h b/gcc/config/mn10200/mn10200.h
index 8bf169f..3b07679 100644
--- a/gcc/config/mn10200/mn10200.h
+++ b/gcc/config/mn10200/mn10200.h
@@ -814,12 +814,6 @@ struct cum_arg { int nbytes; };
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/mn10300/mn10300.h b/gcc/config/mn10300/mn10300.h
index b8b9f4d..80f68e7 100644
--- a/gcc/config/mn10300/mn10300.h
+++ b/gcc/config/mn10300/mn10300.h
@@ -895,12 +895,6 @@ struct cum_arg {int nbytes; };
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/ns32k/ns32k.h b/gcc/config/ns32k/ns32k.h
index 21abff0..e83dcd5 100644
--- a/gcc/config/ns32k/ns32k.h
+++ b/gcc/config/ns32k/ns32k.h
@@ -1314,14 +1314,8 @@ __transfer_from_trampoline () \
/* This is how to output the definition of a user-level label named NAME,
such as the label on a static function or variable NAME. */
-#ifndef COLLECT
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-#else
-#define ASM_OUTPUT_LABEL(STREAM,NAME) \
-do { \
- fprintf (STREAM, "%s:\n", NAME); \
-} while (0)
+#ifdef COLLECT
+#define ASM_OUTPUT_LABEL(STREAM,NAME) fprintf ((STREAM), "%s:\n", (NAME))
#endif
/* This is how to output a command to make the user-level label named NAME
diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h
index c4eae9b..b08eb43 100644
--- a/gcc/config/pa/pa-linux.h
+++ b/gcc/config/pa/pa-linux.h
@@ -161,17 +161,8 @@ Boston, MA 02111-1307, USA. */
else \
fprintf (FILE, "\tb .L%d\n\tnop\n", VALUE)
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
+/* Use the default. */
#undef ASM_OUTPUT_LABEL
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do \
- { \
- assemble_name (FILE, NAME); \
- fputs (":\n", FILE); \
- } \
- while (0)
/* NOTE: ASM_OUTPUT_INTERNAL_LABEL() is defined for us by elfos.h, and
does what we want (i.e. uses colons). It must be compatible with
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 58562b5..e72bb47 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -1029,12 +1029,6 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n") \
{"r0", "r1", "r2", "r3", "r4", "r5", "sp", "pc", \
"ac0", "ac1", "ac2", "ac3", "ac4", "ac5" }
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/romp/romp.h b/gcc/config/romp/romp.h
index 2b16741..3089ed8 100644
--- a/gcc/config/romp/romp.h
+++ b/gcc/config/romp/romp.h
@@ -1315,12 +1315,6 @@ struct rt_cargs {int gregs, fregs; };
"r10", "r11", "r12", "r13", "r14", "r15", "ap", \
"fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7" }
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 5db8487..c412e6a 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -680,9 +680,6 @@ extern int rs6000_pic_labelno;
#define ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX) \
asm_fprintf (FILE, "%L%s", PREFIX)
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- (assemble_name (FILE, NAME), fputs (":\n", FILE))
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h
index 5088465..090e7f5 100644
--- a/gcc/config/s390/linux.h
+++ b/gcc/config/s390/linux.h
@@ -141,14 +141,6 @@ Boston, MA 02111-1307, USA. */
/* Prefix for internally generated assembler labels. */
#define LPREFIX ".L"
-
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#undef ASM_OUTPUT_LABEL
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- (assemble_name (FILE, NAME), fputs (":\n", FILE))
-
/* Store in OUTPUT a string (made with alloca) containing
an assembler-name for a local static variable named NAME.
LABELNO is an integer which is different for each call. */
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 3002c3e..732a630 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -2995,10 +2995,6 @@ while (0)
} \
while (0)
-/* Output a label definition. */
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
-
/* This is how to output an assembler line
that says to advance the location counter
to a multiple of 2**LOG bytes. */
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 8d489e5..b759012 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -2726,12 +2726,6 @@ case LABEL_REF: case SYMBOL_REF: case CONST_DOUBLE:
guess... */
#define DBX_CONTIN_LENGTH 1000
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/stormy16/stormy16.h b/gcc/config/stormy16/stormy16.h
index ab7e62e..3974558 100644
--- a/gcc/config/stormy16/stormy16.h
+++ b/gcc/config/stormy16/stormy16.h
@@ -2782,17 +2782,6 @@ do { \
/* Output and Generation of Labels. */
-/* A C statement (sans semicolon) to output to the stdio stream STREAM the
- assembler definition of a label named NAME. Use the expression
- `assemble_name (STREAM, NAME)' to output the name itself; before and after
- that, output the additional assembler syntax for defining the name, and a
- newline. */
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
-do { \
- assemble_name (STREAM, NAME); \
- fputs (":\n", STREAM); \
-} while (0)
-
/* A C statement to output to the stdio stream STREAM the assembler
definition of a symbol named SYMBOL. */
#define ASM_OUTPUT_SYMBOL_REF(STREAM, SYMBOL) \
diff --git a/gcc/config/v850/v850.h b/gcc/config/v850/v850.h
index bb753ad..6cb55e1c 100644
--- a/gcc/config/v850/v850.h
+++ b/gcc/config/v850/v850.h
@@ -1172,12 +1172,6 @@ zbss_section () \
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
v850_output_local (FILE, DECL, NAME, SIZE, ALIGN)
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE, NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 1d6bdd2..57e5ea5 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -1051,12 +1051,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
#define ASM_DOUBLE_CHAR (TARGET_G_FLOAT ? 'g' : 'd')
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-
-#define ASM_OUTPUT_LABEL(FILE,NAME) \
- do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
-
/* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index a6f468f..84ef1c9 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -1542,15 +1542,6 @@ typedef struct xtensa_args {
goto FAIL; \
} while (0)
-
-/* This is how to output the definition of a user-level label named NAME,
- such as the label on a static function or variable NAME. */
-#define ASM_OUTPUT_LABEL(STREAM, NAME) \
- do { \
- assemble_name (STREAM, NAME); \
- fputs (":\n", STREAM); \
- } while (0)
-
/* 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(STREAM, NAME) \
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 0bbcc21..3553490 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -140,6 +140,14 @@ do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
#endif
#endif
+/* This is how to output the definition of a user-level label named
+ NAME, such as the label on a static function or variable NAME. */
+
+#ifndef ASM_OUTPUT_LABEL
+#define ASM_OUTPUT_LABEL(FILE,NAME) \
+ do { assemble_name ((FILE), (NAME)); fputs (":\n", (FILE)); } while (0)
+#endif
+
/* This is how to output a reference to a user-level label named NAME. */
#ifndef ASM_OUTPUT_LABELREF
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 100def9..4715c31 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -6397,7 +6397,8 @@ A C statement (sans semicolon) to output to the stdio stream
@var{stream} the assembler definition of a label named @var{name}.
Use the expression @code{assemble_name (@var{stream}, @var{name})} to
output the name itself; before and after that, output the additional
-assembler syntax for defining the name, and a newline.
+assembler syntax for defining the name, and a newline. A default
+definition of this macro is provided which is correct for most systems.
@findex SIZE_ASM_OP
@item SIZE_ASM_OP