diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2018-08-18 09:15:05 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2018-08-18 09:15:05 +0000 |
commit | c7a52e72da5d893545496a2f6772374c7282ba9c (patch) | |
tree | df123e91f7060b140c0ac489544c88ca883e2ca7 /gcc/config/darwin.c | |
parent | 2ed3a817c841071731219272de54c2aaefa741be (diff) | |
download | gcc-c7a52e72da5d893545496a2f6772374c7282ba9c.zip gcc-c7a52e72da5d893545496a2f6772374c7282ba9c.tar.gz gcc-c7a52e72da5d893545496a2f6772374c7282ba9c.tar.bz2 |
Darwin does not support gsplit-dwarf.
2018-08-18 Iain Sandoe <iain@sandoe.co.uk>
gcc/
* config/darwin.c (darwin_override_options): If -gsplit-dwarf is set,
emit a diagnostic that it is not supported and reset the option.
* config/darwin.h (DRIVER_SELF_SPECS): Note that gsplit-dwarf is not
supported and consume the option. (ASM_FINAL_SPEC): New.
gcc/testsuite
* g++.dg/debug/dwarf2/pr85302.C: Skip unsupported split DWARF
test on Darwin.
* g++.dg/debug/dwarf2/pr85302.C: Likewise.
* gcc.dg/lto/pr83719_0.c: Likewise.
From-SVN: r263645
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index a31cb08..233076a 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -3176,6 +3176,14 @@ darwin_override_options (void) if (!global_options_set.x_dwarf_version) dwarf_version = 2; + if (global_options_set.x_dwarf_split_debug_info) + { + inform (input_location, + "-gsplit-dwarf is not supported on this platform, ignored"); + dwarf_split_debug_info = 0; + global_options_set.x_dwarf_split_debug_info = 0; + } + /* Do not allow unwind tables to be generated by default for m32. fnon-call-exceptions will override this, regardless of what we do. */ if (generating_for_darwin_version < 10 |