[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #21 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 17:26:12 2017 New Revision: 252559 URL: https://gcc.gnu.org/viewcvs?rev=252559=gcc=rev Log: 2017-08-24 Richard Biener PR debug/81936 *

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-26 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #20 from Tom de Vries --- (In reply to Richard Biener from comment #19) > Fixed. Thanks for fixing this. libgomp with nvptx offloading is back to known fails: ... # of unexpected failures24 # of expected passes

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #18 from Richard Biener --- Author: rguenth Date: Thu Aug 24 13:41:51 2017 New Revision: 251332 URL: https://gcc.gnu.org/viewcvs?rev=251332=gcc=rev Log: 2017-08-24 Richard Biener PR debug/81936

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #17 from Richard Biener --- Created attachment 42036 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42036=edit patch

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #15 from Tom de Vries --- (In reply to rguent...@suse.de from comment #14) > That looks odd, I'll see if I can reproduce tomorrow. FYI, there are scripts at https://gcc.gnu.org/wiki/Offloading#How_to_try_offloading_enabled_GCC that

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #14 from rguenther at suse dot de --- On August 23, 2017 6:52:40 PM GMT+02:00, "vries at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 > >--- Comment #13 from Tom de Vries ---

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #13 from Tom de Vries --- I've tried to see if I could workaround the problem by disabling the assert: ... diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0c339bd46f0..b2df3b89c2e 100644 --- a/gcc/dwarf2out.c +++

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #12 from Tom de Vries --- (In reply to rguent...@suse.de from comment #11) > > And then we run into the next ICE: > Shit happens ;) Heh, it does :) > Is that now the offload compiler? Nope, still the host compiler, we're ICE-ing

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #11 from rguenther at suse dot de --- On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 > > --- Comment #9 from Tom de Vries --- > (In reply to Tom de Vries from comment #8)

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #10 from rguenther at suse dot de --- On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 > > --- Comment #8 from Tom de Vries --- > (In reply to rguent...@suse.de from comment

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #9 from Tom de Vries --- (In reply to Tom de Vries from comment #8) > but found it doesn't work because flag_generate_offload is actually false. > > I'm now trying this (code snippet copied from symbol_table::compile), but > I'm not

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #8 from Tom de Vries --- (In reply to rguent...@suse.de from comment #7) > Ah, yeah. And we can have both, right? I'd say so. There's f.i. libgomp.c/target-9.c, which contains '#pragma omp target' and uses -flto. > So we'd either

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #7 from rguenther at suse dot de --- On Wed, 23 Aug 2017, vries at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 > > --- Comment #6 from Tom de Vries --- > > what failed to properly set its parent? >

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #6 from Tom de Vries --- > what failed to properly set its parent? dwarf2out_early_finish contains: ... /* Do not generate DWARF assembler now when not producing LTO bytecode. */ if (!flag_generate_lto) return; ... and this

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #4 from Tom de Vries --- (In reply to Richard Biener from comment #2) > How do I reproduce, aka configure gcc? The ICE is actually in the host compiler, but it doesn't seem to reproduce in a non-offloading setup. Host compiler:

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #3 from Tom de Vries --- ICE is due to assert: ... at gcc/dwarf2out.c:5542 5542 gcc_assert (die->die_tag == DW_TAG_compile_unit 5543 && die->die_id.die_symbol != NULL); ... The assert triggers because

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 --- Comment #2 from Richard Biener --- How do I reproduce, aka configure gcc?

[Bug debug/81936] ICE in dwarf2out_die_ref_for_decl, at dwarf2out.c:5543

2017-08-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81936 Tom de Vries changed: What|Removed |Added CC||rguenth at gcc dot gnu.org --- Comment