aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-03-19 14:57:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-03-19 14:57:18 +0000
commit22fdf6af1487e8920c6bd77c4c4f64ec805f21e1 (patch)
tree022255a0ba596ffda77419bc24163d0b2ce3d0ff
parent2ca6d1813e47d235bb5f001b1a99b19652ea408a (diff)
downloadgcc-22fdf6af1487e8920c6bd77c4c4f64ec805f21e1.zip
gcc-22fdf6af1487e8920c6bd77c4c4f64ec805f21e1.tar.gz
gcc-22fdf6af1487e8920c6bd77c4c4f64ec805f21e1.tar.bz2
re PR debug/88389 (-flto -g -gsplit-dwarf is broken)
2019-03-19 Richard Biener <rguenther@suse.de> PR debug/88389 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO. From-SVN: r269800
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/opts.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bb62711..94d1e4e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-19 Richard Biener <rguenther@suse.de>
+
+ PR debug/88389
+ * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
+
2019-03-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/87809
diff --git a/gcc/opts.c b/gcc/opts.c
index 3161e0b..02f6b46 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -1077,6 +1077,14 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
"linker plugin");
opts->x_flag_fat_lto_objects = 1;
}
+
+ /* -gsplit-dwarf isn't compatible with LTO, see PR88389. */
+ if (opts->x_dwarf_split_debug_info)
+ {
+ inform (loc, "%<-gsplit-dwarf%> is not supported with LTO,"
+ " disabling");
+ opts->x_dwarf_split_debug_info = 0;
+ }
}
/* We initialize opts->x_flag_split_stack to -1 so that targets can set a