diff options
author | Richard Biener <rguenther@suse.de> | 2023-03-23 16:56:53 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-03-27 08:45:29 +0200 |
commit | 4cbd5ef0350d8ab04993eb4c48ab80999fb4f358 (patch) | |
tree | dbad64ca49d881e36e75cfa07cb52f9e9b1f74e4 /gcc | |
parent | 1e20bb6737e1173a0c3ef3e9e48c0eda40985ded (diff) | |
download | gcc-4cbd5ef0350d8ab04993eb4c48ab80999fb4f358.zip gcc-4cbd5ef0350d8ab04993eb4c48ab80999fb4f358.tar.gz gcc-4cbd5ef0350d8ab04993eb4c48ab80999fb4f358.tar.bz2 |
lto/109263 - lto-wrapper and -g0 -ggdb
The following makes lto-wrapper deal with non-combined debug
disabling / enabling option combinations properly. Interestingly
-gno-dwarf also enables debug.
PR lto/109263
* lto-wrapper.cc (run_gcc): Parse alternate debug options
as well, they always enable debug.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/lto-wrapper.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index fe8c5f6..5186d04 100644 --- a/gcc/lto-wrapper.cc +++ b/gcc/lto-wrapper.cc @@ -1564,6 +1564,16 @@ run_gcc (unsigned argc, char *argv[]) skip_debug = option->arg && !strcmp (option->arg, "0"); break; + case OPT_gbtf: + case OPT_gctf: + case OPT_gdwarf: + case OPT_gdwarf_: + case OPT_ggdb: + case OPT_gvms: + /* Negative forms, if allowed, enable debug info as well. */ + skip_debug = false; + break; + case OPT_dumpdir: incoming_dumppfx = dumppfx = option->arg; break; |