https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60468

--- Comment #2 from dave.anglin at bell dot net ---
On 7-Jun-14, at 6:49 AM, fxcoudert at gcc dot gnu.org wrote:

> For hpux11, what should be used for FPU control? Googl'ing suggests  
> that HP/UX
> has moved to fenv.h support, with additional fegettrapenable/ 
> fesettrapenable
> function calls. Would you be able to confirm this, and point me to
> documentation for hpux11 fenv's documentation? If so, I'm willing to  
> add
> support for that platform.

Correct.  fenv.h is available from 11.00 onward.  The following calls  
are defined:

    extern void feclearexcept(int);
    extern void fegetexceptflag(fexcept_t *, int);
    extern void feraiseexcept(int);
    extern void fesetexceptflag(const fexcept_t *, int);
    extern int  fetestexcept(int);
    extern int  fegetround(void);
    extern int  fesetround(int);
    extern void fegetenv(fenv_t *);
    extern int  feholdexcept(fenv_t *);
    extern void fesetenv(const fenv_t *);
    extern void feupdateenv(const fenv_t *);

      extern int  fegetflushtozero(void);
      extern void fesetflushtozero(int);
      extern int  fegettrapenable(void);
      extern void fesettrapenable(int);

In addition, ia64 has:

        extern int  fegetprec(void);
        extern int  fesetprec(int);

Documentation is getting harder to get online.  The following link is  
for ia64 but should be mostly
relevant :
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=0008a22194f02110a22194f02110275d6e10RCRD

I have an older pdf version that is parisc specific.

It seems HP no longer has man pages online, so third-party links are  
all that's available:
http://www.polarhome.com/service/man/generic.php?qf=feclearexcept&type=2&of=HP-UX&sf=3m

Thanks,
Dave

--
John David Anglin    dave.ang...@bell.net

Reply via email to