From 8e807b59d87ba2d45014afab66c3d3bf5a647cf7 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 25 Jul 2020 23:25:09 +0200 Subject: [PATCH] config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override. 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. --- gcc/config/mmix/mmix.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2