This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: set_float_handler undeclared
- To: law at cygnus dot com
- Subject: Re: set_float_handler undeclared
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 6 Jan 1999 10:03:34 -0500 (EST)
- Cc: egcs-patches at cygnus dot com, schwab at issan dot informatik dot uni-dortmund dot de
> From: Jeffrey A Law <law@cygnus.com>
>
> > #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
Okay, I installed the following patch.
Andreas would you please confirm this solves your prototype issue?
Thanks,
--Kaveh
Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/ChangeLog,v
retrieving revision 1.2721
diff -u -p -r1.2721 ChangeLog
--- ChangeLog 1999/01/06 03:20:40 1.2721
+++ ChangeLog 1999/01/06 14:46:57
@@ -1,3 +1,8 @@
+Wed Jan 6 09:44:51 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * toplev.h: In addition to checking _JBLEN, also check if `setjmp'
+ is a macro when deciding if we can use `jmp_buf' in prototypes.
+
Thu Jan 7 00:12:24 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.md (addqi3): If the destination operand is
Index: toplev.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.h,v
retrieving revision 1.12
diff -u -p -r1.12 toplev.h
--- toplev.h 1998/12/16 20:58:34 1.12
+++ toplev.h 1999/01/06 14:46:57
@@ -56,7 +56,7 @@ extern void error_for_asm PVPROTO((stru
ATTRIBUTE_PRINTF_2;
extern void warning_for_asm PVPROTO((struct rtx_def *, char *, ...))
ATTRIBUTE_PRINTF_2;
-#ifdef _JBLEN
+#if defined (_JBLEN) || defined (setjmp)
extern void set_float_handler PROTO((jmp_buf));
extern int push_float_handler PROTO((jmp_buf, jmp_buf));
extern void pop_float_handler PROTO((int, jmp_buf));