Bug 20785 - Pragma STDC * (C99 FP) unimplemented
Summary: Pragma STDC * (C99 FP) unimplemented
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.1.0
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
: 39036 (view as bug list)
Depends on:
Blocks: 16989
  Show dependency treegraph
Reported: 2005-04-06 09:06 UTC by Aaron W. LaFramboise
Modified: 2019-06-26 05:36 UTC (History)
8 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2005-12-18 01:44:52

Stephen Moshier's patch from 2001. (4.44 KB, text/plain)
2005-04-06 11:22 UTC, Joseph S. Myers
Stephen Moshier's testcases from 2001. (2.00 KB, application/octet-stream)
2005-04-06 11:23 UTC, Joseph S. Myers

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron W. LaFramboise 2005-04-06 09:06:47 UTC

is currently unimplemented, and generates the warning:

warning: ignoring #pragma STDC CX_LIMITED_RANGE
Comment 1 Joseph S. Myers 2005-04-06 11:21:41 UTC
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.
Comment 2 Joseph S. Myers 2005-04-06 11:22:49 UTC
Created attachment 8543 [details]
Stephen Moshier's patch from 2001.
Comment 3 Joseph S. Myers 2005-04-06 11:23:58 UTC
Created attachment 8544 [details]
Stephen Moshier's testcases from 2001.
Comment 4 Aaron W. LaFramboise 2005-04-06 12:13:10 UTC
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.
Comment 5 Andrew Pinski 2006-09-22 19:27:59 UTC
*** Bug 29186 has been marked as a duplicate of this bug. ***
Comment 6 Richard Biener 2009-01-30 07:19:40 UTC
*** Bug 39036 has been marked as a duplicate of this bug. ***
Comment 7 Vincent Lefèvre 2015-11-23 12:39:42 UTC
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.