re PR debug/81936 (ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543)
authorRichard Biener <rguenther@suse.de>
Thu, 24 Aug 2017 13:41:51 +0000 (13:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 24 Aug 2017 13:41:51 +0000 (13:41 +0000)
commit5d52d2c949fe6277fd1f31be8d6f48e1dae06652
tree8e50adc3a6b6454612de0fd8e165e999f57aac98
parent6eb191429843d14d2eb3912aa4f23f236ce773b5
re PR debug/81936 (ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543)

2017-08-24  Richard Biener  <rguenther@suse.de>

PR debug/81936
* dwarf2out.c (output_die): Handle flag_generate_offload like
flag_generate_lto.
(output_comp_unit): Likewise.
(gen_array_type_die): Likewise.
(dwarf2out_early_finish): Likewise.
(note_variable_value_in_expr): Likewise.
(dwarf2out_finish): Likewise.  Adjust assert.
* cgraphunit.c (symbol_table::compile): Move setting of
flag_generate_offload earlier ...
(symbol_table::finalize_compilation_unit): ... here, before
early debug finalization.

From-SVN: r251332
gcc/ChangeLog
gcc/cgraphunit.c
gcc/dwarf2out.c