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


 > 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));


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