aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-08 19:32:43 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2019-09-08 19:32:43 +0000
commitb06e26ecd37c594b837c1e158a0de45725c222c8 (patch)
treecdeb4a7c8673f1f2698057b955c3f82e9a2c667c
parent0a75b6f239e8c2547fe12a7e9624c76b730c78dc (diff)
[Darwin, X86] Backport fix for .ident tests.
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@275494 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/i386/darwin.h5
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 412a16442a0..c9012e0ebf6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index bd12055d03e..c5a06856041 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -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) \