------- Comment #1 from kkojima at gcc dot gnu dot org 2006-12-12 13:01 ------- A slightly different test case
unsigned int foo(unsigned int x) { if (x < 5) x = 4; else x = 8; return x; } int main(void) { if (foo (4) != 4) abort (); if (foo (8) != 8) abort (); exit (0); } aborts on i686-pc-linux-gnu with -O1 and -O2. -- kkojima at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- GCC target triplet|sh-elf, mips-elf |sh-elf, mips-elf, i686-pc- | |linux-gnu Summary|[4.3 Regression] gcc.c- |[4.3 Regression] gcc.c- |torture/execute/20010422-1.c|torture/execute/20010422-1.c |is miscompiled on sh-elf and|is miscompiled |mips-elf | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30159