When I compile the following file with 'gcc -O2 file.c' I get: file.c: In function 'clip': file.c:2: internal compiler error: in convert_move, at expr.c:339 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. --- file.c --- void clip(double v, long *vbuf) { if (v >= 0.0) { v = 2147483647.0f; } else { v = 0.0; } *vbuf = v; } --- end of file.c --- Bye, Ralf Menzel
Oh, I forgot, here is the output of 'gcc -v': Using built-in specs. Target: sparc-sun-solaris2.9 Configured with: /home/menzel/src/4.0.0/gcc-4.0.0/configure --prefix=/home/menzel/sw5.9-gcc4.0.0 : (reconfigured) /home/menzel/src/4.0.0/gcc-4.0.0/configure --prefix=/home/menzel/sw5.9-gcc4.0.0 Thread model: posix gcc version 4.0.0
Fixed in gcc version 4.0.1 20050510 (prerelease).