Thread: Why is #pragma STDC FENV_ACCESS ignored ?
i'm using gcc 4.4.5 , c code. i'm compiling sse floating point options x86, turned on.
find gcc not recognize stdc fenv_access pragma defined in c99.
find feenableexcept() function links in glibc has no prototype in fenv.h -- _gnu_source defined. function not part of c99 commonly referenced on web , has linux man page.
want trap floating point exceptions because sse turned on integer divide 0 exceptions (such x = 1 % 0) appear floating point exceptions (i think doesn't happen if x87 used).
there "clean" way of dealing this? found link @ least assures me i'm on right track:
http://www.fortran-2000.com/arnaudre...ks.html#x86_fp
what value of -std compiling with? fenv.h:
so try -std=gnu99.code:#ifdef __use_gnu /* enable individual exceptions. not enable more exceptions excepts specifies. returns previous enabled exceptions if exceptions set, otherwise returns -1. */ extern int feenableexcept (int __excepts) __throw;
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Why is #pragma STDC FENV_ACCESS ignored ?
Ubuntu
Comments
Post a Comment