Fix ident tests by Enabling ident output for X86 Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 23 Dec 2018 11:04:14 +0000 (11:04 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 23 Dec 2018 11:04:14 +0000 (11:04 +0000)
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.

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

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

From-SVN: r267372

gcc/ChangeLog
gcc/config/i386/darwin.h

index 3691e65860e75d2e332163af544d4b21bd6970f3..dfab74eb3df5e20d3768ac7fbc40a7b7a124c5cc 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New.
+
 2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
 
        * collect2.c (maybe_run_lto_and_relink): Don’t say we have a temp file
index 53789e7c236d7abc84abc12a793dfde53229dca5..f760218bda728806456dd7d4ed54394d1895e47b 100644 (file)
@@ -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)                               \