This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

i386-rtems setjmp.h patch


I don't claim to fully understand why the i386 has such a complicated
path to figuring out _JBLEN but it didn't work for rtems.  Honestly I
am not sure if using setjmp-dj.h gets everything defined for targets
that
use that either.  It looks like _JBLEN of 9 is what that structure is
accomplishing.  Anyway i386-rtems targets need this one.  Please
commit it.

2002-12-06	Joel Sherrill <joel@OARcorp.com>

	* libc/include/machine/setjmp.h: Make sure _JBLEN is defined
	for i386-rtems targets.

diff -uNr
/usr1/rtems/work-tools/original/newlib-1.10.0/newlib/libc/include/machine/setjmp.h
newlib-1.10.0/newlib/libc/include/machine/setjmp.h
---
/usr1/rtems/work-tools/original/newlib-1.10.0/newlib/libc/include/machine/setjmp.h 
Fri Feb  1 17:27:10 2002
+++ newlib-1.10.0/newlib/libc/include/machine/setjmp.h  Wed Nov 27
07:55:10 2002
@@ -41,8 +41,8 @@
 #if defined(__CYGWIN__) && !defined (_JBLEN)
 #define _JBLEN (13 * 4)
 #elif defined (__i386__)
-#ifdef __unix__
-# define _JBLEN        36
+#if defined(__unix__) || defined(__rtems__)
+# define _JBLEN        (9 * 4)
 #else
 #include "setjmp-dj.h"
 #endif

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


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