Commit 506a61b1 by Kaveh R. Ghazi Committed by Kaveh Ghazi

* alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,

	fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
	ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
	openbsd.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_GLOBALIZE_LABEL): Delete.
	(GLOBAL_ASM_OP): Define.

From-SVN: r55892
parent 072cdaed
2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
openbsd.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_GLOBALIZE_LABEL): Delete.
(GLOBAL_ASM_OP): Define.
* m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete. * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
* defaults.h (ASM_GLOBALIZE_LABEL): Provide a default. * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
......
...@@ -1743,11 +1743,8 @@ do { \ ...@@ -1743,11 +1743,8 @@ do { \
fputs (name_, STREAM); \ fputs (name_, STREAM); \
} while (0) } while (0)
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -1174,14 +1174,8 @@ extern const char *arc_text_section, *arc_data_section, *arc_rodata_section; ...@@ -1174,14 +1174,8 @@ extern const char *arc_text_section, *arc_data_section, *arc_rodata_section;
no longer contain unusual constructs. */ no longer contain unusual constructs. */
#define ASM_APP_OFF "" #define ASM_APP_OFF ""
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global\t"
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do { \
fputs ("\t.global\t", FILE); \
assemble_name (FILE, NAME); \
fputs ("\n", FILE); \
} while (0)
/* A C statement (sans semicolon) to output on FILE an assembler pseudo-op to /* A C statement (sans semicolon) to output on FILE an assembler pseudo-op to
declare a library function name external. The name of the library function declare a library function name external. The name of the library function
......
...@@ -144,17 +144,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -144,17 +144,8 @@ Boston, MA 02111-1307, USA. */
while (0) while (0)
#endif #endif
/* Output a globalising directive for a label. */ /* Globalizing directive for a label. */
#ifndef ASM_GLOBALIZE_LABEL #define GLOBAL_ASM_OP "\t.global\t"
#define ASM_GLOBALIZE_LABEL(STREAM, NAME) \
do \
{ \
fprintf (STREAM, "\t.global\t"); \
assemble_name (STREAM, NAME); \
fputc ('\n',STREAM); \
} \
while (0)
#endif
/* Make an internal label into a string. */ /* Make an internal label into a string. */
#ifndef ASM_GENERATE_INTERNAL_LABEL #ifndef ASM_GENERATE_INTERNAL_LABEL
......
...@@ -2052,20 +2052,8 @@ do { \ ...@@ -2052,20 +2052,8 @@ do { \
If your target assembler doesn't support the .string directive, you If your target assembler doesn't support the .string directive, you
should define this to zero. */ should define this to zero. */
#define ASM_GLOBALIZE_LABEL(STREAM, NAME) \ /* Globalizing directive for a label. */
do { \ #define GLOBAL_ASM_OP ".global\t"
fprintf (STREAM, ".global\t"); \
assemble_name (STREAM, NAME); \
fprintf (STREAM, "\n"); \
} \
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, NAME)' to output the name itself; before
and after that, output the additional assembler syntax for making
that name global, and a newline. */
#define ASM_WEAKEN_LABEL(FILE, NAME) \ #define ASM_WEAKEN_LABEL(FILE, NAME) \
do \ do \
......
...@@ -1574,14 +1574,8 @@ call_ ## FUNC (void) \ ...@@ -1574,14 +1574,8 @@ call_ ## FUNC (void) \
/* Node: Label Output */ /* Node: Label Output */
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \ /* Globalizing directive for a label. */
do \ #define GLOBAL_ASM_OP "\t.global "
{ \
fputs ("\t.global ", FILE); \
assemble_name (FILE, NAME); \
fputs ("\n", FILE); \
} \
while (0)
#define SUPPORTS_WEAK 1 #define SUPPORTS_WEAK 1
......
...@@ -3039,18 +3039,8 @@ extern const char *d30v_branch_cost_string; ...@@ -3039,18 +3039,8 @@ extern const char *d30v_branch_cost_string;
Defined in svr4.h. */ Defined in svr4.h. */
/* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */ /* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* Globalizing directive for a label. */
commands that will make the label NAME global; that is, available for #define GLOBAL_ASM_OP "\t.globl "
reference from other files. Use the expression `assemble_name (STREAM,
NAME)' to output the name itself; before and after that, output the
additional assembler syntax for making that name global, and a newline. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do { \
fputs ("\t.globl ", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} while (0)
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* A C statement (sans semicolon) to output to the stdio stream STREAM some
commands that will make the label NAME weak; that is, available for commands that will make the label NAME weak; that is, available for
......
...@@ -1676,11 +1676,8 @@ extern struct dsp16xx_frame_info current_frame_info; ...@@ -1676,11 +1676,8 @@ extern struct dsp16xx_frame_info current_frame_info;
/* OUTPUT AND GENERATION OF LABELS */ /* OUTPUT AND GENERATION OF LABELS */
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP ".global "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs (".global ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)
/* A C statement to output to the stdio stream any text necessary /* A C statement to output to the stdio stream any text necessary
for declaring the name of an external symbol named name which for declaring the name of an external symbol named name which
......
...@@ -1165,19 +1165,8 @@ do \ ...@@ -1165,19 +1165,8 @@ do \
/*}}}*/ /*}}}*/
/*{{{ Output and Generation of Labels. */ /*{{{ Output and Generation of Labels. */
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* Globalizing directive for a label. */
commands that will make the label NAME global; that is, available for #define GLOBAL_ASM_OP "\t.globl "
reference from other files. Use the expression `assemble_name (STREAM,
NAME)' to output the name itself; before and after that, output the
additional assembler syntax for making that name global, and a newline. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do \
{ \
fputs ("\t.globl ", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} \
while (0)
/* A C expression to assign to OUTVAR (which is a variable of type `char *') a /* A C expression to assign to OUTVAR (which is a variable of type `char *') a
newly allocated string made from the string NAME and the number NUMBER, with newly allocated string made from the string NAME and the number NUMBER, with
......
...@@ -1123,17 +1123,8 @@ struct cum_arg ...@@ -1123,17 +1123,8 @@ struct cum_arg
#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global "
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do \
{ \
fputs ("\t.global ", FILE); \
assemble_name (FILE, NAME); \
fputs ("\n", FILE); \
} \
while (0)
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
ASM_OUTPUT_LABEL (FILE, NAME) ASM_OUTPUT_LABEL (FILE, NAME)
......
...@@ -1924,11 +1924,8 @@ abort(); \ ...@@ -1924,11 +1924,8 @@ abort(); \
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG)) if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP ".globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
(fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE))
/* This says how to output an assembler line /* This says how to output an assembler line
to define a global common symbol. */ to define a global common symbol. */
......
...@@ -351,8 +351,6 @@ do { \ ...@@ -351,8 +351,6 @@ do { \
fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME); fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME);
#undef ASM_GLOBALIZE_LABEL #undef ASM_GLOBALIZE_LABEL
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
(fprintf ((FILE), "%s", GLOBAL_ASM_OP), assemble_name (FILE, NAME), fputs ("\n", FILE))
#undef ASM_OUTPUT_EXTERNAL_LIBCALL #undef ASM_OUTPUT_EXTERNAL_LIBCALL
#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \ #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
......
...@@ -58,11 +58,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -58,11 +58,8 @@ Boston, MA 02111-1307, USA. */
#define BSS_SECTION_ASM_OP "\t.bss" #define BSS_SECTION_ASM_OP "\t.bss"
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP ".globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
(fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE))
/* By default, target has a 80387, uses IEEE compatible arithmetic, /* By default, target has a 80387, uses IEEE compatible arithmetic,
and returns float values in the 387. */ and returns float values in the 387. */
......
...@@ -1312,13 +1312,8 @@ extern struct rtx_def *i960_compare_op0, *i960_compare_op1; ...@@ -1312,13 +1312,8 @@ extern struct rtx_def *i960_compare_op0, *i960_compare_op1;
fprintf((FILE),"\t.stabd 68,0,%d\n",(LINE)); \ fprintf((FILE),"\t.stabd 68,0,%d\n",(LINE)); \
} } } }
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
{ fputs ("\t.globl ", FILE); \
assemble_name (FILE, NAME); \
fputs ("\n", FILE); }
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -1905,16 +1905,8 @@ do { \ ...@@ -1905,16 +1905,8 @@ do { \
ia64_asm_output_label = 0; \ ia64_asm_output_label = 0; \
} while (0) } while (0)
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* Globalizing directive for a label. */
commands that will make the label NAME global; that is, available for #define GLOBAL_ASM_OP "\t.global "
reference from other files. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do { \
fputs ("\t.global ", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} while (0)
/* A C statement (sans semicolon) to output to the stdio stream STREAM any text /* A C statement (sans semicolon) to output to the stdio stream STREAM any text
necessary for declaring the name of an external symbol named NAME which is necessary for declaring the name of an external symbol named NAME which is
......
...@@ -2162,18 +2162,8 @@ do { \ ...@@ -2162,18 +2162,8 @@ do { \
the i386) don't know about that. Also, we don't use \v the i386) don't know about that. Also, we don't use \v
since some versions of gas, such as 2.2 did not accept it. */ since some versions of gas, such as 2.2 did not accept it. */
#define ASM_GLOBALIZE_LABEL(STREAM, NAME) \ /* Globalizing directive for a label. */
do { \ #define GLOBAL_ASM_OP ".global\t"
fprintf ((STREAM), ".global\t"); \
assemble_name ((STREAM), (NAME)); \
fprintf ((STREAM), "\n"); \
} 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, NAME)' to output the name itself; before
and after that, output the additional assembler syntax for making
that name global, and a newline. */
#undef ASM_FORMAT_PRIVATE_NAME #undef ASM_FORMAT_PRIVATE_NAME
#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \ #define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO) \
......
...@@ -1660,16 +1660,8 @@ sbss_section () \ ...@@ -1660,16 +1660,8 @@ sbss_section () \
no longer contain unusual constructs. */ no longer contain unusual constructs. */
#define ASM_APP_OFF "" #define ASM_APP_OFF ""
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global\t"
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \
do \
{ \
fputs ("\t.global\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. /* This is how to output a reference to a user-level label named NAME.
`assemble_name' uses this. */ `assemble_name' uses this. */
......
...@@ -1161,11 +1161,8 @@ extern long mcore_current_compilation_timestamp; ...@@ -1161,11 +1161,8 @@ extern long mcore_current_compilation_timestamp;
} \ } \
while (0) while (0)
/* Output a globalising directive for a label. */ /* Globalizing directive for a label. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \ #define GLOBAL_ASM_OP "\t.export\t"
(fprintf (STREAM, "\t.export\t"), \
assemble_name (STREAM, NAME), \
fputc ('\n',STREAM)) \
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
#undef USER_LABEL_PREFIX #undef USER_LABEL_PREFIX
......
...@@ -4261,16 +4261,8 @@ do \ ...@@ -4261,16 +4261,8 @@ do \
} \ } \
while (0) while (0)
/* Globalizing directive for a label. */
/* This is how to output a command to make the user-level label named NAME #define GLOBAL_ASM_OP "\t.globl\t"
defined for reference from other files. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do { \
fputs ("\t.globl\t", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} while (0)
/* This says how to define a global common symbol. */ /* This says how to define a global common symbol. */
......
...@@ -814,11 +814,8 @@ struct cum_arg { int nbytes; }; ...@@ -814,11 +814,8 @@ struct cum_arg { int nbytes; };
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN)) asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global "
#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. /* This is how to output a reference to a user-level label named NAME.
`assemble_name' uses this. */ `assemble_name' uses this. */
......
...@@ -895,11 +895,8 @@ struct cum_arg {int nbytes; }; ...@@ -895,11 +895,8 @@ struct cum_arg {int nbytes; };
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN)) asm_output_aligned_bss ((FILE), (DECL), (NAME), (SIZE), (ALIGN))
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global "
#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. /* This is how to output a reference to a user-level label named NAME.
`assemble_name' uses this. */ `assemble_name' uses this. */
......
...@@ -1322,13 +1322,11 @@ __transfer_from_trampoline () \ ...@@ -1322,13 +1322,11 @@ __transfer_from_trampoline () \
defined for reference from other files. */ defined for reference from other files. */
#ifndef COLLECT #ifndef COLLECT
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \ /* Globalizing directive for a label. */
do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) #define GLOBAL_ASM_OP ".globl "
#else #else
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \ #define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do { \ fprintf ((STREAM), "\t.globl\t%s\n", (NAME));
fprintf (STREAM, "\t.globl\t%s\n", NAME); \
} while (0)
#endif #endif
/* This is how to output an internal numbered label where /* This is how to output an internal numbered label where
......
...@@ -175,10 +175,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -175,10 +175,12 @@ Boston, MA 02111-1307, USA. */
#undef TYPE_ASM_OP #undef TYPE_ASM_OP
#undef SIZE_ASM_OP #undef SIZE_ASM_OP
#undef SET_ASM_OP #undef SET_ASM_OP
#undef GLOBAL_ASM_OP
#define TYPE_ASM_OP "\t.type\t" #define TYPE_ASM_OP "\t.type\t"
#define SIZE_ASM_OP "\t.size\t" #define SIZE_ASM_OP "\t.size\t"
#define SET_ASM_OP "\t.set\t" #define SET_ASM_OP "\t.set\t"
#define GLOBAL_ASM_OP "\t.globl\t"
/* The following macro defines the format used to output the second /* The following macro defines the format used to output the second
operand of the .type assembler directive. */ operand of the .type assembler directive. */
...@@ -273,14 +275,6 @@ do { \ ...@@ -273,14 +275,6 @@ do { \
do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
fputc ('\n', FILE); } while (0) fputc ('\n', FILE); } while (0)
#endif #endif
/* Tell the assembler that a symbol is global. */
#ifndef ASM_GLOBALIZE_LABEL
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs ("\t.globl\t", FILE); assemble_name (FILE, NAME); \
fputc ('\n', FILE); } while(0)
#endif
/* Storage layout. */ /* Storage layout. */
......
...@@ -168,9 +168,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -168,9 +168,10 @@ Boston, MA 02111-1307, USA. */
does what we want (i.e. uses colons). It must be compatible with does what we want (i.e. uses colons). It must be compatible with
ASM_GENERATE_INTERNAL_LABEL(), so do not define it here. */ ASM_GENERATE_INTERNAL_LABEL(), so do not define it here. */
/* Use the default. */
#undef ASM_GLOBALIZE_LABEL #undef ASM_GLOBALIZE_LABEL
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \ /* Globalizing directive for a label. */
(fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE)) #definef GLOBAL_ASM_OP ".globl "
/* FIXME: Hacked from the <elfos.h> one so that we avoid multiple /* FIXME: Hacked from the <elfos.h> one so that we avoid multiple
labels in a function declaration (since pa.c seems determined to do labels in a function declaration (since pa.c seems determined to do
......
...@@ -1029,11 +1029,8 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n") \ ...@@ -1029,11 +1029,8 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n") \
{"r0", "r1", "r2", "r3", "r4", "r5", "sp", "pc", \ {"r0", "r1", "r2", "r3", "r4", "r5", "sp", "pc", \
"ac0", "ac1", "ac2", "ac3", "ac4", "ac5" } "ac0", "ac1", "ac2", "ac3", "ac4", "ac5" }
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs("\n", FILE); } while (0)
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -1315,11 +1315,8 @@ struct rt_cargs {int gregs, fregs; }; ...@@ -1315,11 +1315,8 @@ struct rt_cargs {int gregs, fregs; };
"r10", "r11", "r12", "r13", "r14", "r15", "ap", \ "r10", "r11", "r12", "r13", "r14", "r15", "ap", \
"fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7" } "fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7" }
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs ("\t.globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -680,12 +680,8 @@ extern int rs6000_pic_labelno; ...@@ -680,12 +680,8 @@ extern int rs6000_pic_labelno;
#define ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX) \ #define ASM_OUTPUT_INTERNAL_LABEL_PREFIX(FILE,PREFIX) \
asm_fprintf (FILE, "%L%s", PREFIX) asm_fprintf (FILE, "%L%s", PREFIX)
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.globl "
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \
do { fputs ("\t.globl ", FILE); \
assemble_name (FILE, NAME); putc ('\n', FILE);} while (0)
/* This says how to output assembler code to declare an /* This says how to output assembler code to declare an
uninitialized internal linkage data object. Under SVR4, uninitialized internal linkage data object. Under SVR4,
......
...@@ -207,8 +207,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -207,8 +207,8 @@ Boston, MA 02111-1307, USA. */
/* This is how to output a command to make the user-level label named NAME /* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */ defined for reference from other files. */
#define ASM_GLOBALIZE_LABEL(FILE, NAME) \ /* Globalizing directive for a label. */
(fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE)) #define GLOBAL_ASM_OP ".globl "
/* Output code to add DELTA to the first argument, and then jump to FUNCTION. /* Output code to add DELTA to the first argument, and then jump to FUNCTION.
Used for C++ multiple inheritance. */ Used for C++ multiple inheritance. */
......
...@@ -3003,11 +3003,8 @@ while (0) ...@@ -3003,11 +3003,8 @@ while (0)
if ((LOG) != 0) \ if ((LOG) != 0) \
fprintf ((FILE), "\t.align %d\n", (LOG)) fprintf ((FILE), "\t.align %d\n", (LOG))
/* Output a globalising directive for a label. */ /* Globalizing directive for a label. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \ #define GLOBAL_ASM_OP "\t.global\t"
(fprintf ((STREAM), "\t.global\t"), \
assemble_name ((STREAM), (NAME)), \
fputc ('\n', (STREAM)))
/* #define ASM_OUTPUT_CASE_END(STREAM,NUM,TABLE) */ /* #define ASM_OUTPUT_CASE_END(STREAM,NUM,TABLE) */
......
...@@ -2729,8 +2729,8 @@ case LABEL_REF: case SYMBOL_REF: case CONST_DOUBLE: ...@@ -2729,8 +2729,8 @@ case LABEL_REF: case SYMBOL_REF: case CONST_DOUBLE:
/* This is how to output a command to make the user-level label named NAME /* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */ defined for reference from other files. */
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \ /* Globalizing directive for a label. */
do { fputs ("\t.global ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) #define GLOBAL_ASM_OP "\t.global "
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -2848,17 +2848,8 @@ do { \ ...@@ -2848,17 +2848,8 @@ do { \
Defined in svr4.h. */ Defined in svr4.h. */
/* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */ /* #define ASM_FINISH_DECLARE_OBJECT(STREAM, DECL, TOPLEVEL, ATEND) */
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* Globalizing directive for a label. */
commands that will make the label NAME global; that is, available for #define GLOBAL_ASM_OP "\t.globl "
reference from other files. Use the expression `assemble_name (STREAM,
NAME)' to output the name itself; before and after that, output the
additional assembler syntax for making that name global, and a newline. */
#define ASM_GLOBALIZE_LABEL(STREAM,NAME) \
do { \
fputs ("\t.globl ", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} while (0)
/* A C statement (sans semicolon) to output to the stdio stream STREAM some /* A C statement (sans semicolon) to output to the stdio stream STREAM some
commands that will make the label NAME weak; that is, available for commands that will make the label NAME weak; that is, available for
......
...@@ -1172,17 +1172,8 @@ zbss_section () \ ...@@ -1172,17 +1172,8 @@ zbss_section () \
#define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \ #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(FILE, DECL, NAME, SIZE, ALIGN) \
v850_output_local (FILE, DECL, NAME, SIZE, ALIGN) v850_output_local (FILE, DECL, NAME, SIZE, ALIGN)
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global "
#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. /* This is how to output a reference to a user-level label named NAME.
`assemble_name' uses this. */ `assemble_name' uses this. */
......
...@@ -1054,8 +1054,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES }; ...@@ -1054,8 +1054,8 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
/* This is how to output a command to make the user-level label named NAME /* This is how to output a command to make the user-level label named NAME
defined for reference from other files. */ defined for reference from other files. */
#define ASM_GLOBALIZE_LABEL(FILE,NAME) \ /* Globalizing directive for a label. */
do { fputs (".globl ", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0) #define GLOBAL_ASM_OP ".globl "
/* The prefix to add to user-visible assembler symbols. */ /* The prefix to add to user-visible assembler symbols. */
......
...@@ -1542,14 +1542,8 @@ typedef struct xtensa_args { ...@@ -1542,14 +1542,8 @@ typedef struct xtensa_args {
goto FAIL; \ goto FAIL; \
} while (0) } while (0)
/* This is how to output a command to make the user-level label named NAME /* Globalizing directive for a label. */
defined for reference from other files. */ #define GLOBAL_ASM_OP "\t.global\t"
#define ASM_GLOBALIZE_LABEL(STREAM, NAME) \
do { \
fputs ("\t.global\t", STREAM); \
assemble_name (STREAM, NAME); \
fputs ("\n", STREAM); \
} while (0)
/* This says how to define a global common symbol. */ /* This says how to define a global common symbol. */
#define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
......
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