[Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement

2004-11-23 Thread reichelt at gcc dot gnu dot org
--- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-23 16:34 --- The regression appears in gcc 3.5.0 20040712. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18628

[Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement

2004-11-23 Thread reichelt at gcc dot gnu dot org
--- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-23 16:16 --- Works also with int: int i; int main() { for (;;) { switch (i) { case 0: case 1: return 1; case 2: case 3: return 0; ca

[Bug middle-end/18628] [4.0 regression] miscompilation of complex switch statement

2004-11-23 Thread reichelt at gcc dot gnu dot org
--- Additional Comments From reichelt at gcc dot gnu dot org 2004-11-23 16:10 --- Here's a reduced testcase for i686-pc-liux-gnu. Just compile with gcc -O2 to see a linker failure: == enum { e0, e1, e2, e3, e4, e5 } e; int main() { for (;;) {