[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Feb 13 22:31:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432
--- Comment #16 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Jerry DeLisle from comment #15)
> I was looking at this one just the other day. There are three PRs related
> to SYSTEM_CLOCK that we should attempt to close. I will look some more
> tonight.
What's missing:
- Support for integer(1/2). The standard requires (13.7.167):
COUNT (...). It is assigned a processor-dependent value based on the
value of the processor clock, or −HUGE (COUNT) if there is no clock.
COUNT RATE (...) It is assigned a processor-dependent approximation to
the number of processor clock counts per second, or zero if there is
no clock.
COUNT MAX (...) It is assigned the maximum value that COUNT can have,
or zero if there is no clock.
We might treat any integer(1/2) argument as there were no corresponding
clock. I just don't know how to create the corresponding code to
set the result variable appropriately.
- The compile-time warning FX mentioned in comment #12. We could
split this one off as an enhancement.
- A consensus what shall happen for arguments of mixed kinds.
More information about the Gcc-bugs
mailing list