mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 00:11:00 +08:00
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.
This commit is contained in:
parent
1e20bb6737
commit
4cbd5ef035
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user