This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29186] optimzation breaks floating point exception flag reading
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2006 21:52:29 -0000
- Subject: [Bug c/29186] optimzation breaks floating point exception flag reading
- References: <bug-29186-1882@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from joseph at codesourcery dot com 2006-09-23 21:52 -------
Subject: Re: optimzation breaks floating point exception flag
reading
On Sat, 23 Sep 2006, kreckel at ginac dot de wrote:
> According to C99, 7.6.1, you are technically right. But still: an
> implementation that does not allow access to floating point flags irritates me.
Use -frounding-math to enable FENV_ACCESS for the whole translation unit,
but note the warnings in the documentation of that option. If that option
does not meet all the requirements of FENV_ACCESS, file a new bug report
for each specific problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29186