Commit 48ad5afd by Jason Merrill Committed by Jason Merrill

iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.

	* mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.
	* varasm.c (assemble_start_function et al): Don't call
	ASM_GLOBALIZE_LABEL for weak symbols.

From-SVN: r23051
parent 0a65887a
Tue Oct 13 11:49:14 1998 Jason Merrill <jason@yorick.cygnus.com>
* mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.
* varasm.c (assemble_start_function et al): Don't call
ASM_GLOBALIZE_LABEL for weak symbols.
Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com> Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com>
* cse.c (equiv_constant): Check for NULL return from * cse.c (equiv_constant): Check for NULL return from
......
...@@ -187,6 +187,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -187,6 +187,7 @@ Boston, MA 02111-1307, USA. */
#define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \ #define ASM_OUTPUT_WEAK_ALIAS(FILE,NAME,VALUE) \
do { \ do { \
ASM_GLOBALIZE_LABEL (FILE, NAME); \
fputs ("\t.weakext\t", FILE); \ fputs ("\t.weakext\t", FILE); \
assemble_name (FILE, NAME); \ assemble_name (FILE, NAME); \
if (VALUE) \ if (VALUE) \
......
...@@ -1005,11 +1005,12 @@ assemble_start_function (decl, fnname) ...@@ -1005,11 +1005,12 @@ assemble_start_function (decl, fnname)
strcpy (*name, p); strcpy (*name, p);
} }
ASM_GLOBALIZE_LABEL (asm_out_file, fnname);
#ifdef ASM_WEAKEN_LABEL #ifdef ASM_WEAKEN_LABEL
if (DECL_WEAK (decl)) if (DECL_WEAK (decl))
ASM_WEAKEN_LABEL (asm_out_file, fnname); ASM_WEAKEN_LABEL (asm_out_file, fnname);
else
#endif #endif
ASM_GLOBALIZE_LABEL (asm_out_file, fnname);
} }
/* Do any machine/system dependent processing of the function name */ /* Do any machine/system dependent processing of the function name */
...@@ -1425,11 +1426,12 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1425,11 +1426,12 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
/* First make the assembler name(s) global if appropriate. */ /* First make the assembler name(s) global if appropriate. */
if (TREE_PUBLIC (decl) && DECL_NAME (decl)) if (TREE_PUBLIC (decl) && DECL_NAME (decl))
{ {
ASM_GLOBALIZE_LABEL (asm_out_file, name);
#ifdef ASM_WEAKEN_LABEL #ifdef ASM_WEAKEN_LABEL
if (DECL_WEAK (decl)) if (DECL_WEAK (decl))
ASM_WEAKEN_LABEL (asm_out_file, name); ASM_WEAKEN_LABEL (asm_out_file, name);
else
#endif #endif
ASM_GLOBALIZE_LABEL (asm_out_file, name);
} }
#if 0 #if 0
for (d = equivalents; d; d = TREE_CHAIN (d)) for (d = equivalents; d; d = TREE_CHAIN (d))
...@@ -4259,7 +4261,6 @@ weak_finish () ...@@ -4259,7 +4261,6 @@ weak_finish ()
struct weak_syms *t; struct weak_syms *t;
for (t = weak_decls; t; t = t->next) for (t = weak_decls; t; t = t->next)
{ {
ASM_GLOBALIZE_LABEL (asm_out_file, t->name);
ASM_WEAKEN_LABEL (asm_out_file, t->name); ASM_WEAKEN_LABEL (asm_out_file, t->name);
if (t->value) if (t->value)
ASM_OUTPUT_DEF (asm_out_file, t->name, t->value); ASM_OUTPUT_DEF (asm_out_file, t->name, t->value);
...@@ -4282,11 +4283,12 @@ assemble_alias (decl, target) ...@@ -4282,11 +4283,12 @@ assemble_alias (decl, target)
if (TREE_PUBLIC (decl)) if (TREE_PUBLIC (decl))
{ {
ASM_GLOBALIZE_LABEL (asm_out_file, name);
#ifdef ASM_WEAKEN_LABEL #ifdef ASM_WEAKEN_LABEL
if (DECL_WEAK (decl)) if (DECL_WEAK (decl))
ASM_WEAKEN_LABEL (asm_out_file, name); ASM_WEAKEN_LABEL (asm_out_file, name);
else
#endif #endif
ASM_GLOBALIZE_LABEL (asm_out_file, name);
} }
ASM_OUTPUT_DEF (asm_out_file, name, IDENTIFIER_POINTER (target)); ASM_OUTPUT_DEF (asm_out_file, name, IDENTIFIER_POINTER (target));
......
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