public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6872] lto/109263 - lto-wrapper and -g0 -ggdb
@ 2023-03-27 6:45 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-03-27 6:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4cbd5ef0350d8ab04993eb4c48ab80999fb4f358
commit r13-6872-g4cbd5ef0350d8ab04993eb4c48ab80999fb4f358
Author: Richard Biener <rguenther@suse.de>
Date: Thu Mar 23 16:56:53 2023 +0100
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.
Diff:
---
gcc/lto-wrapper.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc
index fe8c5f6e80d..5186d040ce0 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-27 6:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 6:45 [gcc r13-6872] lto/109263 - lto-wrapper and -g0 -ggdb Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).