This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: FPU control, round 2
- From: Richard Henderson <rth at redhat dot com>
- To: François-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Apr 2005 14:41:37 -0700
- Subject: Re: FPU control, round 2
- References: <42709222.2000000@lcp.u-psud.fr>
On Thu, Apr 28, 2005 at 09:34:58AM +0200, François-Xavier Coudert wrote:
> 1. (mainly for GNU build tools wizards) Is there a way for configure to
> define a macro (ARCH_IS_I386_LINUX or ARCH_IS_PPC) depending on the value
> of the target triplet?
You do not want this. You want to use configure dependent header files.
See libstdc++ and config/{cpu,os}/*.
You should also note that glibc provides extensions for playing with the
exception mask:
/* Enable individual exceptions. Will not enable more exceptions than
EXCEPTS specifies. Returns the previous enabled exceptions if all
exceptions are successfully set, otherwise returns -1. */
extern int feenableexcept (int __excepts) __THROW;
/* Disable individual exceptions. Will not disable more exceptions than
EXCEPTS specifies. Returns the previous enabled exceptions if all
exceptions are successfully disabled, otherwise returns -1. */
extern int fedisableexcept (int __excepts) __THROW;
/* Return enabled exceptions. */
extern int fegetexcept (void) __THROW;
r~