public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* mmix.h (ASM_OUTPUT_EXTERNAL): Define to default_elf_asm_output_external.
@ 2020-07-29  0:31 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2020-07-29  0:31 UTC (permalink / raw)
  To: gcc-patches

Committed.

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.

--- gcc/gcc/config/mmix/mmix.h.orig	Mon Jan 13 22:30:46 2020
+++ gcc/gcc/config/mmix/mmix.h	Mon Jul 27 01:13:08 2020
@@ -617,6 +617,11 @@ typedef struct { int regs; int lib; } CU
 #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) \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-29  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29  0:31 mmix.h (ASM_OUTPUT_EXTERNAL): Define to default_elf_asm_output_external Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).