[Bug target/68454] internal compiler error: Segmentation fault

luser.droog at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 25 04:37:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68454

--- Comment #9 from M Joshua Ryan <luser.droog at gmail dot com> ---
Investigated the offending source line a little deeper. It now looks to me like
it has to do with mixed floating/integer arithmetic, especially with bizarre
types like `time_t`. Changing the source to use all integer arithmetic allows
the compiler to complete.

    gettimeofday(&tv, NULL);
    _xpost_start_time = (((long)tv.tv_sec) * 1000) + ((long)tv.tv_usec / 1000);


More information about the Gcc-bugs mailing list