newlib: iq2000 port
J. Johnston
jjohnstn@redhat.com
Tue Jun 10 17:49:00 GMT 2003
Anthony Green wrote:
> On Fri, 2003-06-06 at 08:39, J. Johnston wrote:
>
>>You are missing the implementation of setjmp/longjmp. Traditionally, this is done in the
>>libc/machine/xxxx directory which you are not adding.
>
>
> Thanks. Here's take 2. Ok?
>
Yes, please go ahead and commit the patch.
-- Jeff J.
> 2003-06-05 Stan Cox <scox@redhat.com>
> Anthony Green <green@redhat.com>
>
> * configure.host: Add iq2000 support.
> * newlib/libc/include/machine/ieeefp.h: Ditto.
> * newlib/libc/include/machine/setjmp.h: Ditto.
> * libc/machine/iq2000/setjmp.S,
> libc/machine/iq2000/aclocal.m4,
> libc/machine/iq2000/configure,
> libc/machine/iq2000/configure.in, libc/machine/iq2000/Makefile.am,
> libc/machine/iq2000/Makefile.in: New files.
>
> Index: configure.host
> ===================================================================
> RCS file: /cvs/src/src/newlib/configure.host,v
> retrieving revision 1.50
> diff -c -r1.50 configure.host
> *** configure.host 30 May 2003 21:47:40 -0000 1.50
> --- configure.host 6 Jun 2003 05:42:58 -0000
> ***************
> *** 131,136 ****
> --- 131,138 ----
> ;;
> ia64*)
> ;;
> + iq2000)
> + machine_dir=iq2000
> + ;;
> m32r*)
> machine_dir=m32r
> ;;
> ***************
> *** 515,520 ****
> --- 517,526 ----
> i[34567]86-*-netware*)
> newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC
> -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL"
> ;;
> + iq2000*)
> + syscall_dir=syscalls
> + newlib_cflags="${newlib_cflags} -DWANT_PRINTF_LONG_LONG"
> + ;;
> m32r-*-*)
> # Pass -msdata=sdata so _impure_ptr goes in .sdata.
> # We don't generate sda relocs however for upward compatibility.
> Index: libc/include/machine/ieeefp.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/machine/ieeefp.h,v
> retrieving revision 1.17
> diff -c -r1.17 ieeefp.h
> *** libc/include/machine/ieeefp.h 20 Feb 2003 19:14:12 -0000 1.17
> --- libc/include/machine/ieeefp.h 6 Jun 2003 05:42:58 -0000
> ***************
> *** 234,239 ****
> --- 234,243 ----
> #define _DOUBLE_IS_32BITS
> #endif
>
> + #ifdef __iq2000__
> + #define __IEEE_BIG_ENDIAN
> + #endif
> +
> #ifdef __MAVERICK__
> #ifdef __ARMEL__
> # define __IEEE_LITTLE_ENDIAN
> Index: libc/include/machine/setjmp.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/machine/setjmp.h,v
> retrieving revision 1.14
> diff -c -r1.14 setjmp.h
> *** libc/include/machine/setjmp.h 10 Dec 2002 19:46:49 -0000 1.14
> --- libc/include/machine/setjmp.h 6 Jun 2003 05:42:58 -0000
> ***************
> *** 167,172 ****
> --- 167,176 ----
> #define _JBLEN 10
> #endif
>
> + #ifdef __iq2000__
> + #define _JBLEN 32
> + #endif
> +
> #ifdef __mcore__
> #define _JBLEN 16
> #endif
>
>
>
More information about the Newlib
mailing list