public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, committed] Enable ident for X86 Darwin.
@ 2018-12-23 11:09 Iain Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2018-12-23 11:09 UTC (permalink / raw)
  To: GCC Patches; +Cc: Mike Stump

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-23 11:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23 11:09 [PATCH, committed] Enable ident for X86 Darwin Iain Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).