[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #14 from Jakub Jelinek --- Author: jakub Date: Thu Jan 26 21:44:49 2017 New Revision: 244954 URL: https://gcc.gnu.org/viewcvs?rev=244954=gcc=rev Log: PR debug/78835 * dwarf2out.c (prune_unused_types): Mark all

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Jakub Jelinek changed: What|Removed |Added Attachment #40524|0 |1 is obsolete|

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-17 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #12 from rguenther at suse dot de --- On Tue, 17 Jan 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 > > --- Comment #11 from Jakub Jelinek --- > (In reply to Richard Biener from comment

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #11 from Jakub Jelinek --- (In reply to Richard Biener from comment #10) > (In reply to Jakub Jelinek from comment #9) > > Created attachment 40524 [details] > > gcc7-pr78835.patch > > > > Untested patch that fixes the ICE on this

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-17 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #10 from Richard Biener --- (In reply to Jakub Jelinek from comment #9) > Created attachment 40524 [details] > gcc7-pr78835.patch > > Untested patch that fixes the ICE on this testcase by marking directly > called functions as

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #9 from Jakub Jelinek --- Created attachment 40524 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40524=edit gcc7-pr78835.patch Untested patch that fixes the ICE on this testcase by marking directly called functions as needed.

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #8 from Jakub Jelinek --- Now, even going through all cgraph edges and marking the callee DIEs as used (setting die_mark for them) early (but I guess it would be better to do the early finish then after early optimizations, but

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #7 from Jakub Jelinek --- The important thing is that it is only possible to refer to a single DIE in the type unit (.debug.types.* in DWARF4, .debug_info DW_UT_type unit in DWARF5); in the #c0 case it is the Bar

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #6 from Jakub Jelinek --- Perhaps we could combine the #c1 patch with some changes to make sure we don't prune those types that appear in callgraph edges callee contexts? Is the early finish debug hook called after some minimal

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #5 from Richard Biener --- So initially we generate DIE0: DW_TAG_GNU_call_site (0x768cd690) abbrev id: 0 offset: 0 mark: 0 DW_AT_low_pc: label: *.LVL1 DW_AT_abstract_origin: address but that later gets rewritten

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2016-12-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2016-12-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|nathan at

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2016-12-16 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #3 from Nathan Sidwell --- started failing with: r240578 | rguenth | 2016-09-28 07:30:19 -0700 (Wed, 28 Sep 2016) | 17 lines 2016-09-28 Richard Biener * dwarf2out.c (struct die_struct): Add removed

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2016-12-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2016-12-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1