public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-10680] lto/109263 - lto-wrapper and -g0 -ggdb
@ 2023-05-02 12:45 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-05-02 12:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d4baf9f030f3b61499f3e83a3f5fc39bc8427cb5
commit r11-10680-gd4baf9f030f3b61499f3e83a3f5fc39bc8427cb5
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.c (run_gcc): Parse alternate debug options
as well, they always enable debug.
(cherry picked from commit 4cbd5ef0350d8ab04993eb4c48ab80999fb4f358)
Diff:
---
gcc/lto-wrapper.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 4429182a61a..038784ca2dc 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -1520,6 +1520,14 @@ run_gcc (unsigned argc, char *argv[])
skip_debug = option->arg && !strcmp (option->arg, "0");
break;
+ 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-05-02 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 12:45 [gcc r11-10680] 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).