aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
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 /gcc/opts.c
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c8
1 files changed, 8 insertions, 0 deletions
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