Commit 072cdaed by Kaveh R. Ghazi Committed by Kaveh Ghazi

m68hc11.h, [...] (ASM_GLOBALIZE_LABEL): Delete.

	* 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.

From-SVN: r55891
parent 6fd14075
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
......
......@@ -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); \
......
......@@ -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. */
......
......@@ -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
......
......@@ -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. */
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment