re PR debug/84645 (-flto -g0 at compile-time vs. -flto -g at link time ICEs in add_dw...
authorRichard Biener <rguenther@suse.de>
Thu, 1 Mar 2018 13:39:56 +0000 (13:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 1 Mar 2018 13:39:56 +0000 (13:39 +0000)
commitb476f5dd5d5aef9b150ad5d71dc46fd0b6207f73
tree941783a864848aca2b46b958ef5b645b933600de
parent523036d4dcd25b8c0fe619b2e76a3795931e74ba
re PR debug/84645 (-flto -g0 at compile-time vs. -flto -g at link time ICEs in add_dwarf_attr, at dwarf2out.c:4353)

2018-03-01  Richard Biener  <rguenther@suse.de>

PR debug/84645
* dwarf2out.c (gen_variable_die): Properly handle late VLA
type annotation with LTO when debug was disabled at compile-time.

* gfortran.dg/lto/pr84645_0.f90: New testcase.

From-SVN: r258100
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/lto/pr84645_0.f90 [new file with mode: 0644]