This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: segfault within CPU_TIME (was: libgfortran/intrinsics/cpu_time.c: No such file or directory.)


> Is this a problem of the cpu_time intrinsic or does the error actually
> already occur before?

This is known as PR30780
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30780): the library
cpu_time function itself features a conversion with loss of precision
on standard targets. As Anrew said in the PR, it's hard to fix because
"there are no functions which convert from a floating point to an
integer that might not raise a signal.  This is why setting trapping
on
precision is almost something you never want to do."

Moreover, Jerry indicated in the PR that some of the I/O code might be
affected similarly.

So, to play it safe, I think it's best not to use -ffpe-trap=invalid
for now (-ffpe-trap=zero and others should be fine).

FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]