------- Comment #3 from sliao at google dot com 2010-01-07 12:43 ------- Because: "This bug can be more easily demonstrated with multiplication of tv_sec by 10 and tv_usec/ 1000 removed"
, the input program is: #include <sys/time.h> extern void get_time(struct timeval*); void test(long long *res) { struct timeval tv; get_time(&tv); *res = tv.tv_sec * 10; } As a result, there is no load of tv.tv_usec in the code generated. Sorry for the confusion. -- sliao at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jingyu at google dot com, | |dougkwan at google dot com, | |carrot at google dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42499