diff options
author | Richard Biener <rguenther@suse.de> | 2019-03-19 14:57:18 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-03-19 14:57:18 +0000 |
commit | 22fdf6af1487e8920c6bd77c4c4f64ec805f21e1 (patch) | |
tree | 022255a0ba596ffda77419bc24163d0b2ce3d0ff | |
parent | 2ca6d1813e47d235bb5f001b1a99b19652ea408a (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/opts.c | 8 |
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 @@ -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 |