diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2020-07-29 02:29:54 +0200 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2020-07-29 02:29:54 +0200 |
commit | eb08b5d1d79dca9d683d817806b338ad741da242 (patch) | |
tree | 53d4c035d50812a0d89ce678b0c9a53d22068b19 | |
parent | 7ebb7d0ce1a11e5b1d2174798482d2bb7f307c82 (diff) | |
download | gcc-eb08b5d1d79dca9d683d817806b338ad741da242.tar.gz |
mmix.h (ASM_OUTPUT_EXTERNAL): Define to default_elf_asm_output_external.
Whoops. When un-disabling visibility support for mmix, I missed that
some of the newly enabled tests were FAILs, for not emitting .hidden
for references to external declarations. This takes care of
gcc.dg/visibility-14.c .. -19.c, and gcc.dg/visibility-23.c.
gcc:
* config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
default_elf_asm_output_external.
-rw-r--r-- | gcc/config/mmix/mmix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h index dd04dd3cb85..9317c20e3c8 100644 --- a/gcc/config/mmix/mmix.h +++ b/gcc/config/mmix/mmix.h @@ -617,6 +617,11 @@ typedef struct { int regs; int lib; } CUMULATIVE_ARGS; #define ASM_OUTPUT_ASCII(STREAM, PTR, LEN) \ mmix_asm_output_ascii (STREAM, PTR, LEN) +/* Make output more ELF-like, by emitting .hidden for hidden symbols + (which don't really matter for mmix-knuth-mmixware). */ +#define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME) \ + default_elf_asm_output_external (FILE, DECL, NAME) + /* Node: Uninitialized Data */ #define ASM_OUTPUT_ALIGNED_COMMON(ST, N, S, A) \ |