aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/m68hc11/m68hc11.h8
-rw-r--r--gcc/config/m68k/m68k.h7
-rw-r--r--gcc/config/m88k/m88k.h9
-rw-r--r--gcc/defaults.h13
-rw-r--r--gcc/doc/tm.texi3
6 files changed, 23 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 311566b..4cf7766 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
+
+ * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
+ * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
+
2002-07-30 Geoffrey Keating <geoffk@redhat.com>
* doc/extend.texi (Hints implementation): Document that GCC
diff --git a/gcc/config/m68hc11/m68hc11.h b/gcc/config/m68hc11/m68hc11.h
index ff8eb5a..aec92b7 100644
--- a/gcc/config/m68hc11/m68hc11.h
+++ b/gcc/config/m68hc11/m68hc11.h
@@ -1555,14 +1555,6 @@ do { \
/* Output #ident as a .ident. */
-/* 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 { fprintf (FILE, "%s", GLOBAL_ASM_OP); \
- assemble_name (FILE, NAME); \
- fputs ("\n", FILE);} while (0)
-
/* output external reference */
#define ASM_OUTPUT_EXTERNAL(FILE,DECL,NAME) \
{fputs ("\t; extern\t", FILE); \
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index 4d4a061..feb27a2 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -1735,14 +1735,7 @@ __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 a command to make the user-level label named NAME
- defined for reference from other files. */
-
#define GLOBAL_ASM_OP "\t.globl\t"
-#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
- do { fprintf (FILE, "%s", GLOBAL_ASM_OP); \
- 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. */
diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h
index 791840d..f8f487c 100644
--- a/gcc/config/m88k/m88k.h
+++ b/gcc/config/m88k/m88k.h
@@ -1870,15 +1870,6 @@ do { \
ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
} 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) \
- do { \
- fprintf (FILE, "%s", GLOBAL_ASM_OP); \
- assemble_name (FILE, NAME); \
- putc ('\n', FILE); \
- } while (0)
-
/* The prefix to add to user-visible assembler symbols.
Override svr[34].h. */
#undef USER_LABEL_PREFIX
diff --git a/gcc/defaults.h b/gcc/defaults.h
index 3553490..115cc01 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -154,6 +154,19 @@ do { fputs (integer_asm_op (POINTER_SIZE / UNITS_PER_WORD, TRUE), FILE); \
#define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME))
#endif
+/* A C statement (sans semicolon) to output to the stdio stream FILE
+ some commands that will make the label NAME global; that is,
+ available for reference from other files. */
+
+#if !defined(ASM_GLOBALIZE_LABEL) && defined(GLOBAL_ASM_OP)
+#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
+ do { \
+ fputs (GLOBAL_ASM_OP, (FILE)); \
+ assemble_name ((FILE), (NAME)); \
+ fputc ('\n', (FILE)); \
+ } while (0)
+#endif
+
/* Allow target to print debug info labels specially. This is useful for
VLIW targets, since debug info labels should go into the middle of
instruction bundles instead of breaking them. */
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 4f98bf3..12f6ff7 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -6551,6 +6551,9 @@ that is, available for reference from other files. Use the expression
itself; before and after that, output the additional assembler syntax
for making that name global, and a newline.
+If you define @code{GLOBAL_ASM_OP}, a default definition is provided
+which is correct for most systems.
+
@findex ASM_WEAKEN_LABEL
@item ASM_WEAKEN_LABEL (@var{stream}, @var{name})
A C statement (sans semicolon) to output to the stdio stream