This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: IEEE inexact-flag not working on the Alpha (despite -mieee-with-inexact)?
- From: Andreas Schwab <schwab at suse dot de>
- To: Roberto Bagnara <bagnara at cs dot unipr dot it>
- Cc: gcc at gcc dot gnu dot org, "The Parma Polyhedra Library developers' list" <ppl-devel at cs dot unipr dot it>
- Date: Thu, 18 Sep 2008 15:32:01 +0200
- Subject: Re: IEEE inexact-flag not working on the Alpha (despite -mieee-with-inexact)?
- References: <48D23D14.2030006@cs.unipr.it> <jek5d9hcz1.fsf@sykes.suse.de> <48D2539A.8070409@cs.unipr.it>
Roberto Bagnara <bagnara@cs.unipr.it> writes:
> thanks for your message. Do you mean that we need to enable the FENV_ACCESS
> pragma to get defined behavior only on the Alpha or also elsewhere?
See the C standard, 7.6.1 The FENV_ACCESS pragma.
The FENV_ACCESS pragma provides a means to inform the implementation
when a program might access the ïoating-point environment to test
ïoating-point status ïags or run under non-default ïoating-point
control modes. ... If part of a program tests ïoating-point status
ïags, sets ïoating-point control modes, or runs under non-default mode
settings, but was translated with the state for the FENV_ACCESS pragma
ââoffââ, the behavior is undeïned.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 NÃrnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."