diff mbox series

[committed] Enable ident for X86 Darwin.

Message ID 8AEDB591-2676-429D-9D1A-C71B591F3C4D@sandoe.co.uk
State New
Headers show
Series [committed] Enable ident for X86 Darwin. | expand

Commit Message

Iain Sandoe Dec. 23, 2018, 11:08 a.m. UTC
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  <iain@sandoe.co.uk>

gcc/

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

Patch

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)				\