[Bug debug/86457] [8 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86457

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||8.1.1
 Resolution|--- |FIXED

--- Comment #5 from Richard Biener  ---
Fixed.

[Bug debug/86457] [8 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448

2018-07-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86457

--- Comment #4 from Richard Biener  ---
Author: rguenth
Date: Mon Jul 16 11:57:10 2018
New Revision: 262691

URL: https://gcc.gnu.org/viewcvs?rev=262691=gcc=rev
Log:
2018-07-19  Richard Biener  

Backport from mainline
2018-07-13  Richard Biener  

PR debug/86452
* dwarf2out.c (gen_type_die_with_usage): Use scope_die_for
instead of get_context_die.

2018-07-12  Richard Biener  

PR c/86453
* c-attribs.c (handle_packed_attribute): Do not build a variant
type with TYPE_PACKED, instead ignore the attribute if we may
not apply to the original type.

* g++.dg/warn/pr86453.C: New testcase.

2018-07-11  Richard Biener  

PR debug/86457
* dwarf2out.c (init_sections_and_labels): Use
output_asm_line_debug_info consistently.
(dwarf2out_early_finish): Likewise.
(dwarf2out_finish): Remove DW_AT_stmt_list from early generated
type units.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/pr86453.C
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/c-family/ChangeLog
branches/gcc-8-branch/gcc/c-family/c-attribs.c
branches/gcc-8-branch/gcc/dwarf2out.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

[Bug debug/86457] [8 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448

2018-07-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86457

--- Comment #3 from Richard Biener  ---
Author: rguenth
Date: Wed Jul 11 07:08:54 2018
New Revision: 262551

URL: https://gcc.gnu.org/viewcvs?rev=262551=gcc=rev
Log:
2018-07-11  Richard Biener  

PR debug/86457
* dwarf2out.c (init_sections_and_labels): Use
output_asm_line_debug_info consistently.
(dwarf2out_early_finish): Likewise.
(dwarf2out_finish): Remove DW_AT_stmt_list from early generated
type units.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c

[Bug debug/86457] [8 Regression] ICE in add_dwarf_attr, at dwarf2out.c:4405 since r251448

2018-07-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86457

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||9.0
Summary|[8/9 Regression] ICE in |[8 Regression] ICE in
   |add_dwarf_attr, at  |add_dwarf_attr, at
   |dwarf2out.c:4405 since  |dwarf2out.c:4405 since
   |r251448 |r251448
  Known to fail|9.0 |

--- Comment #2 from Richard Biener  ---
Fixed on trunk sofar.