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]

Re: set_float_handler undeclared



  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


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