This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: IEEE inexact-flag not working on the Alpha (despite -mieee-with-inexact)?


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]