config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override.

Message ID alpine.BSF.2.20.16.2007251727040.46243@arjuna.pair.com
State New
Headers show
Series
  • config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override.
Related show

Commit Message

Hans-Peter Nilsson July 25, 2020, 9:27 p.m.
Funny that default_asm_output_ident_directive isn't the default...
Anyway, since dot-pseudos like .ident are treated as comments by
mmixal, there's nothing lost compatibilitywise by supporting it.
If mmix-knuth-mmixware had included elfos.h this'd have been the
default.  There might be enough reason to do that; relocatable objects
are ELF but (by default) links to produce mmo.  Fixes
c-c++-common/ident-1b.c and 2b in C and C++ testing.  Committed.

gcc:
	* config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
	with default_asm_output_ident_directive.

Patch

diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c
index b7263a31190..4c4fb2117fc 100644
--- a/gcc/config/mmix/mmix.c
+++ b/gcc/config/mmix/mmix.c
@@ -220,6 +220,9 @@  static HOST_WIDE_INT mmix_starting_frame_offset (void);
 #undef TARGET_ASM_OUTPUT_SOURCE_FILENAME
 #define TARGET_ASM_OUTPUT_SOURCE_FILENAME mmix_asm_output_source_filename

+#undef TARGET_ASM_OUTPUT_IDENT
+#define TARGET_ASM_OUTPUT_IDENT default_asm_output_ident_directive
+
 #undef TARGET_INIT_LIBFUNCS
 #define TARGET_INIT_LIBFUNCS mmix_init_libfuncs