This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: h8sx support added to h8300 port
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: newlib at sources dot redhat dot com
- Date: 22 Jun 2004 19:10:39 -0300
- Subject: Re: h8sx support added to h8300 port
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <orisdl9l0r.fsf@livre.redhat.lsd.ic.unicamp.br><40D71C77.3050105@redhat.com>
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}