#pragma STDC CX_LIMITED_RANGE off
is currently unimplemented, and generates the warning:
warning: ignoring #pragma STDC CX_LIMITED_RANGE
We know. I'm not sure how much use there is opening PRs for major points listed
as Missing at <http://gcc.gnu.org/c99status.html> unless there are particular
subtle points which might be missed in implementation which would be better
noted in a PR.
Stephen Moshier started a C99 pragma implementation some time ago. I have his
code (version of June 2001, not a complete implementation, only does anything
with FENV_ACCESS) and at least the testcases might be useful; I'll attach the
files to this bug as we may as well use the bug now it's open.
Created attachment 8543 [details]
Stephen Moshier's patch from 2001.
Created attachment 8544 [details]
Stephen Moshier's testcases from 2001.
I opened the PR so I would have a tangible place to point to in a FIXME in some
code, saying "when this bug is fixed, uncomment this." Perhaps though, for
things of this sort, it would be better to point to the status page. However,
one can add oneself to the CC list for a bug much easier than he can add himself
to the "CC list" for a webpage.
*** Bug 29186 has been marked as a duplicate of this bug. ***
*** Bug 39036 has been marked as a duplicate of this bug. ***
For the STDC FENV_ACCESS pragma specifically, there is PR34678.
For the STDC FP_CONTRACT pragma, there is PR37845, which was fixed by r204460, though things could be improved in the future as the pragma is actually ignored: it's just that the default is now OFF in standard modes to be C99/C11 conforming. In the non-standard modes, one now misses the warning: PR68499.