diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2018-12-23 11:04:14 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2018-12-23 11:04:14 +0000 |
commit | d590d99ac9fa34b503d31de6c3bb4ca780ad2afd (patch) | |
tree | 3a56e2fc92eb00601fddea64d431c1cf565382f9 /gcc | |
parent | 4098a6d4368119ad098028bf0888e17a16b9f022 (diff) | |
download | gcc-d590d99ac9fa34b503d31de6c3bb4ca780ad2afd.zip gcc-d590d99ac9fa34b503d31de6c3bb4ca780ad2afd.tar.gz gcc-d590d99ac9fa34b503d31de6c3bb4ca780ad2afd.tar.bz2 |
Fix ident tests by Enabling ident output for X86 Darwin.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/darwin.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3691e65..dfab74e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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 unless we actually did some LTO. (has_lto_section, is_lto_object_file): New. diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index 53789e7..f760218 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) \ |