Compiling this file: #include <stdio.h> #include <stdlib.h> #include <sys/time.h> int main() { struct timeval now; return now.tv_usec % 15; } with this command, g++ -c -fpeephole2 test.cpp The problem goes away if "now.tv_usec" is casted to "int" a 32-bit number. So, it's related to the fact it's a 64-bit integer.
Created attachment 295862 [details] preprocessed source
Haiping, Fedora Core 4, 5, and 6 are not maintained anymore. Can you reproduce this bug on Fedora 7 or Fedora 8? I can not reproduce this on Fedora 8.
Can't reproduce with current gcc 3.4.x, 4.0.x, 4.1.x, 4.2.x nor 4.3.0.