From: kettenis Date: Wed, 3 Jun 2015 11:45:52 +0000 (+0000) Subject: Actually commit the bits that make the compiler emit visibility information X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a1c34178c2829a320c63d11163000e63d46d3609;p=openbsd Actually commit the bits that make the compiler emit visibility information for (undefined) references with non-default visibility on mips64. --- diff --git a/gnu/gcc/gcc/config/mips/mips.c b/gnu/gcc/gcc/config/mips/mips.c index 20de3f08007..1edd6b90e4b 100644 --- a/gnu/gcc/gcc/config/mips/mips.c +++ b/gnu/gcc/gcc/config/mips/mips.c @@ -5727,6 +5727,8 @@ mips_output_external (FILE *file ATTRIBUTE_UNUSED, tree decl, const char *name) { register struct extern_list *p; + default_elf_asm_output_external(file, decl, name); + if (!TARGET_EXPLICIT_RELOCS && mips_in_small_data_p (decl)) { p = (struct extern_list *) ggc_alloc (sizeof (struct extern_list)); diff --git a/gnu/gcc/gcc/config/mips/mips.h b/gnu/gcc/gcc/config/mips/mips.h index df2995531fc..089967f3543 100644 --- a/gnu/gcc/gcc/config/mips/mips.h +++ b/gnu/gcc/gcc/config/mips/mips.h @@ -2531,6 +2531,7 @@ while (0) the assembler uses length information on externals to allocate in data/sdata bss/sbss, thereby saving exec time. */ +#undef ASM_OUTPUT_EXTERNAL #define ASM_OUTPUT_EXTERNAL(STREAM,DECL,NAME) \ mips_output_external(STREAM,DECL,NAME)