Hi,

The c-c++-common tests fail (or XPASS depending on which) on Darwin
because it doesn't currently emit .ident marker.  For X86 Darwin, this
is a trivial oversight; the assembler supports the directive.  We can
therefore use the default target hook there.

I applied the following as obvious,

Iain

2018-12-23  Iain Sandoe  <i...@sandoe.co.uk>

gcc/

        * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New.

diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index 53789e7c23..f760218bda 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -219,6 +219,11 @@ extern int darwin_emit_branch_islands;
         }                              \
     } while (0)
 
+/* Darwin x86 assemblers support the .ident directive.  */
+
+#undef TARGET_ASM_OUTPUT_IDENT
+#define TARGET_ASM_OUTPUT_IDENT default_asm_output_ident_directive
+
 /* Darwin profiling -- call mcount.  */
 #undef FUNCTION_PROFILER
 #define FUNCTION_PROFILER(FILE, LABELNO)                               \
-- 
2.17.1


Reply via email to