config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 25 Jul 2020 21:25:09 +0000 (23:25 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 25 Jul 2020 21:25:09 +0000 (23:25 +0200)
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

index b7263a3119035d298e992a9dda21ba0af3e5f568..4c4fb2117fcceca20f97ae50d3786260a4a3c57c 100644 (file)
@@ -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