Bug#343511: g++-3.4 -O1: wrong code generation

2005-12-15 Thread Falk Hueffner
Bill Allombert <[EMAIL PROTECTED]> writes: > Package: g++-3.4 > Version: 3.4.5-1 > Severity: normal > > Hello Debian GCC maintainers, > > g++-3.4 incorrectly compiles the attached file at -O1 and up by causing > an infinite loop. This reduces to: __attribute__ ((pure)) inline long f(void) {

Bug#343511: g++-3.4 -O1: wrong code generation

2005-12-15 Thread Bill Allombert
Package: g++-3.4 Version: 3.4.5-1 Severity: normal Hello Debian GCC maintainers, g++-3.4 incorrectly compiles the attached file at -O1 and up by causing an infinite loop. %g++-3.4 bug.c -o bug -Wall -O1 %./bug oo-loop gcc-3.4,g++-4.0 and gcc-4.0 all work correctly. Cheers, Bill. #include #inc