[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #17 from Peter Bergner --- (In reply to David Binderman from comment #16) > (In reply to Peter Bergner from comment #15) > > Doesn't fail for me on x86_64 either, so I'll need target/configure options > > as well as full compile options. > > Seems fixed somewhere between revision 249638 and 249861. It could be fixed by either richi's: https://gcc.gnu.org/ml/gcc-patches/2017-06/msg02237.html or my fix to: https://gcc.gnu.org/PR81194 I'm going to close this again, since it's not reproducible anymore.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 David Binderman changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #16 from David Binderman --- (In reply to Peter Bergner from comment #15) > Doesn't fail for me on x86_64 either, so I'll need target/configure options > as well as full compile options. Seems fixed somewhere between revision 249638 and 249861.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added Status|REOPENED|WAITING
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 --- Comment #15 from Peter Bergner --- (In reply to Peter Bergner from comment #14) > I don't see this on powerpc64le-linux using -O3. What target are you using? > Any options other than -O3? Doesn't fail for me on x86_64 either, so I'll need target/configure options as well as full compile options.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 --- Comment #14 from Peter Bergner --- I don't see this on powerpc64le-linux using -O3. What target are you using? Any options other than -O3?
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 David Binderman changed: What|Removed |Added Status|CLOSED |REOPENED Resolution|FIXED |--- --- Comment #13 from David Binderman --- Same code now crashes in a different way: bug355 during RTL pass: expand XmL.c: In function ‘XmLDrawnBDrawCB’: XmL.c:733:4: internal compiler error: in gimple_switch_label, at gimple.h:4525 0x56ad39 gimple_switch_label ../../trunk/gcc/gimple.h:4525 0xc3954d gimple_switch_label ../../trunk/gcc/tree.h:3083 0xc3954d gimple_switch_default_label ../../trunk/gcc/gimple.h:4545 0xc3954d expand_case(gswitch*) ../../trunk/gcc/stmt.c:1151 Flag -O3 required.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #12 from Peter Bergner --- Closing as fixed.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #11 from Peter Bergner --- Fixed.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 --- Comment #10 from Peter Bergner --- Author: bergner Date: Wed May 17 14:05:21 2017 New Revision: 248155 URL: https://gcc.gnu.org/viewcvs?rev=248155=gcc=rev Log: gcc/ PR middle-end/80775 * tree-cfg.c: Move deletion of unreachable case statements to after the merging of consecutive case labels. gcc/testsuite/ PR middle-end/80775 * gcc.dg/pr80775.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr80775.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfg.c
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added URL||https://gcc.gnu.org/ml/gcc- ||patches/2017-05/msg01332.ht ||ml --- Comment #9 from Peter Bergner --- Patch submitted.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Peter Bergner changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |bergner at gcc dot gnu.org --- Comment #8 from Peter Bergner --- I'm testing a patch. The special thing here, is that we try combining multiple case statements that lead to the same block and that block contains a __builtin_unreachable() call. If we remove the edge//block for the first case label, that causes a problem for the next case label that points to the same block. My "fix" is to first merge the case statements and then check whether the resulting case label points to an unreachable block and delete it if it does, which fixes the ICE.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 --- Comment #7 from Peter Bergner --- I have it recreated. Digging into it.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 --- Comment #6 from Peter Bergner --- I'll have a look.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #5 from Martin Liška --- Started with r247844.
[Bug middle-end/80775] [8 Regression] -O3 produces ice in group_case_labels_stmt
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80775 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Version|7.0 |8.0 Last reconfirmed||2017-05-16 Component|c |middle-end CC||bergner at gcc dot gnu.org Ever confirmed|0 |1 Summary|-O3 produces ice in |[8 Regression] -O3 produces |group_case_labels_stmt |ice in ||group_case_labels_stmt Target Milestone|--- |8.0 --- Comment #4 from Richard Biener --- Confirmed.