From: Iain Sandoe Date: Sun, 8 Sep 2019 19:32:43 +0000 (+0000) Subject: [Darwin, X86] Backport fix for .ident tests. X-Git-Tag: releases/gcc-7.5.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f57249e39c085d3978e1de089de049028b1a56a4;p=thirdparty%2Fgcc.git [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 Backport from mainline 2018-12-23 Iain Sandoe * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New. From-SVN: r275494 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 412a16442a05..c9012e0ebf6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,11 @@ -2019-09-06 Iain Sandoe +2019-09-08 Iain Sandoe + + Backport from mainline + 2018-12-23 Iain Sandoe + + * config/i386/darwin.h (TARGET_ASM_OUTPUT_IDENT): New. + +2019-08-22 Iain Sandoe Backport from mainline 2019-05-31 Iain Sandoe diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index bd12055d03ec..c5a068560415 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) \