This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: set_float_handler undeclared
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: set_float_handler undeclared
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 02 Jan 1999 18:15:21 -0700
- cc: schwab at issan dot informatik dot uni-dortmund dot de, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199901021800.NAA04792@caip.rutgers.edu>you write:
> The only system I've seen which has setjmp as a macro is
> sparc-linux (maybe all linuxes?) Anyway _JBLEN has served well on all
> platforms except linux so IMHO we shouldn't abandon it altogether.
> Perhaps we can check:
Probably all linux variants.
> #if defined(_JBLEN) || defined(setjmp) || defined (...)
>
> Or we can just move setjmp.h to system.h and provide a backup definition
> for _JBLEN so its always defined. E.g.
>
> system.h: #include <setjmp.h>
> system.h: #ifndef _JBLEN
> system.h: # define _JBLEN (sizeof(jmp_buf)/sizeof(jmp_buf[0]))
> system.h: #endif
Either seems reasonable to me. I'd probably lean towards the first slightly.
jeff