[Bug debug/86452] [8 Regression] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto

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

Richard Biener  changed:

   What|Removed |Added

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

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

[Bug debug/86452] [8 Regression] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto

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

--- Comment #9 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/86452] [8 Regression] ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto

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

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2
  Known to work||9.0
   Target Milestone|--- |8.2
Summary|ICE in force_decl_die, at   |[8 Regression] ICE in
   |dwarf2out.c:25922 with -g1  |force_decl_die, at
   |and -flto   |dwarf2out.c:25922 with -g1
   ||and -flto

--- Comment #7 from Richard Biener  ---
Fixed on trunk sofar, I guess this is really a regression.