diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-03 14:43:47 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-03 14:43:47 +0000 |
commit | 23ddf6a108f57e47c32d5f9a5b83d2c207b19105 (patch) | |
tree | f956ca3e5af7f3382bff23e892d51e198e3518da /gcc/varasm.c | |
parent | 7208a23ed737c1c6f69b9e2d7cf5e2dff19c6933 (diff) | |
download | gcc-23ddf6a108f57e47c32d5f9a5b83d2c207b19105.tar.gz |
* varasm.c (assemble_start_function, assemble_variable, weak_finish,
assemble_alias): Do ASM_GLOBALIZE_LABEL for weak symbols, too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22791 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index d9e52613281..8da99daf77d 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1005,12 +1005,11 @@ assemble_start_function (decl, fnname) strcpy (*name, p); } + ASM_GLOBALIZE_LABEL (asm_out_file, fnname); #ifdef ASM_WEAKEN_LABEL if (DECL_WEAK (decl)) ASM_WEAKEN_LABEL (asm_out_file, fnname); - else #endif - ASM_GLOBALIZE_LABEL (asm_out_file, fnname); } /* Do any machine/system dependent processing of the function name */ @@ -1426,12 +1425,11 @@ assemble_variable (decl, top_level, at_end, dont_output_data) /* First make the assembler name(s) global if appropriate. */ if (TREE_PUBLIC (decl) && DECL_NAME (decl)) { + ASM_GLOBALIZE_LABEL (asm_out_file, name); #ifdef ASM_WEAKEN_LABEL if (DECL_WEAK (decl)) ASM_WEAKEN_LABEL (asm_out_file, name); - else #endif - ASM_GLOBALIZE_LABEL (asm_out_file, name); } #if 0 for (d = equivalents; d; d = TREE_CHAIN (d)) @@ -4261,6 +4259,7 @@ weak_finish () struct weak_syms *t; for (t = weak_decls; t; t = t->next) { + ASM_GLOBALIZE_LABEL (asm_out_file, t->name); ASM_WEAKEN_LABEL (asm_out_file, t->name); if (t->value) ASM_OUTPUT_DEF (asm_out_file, t->name, t->value); @@ -4283,12 +4282,11 @@ assemble_alias (decl, target) if (TREE_PUBLIC (decl)) { + ASM_GLOBALIZE_LABEL (asm_out_file, name); #ifdef ASM_WEAKEN_LABEL if (DECL_WEAK (decl)) ASM_WEAKEN_LABEL (asm_out_file, name); - else #endif - ASM_GLOBALIZE_LABEL (asm_out_file, name); } ASM_OUTPUT_DEF (asm_out_file, name, IDENTIFIER_POINTER (target)); |