]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, X86] Backport fix for .ident tests.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 8 Sep 2019 19:32:43 +0000 (19:32 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 8 Sep 2019 19:32:43 +0000 (19:32 +0000)
The c-c++-common tests fail (or XPASS depending on which) on Darwin
because if doesn't emit a.ident marker. For X86 Darwin, this is a
trivial oversight; the assembler supports the directive. We can
therefore use the default target hook there.

2019-09-08  Iain Sandoe  <iain@sandoe.co.uk>

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

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

From-SVN: r275494

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

index 412a16442a059a82d8d46ca121fe0d422c02388f..c9012e0ebf6f0aadbc2f84da1eae39da07fc2820 100644 (file)
@@ -1,4 +1,11 @@
-2019-09-06  Iain Sandoe  <iain@sandoe.co.uk>
+2019-09-08  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline
+       2018-12-23  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New.
+
+2019-08-22  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline
        2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
index bd12055d03ecbe36869a5886cba2cc11346ae7d7..c5a068560415c83da8d04e5e99390cb4c865ab77 100644 (file)
@@ -232,6 +232,11 @@ extern int darwin_emit_branch_islands;
   } while (0)
 #endif
 
+/* 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)                               \