Bug#503204: gcc-4.1: erroneously emits warning on C99-required #pragma STDC FENV_ACCESS
On Thu, Oct 23, 2008 at 02:55:12PM +0100, Matthew Vernon wrote:
> C99 requires that code that tests floating-point state flags (or frobs
> other bits of the floating-point environment) calls #pragma STDC
> FENV_ACCESS ON:
gcc does not stat full C99 compilance.
> It's obviously buggy to emit a warning on standards-mandated behaviour!
> I know you can turn this warning off with -Wno-unknown-pragmas, but
> that's not something you want to be doing in production code.
Please show the part of the standard. A compiler may produce warnings
without reason.
Bastian
--
We have phasers, I vote we blast 'em!
-- Bailey, "The Corbomite Maneuver", stardate 1514.2
Reply to: