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]

set_float_handler undeclared


toplev.h fails to declare set_float_handler, due to a bogus check for a
prior inclusion of <setjmp.h>.  _JBLEN is not usable for this since it is
not part of any standard, certainly not ANSI, POSIX or SUS2.  But the C
standard explicitly says that setjmp must be a macro, so it is safe to use
that instead.


1998-12-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* toplev.h: Use standard setjmp macro instead of nonstandard
	_JBLEN macro to check whether <setjmp.h> has been included.

--- egcs-2.92/gcc/toplev.h.~1~	Wed Dec  2 23:33:55 1998
+++ egcs-2.92/gcc/toplev.h	Sun Dec 27 16:35:31 1998
@@ -56,7 +56,7 @@
 						ATTRIBUTE_PRINTF_2;
 extern void warning_for_asm		PVPROTO((struct rtx_def *, char *, ...))
 						ATTRIBUTE_PRINTF_2;
-#ifdef _JBLEN
+#ifdef 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));

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


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