[Bug tree-optimization/79472] [7 Regression] x86-64: Switch table generation fails if default case has different code

2017-02-13 Thread yuriks at yuriks dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79472 --- Comment #4 from Yuri Kunde Schlesner --- Note that, while this particular example uses a noreturn call, the same pattern applies to any switch where the default case is the only one which has code that can't be transformed into a table. For e

[Bug tree-optimization/79472] New: x86-64: Switch table generation fails if default case has different code

2017-02-11 Thread yuriks at yuriks dot net
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: yuriks at yuriks dot net Target Milestone: --- Consider the following code, compiled at -O2: (Compiler explorer link: https://godbolt.org/g/GljuJt) #include