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]

Re: h8sx support added to h8300 port


On Jun 21, 2004, Jeff Johnston <jjohnstn@redhat.com> wrote:

> Alexandre Oliva wrote:
>> This patch adds support for H8SX to the h8300 port, matching the
>> just-contributed changes to GCC.  Ok to install?

> Yes, please do.

It's in.  I went ahead and checked in this obvious bug fix to the
pre-existing h8300-elf port.  Without the patch below, GCC would print
a warning about the duplicate typedef.

Index: newlib/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>
	* libc/include/machine/setjmp.h [__H8300__] (_JBTYPE): Define,
	instead of typedefing jmp_buf.

Index: newlib/libc/include/machine/setjmp.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/machine/setjmp.h,v
retrieving revision 1.19
diff -u -p -r1.19 setjmp.h
--- newlib/libc/include/machine/setjmp.h 22 Jun 2004 21:54:51 -0000 1.19
+++ newlib/libc/include/machine/setjmp.h 22 Jun 2004 22:08:41 -0000
@@ -86,7 +86,7 @@ _BEGIN_STD_C
 
 #ifdef __H8300__
 #define _JBLEN 5
-typedef int jmp_buf[_JBLEN];
+#define _JBTYPE int
 #endif
 
 #ifdef __H8300H__
-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

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