[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Oct 13 10:42:36 2016 New Revision: 241094 URL: https://gcc.gnu.org/viewcvs?rev=241094&root=gcc&view=rev Log: PR c/77946 * tree.h (FALLTHROUGH_LABEL_P): Use private_fl

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #8 from Marek Polacek --- (In reply to Jakub Jelinek from comment #5) > I think my preference would be to try TREE_PRIVATE bit for it instead. I can do it.

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #7 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #6) > (In reply to Marek Polacek from comment #4) > > (In reply to Jakub Jelinek from comment #3) > > > Thanks. More reduced (that fails even with -Wimplicit-fal

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #6 from Jakub Jelinek --- (In reply to Marek Polacek from comment #4) > (In reply to Jakub Jelinek from comment #3) > > Thanks. More reduced (that fails even with -Wimplicit-fallthrough): > > Did you mean without? No, I meant with,

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #5 from Jakub Jelinek --- The problem is that varasm.c uses TREE_PUBLIC on all decls, but it now means something different on LABEL_DECLs. So either we tweak it: --- gcc/varasm.c.jj 2016-10-09 13:19:09.0 +0200 +++ gcc/var

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

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

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

2016-10-12 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77946 --- Comment #2 from Markus Trippelsdorf --- (In reply to Jakub Jelinek from comment #1) > Try -save-temps with -C or -CC ? Thanks, that works. int a; void fn1() { static int *b[] = {[0] = &&LD_IND_B, 0}; goto *b[a]; /**/ LD_IND_B: /*

[Bug c/77946] -Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’

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