aboutsummaryrefslogtreecommitdiff
path: root/libobjc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2023-09-17 15:56:07 +0100
committerIain Sandoe <iain@sandoe.co.uk>2023-09-18 19:37:17 +0100
commit47346acb72b50d178dae72393c851d57beec383f (patch)
treedadd5d2d470ab59f772363e6bcd22987ab21a85f /libobjc
parentce7a757fd9ecb99c4f54cfde5cf5ef9a9e7819fc (diff)
downloadgcc-47346acb72b50d178dae72393c851d57beec383f.zip
gcc-47346acb72b50d178dae72393c851d57beec383f.tar.gz
gcc-47346acb72b50d178dae72393c851d57beec383f.tar.bz2
Darwin,debug : Switch to DWARF 3 or 4 when dsymutil supports it.
The main reason that Darwin has been using DWARF2 only as debug is that earlier debug linkers (dsymutil) did not support any extensions to this so that the default "non-strict" mode used in GCC would cause tool errors. There are two sources for dsymutil, those based off a closed source base "dwarfutils" and those based off LLVM. For dsymutil versions based off LLVM-7+ we can use up to DWARF-4, and for versions based on dwarfutils 121+ we can use DWARF-3. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/ChangeLog: * config/darwin-protos.h (enum darwin_external_toolchain): New. * config/darwin.cc (DSYMUTIL_VERSION): New. (darwin_override_options): Choose the default debug DWARF version depending on the configured dsymutil version.
Diffstat (limited to 'libobjc')
0 files changed, 0 insertions, 0 deletions