summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2015-06-03 11:45:52 +0000
committerkettenis <kettenis@openbsd.org>2015-06-03 11:45:52 +0000
commita1c34178c2829a320c63d11163000e63d46d3609 (patch)
tree31395fe02aba1d9a7566b155a7cbb3b876f83ce3
parentSupport for U4, missed in previous. (diff)
downloadwireguard-openbsd-a1c34178c2829a320c63d11163000e63d46d3609.tar.xz
wireguard-openbsd-a1c34178c2829a320c63d11163000e63d46d3609.zip
Actually commit the bits that make the compiler emit visibility information
for (undefined) references with non-default visibility on mips64.
-rw-r--r--gnu/gcc/gcc/config/mips/mips.c2
-rw-r--r--gnu/gcc/gcc/config/mips/mips.h1
2 files changed, 3 insertions, 0 deletions
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)