[fortran,patch] Fix detection of fpsetmask()
FX
fxcoudert@gmail.com
Fri Feb 25 14:56:00 GMT 2011
The recent report by Anton on the fortran list showed that, on ia64-freebsd and sparc64-freebsd systems, the runtime support for the -ffpe-trap option is not compiled. FreeBSD has the SysV fpsetmask() function, which should be detected and used, but was not because of a bug in the configure script.
The attached patch fixes that. Yields good results on both ia64-freebsd and sparc64-freebsd. Bootstrapped and manually checked on x64_64-darwin (where it makes no difference, of course).
OK to commit to trunk?
Also, since the bug was present since the original introduction of the feature, it may be a candidate for a 4.5 backport once it's proven not to break the build on the trunk for some time. However, it affects a very small number of systems: only non-(x86|x86_64) Unix, without the glibc-style fenv.h functions or the AIX fp_trap() function, so I wouldn't push it if it were up to me.
Cheers,
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpsetmask.diff
Type: application/octet-stream
Size: 918 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110225/892e99cf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpsetmask.ChangeLog
Type: application/octet-stream
Size: 178 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110225/892e99cf/attachment-0001.obj>
More information about the Fortran
mailing list