This is the mail archive of the gcc-patches@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: FPU control, round 2


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~


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