[PATCH]: Newlib port for 68hc11/68hc12

Stephane Carrez stcarrez@nerim.fr
Thu Jul 18 13:25:00 GMT 2002

Hi Jeff,

J. Johnston wrote:

> A couple of minor problems.
> 1. I just fixed sys/config.h and machine/ieeefp.h so that you only specify floating
>    point macros in machine/ieeefp.h.  sys/config.h now includes machine/ieeefp.h

Ok, I cleaned up the includes.

> 2. All those redefines of I/O routines in sys/config.h is ugly.  What end behavior are
>    you trying to accomplish?  Are you aware of the NO_FLOATING_POINT flag
>    which is triggered via the --disable-newlib-io-float configuration option?  You can
>    also set this flag on in your default newlib_cflags setting in configure.host.
>    If it doesn't meet your needs, I'm sure we can come up with a design that can be triggered
>    via a single configuration value in configure.host or a single flag in sys/config.h with
>    some additional changes in libc/stdio.
> -- Jeff J.
Ok, I'll use --disable option.

Below is the revised patch.


2002-07-18  Stephane Carrez  <stcarrez@nerim.fr>

	* configure.host: Recognize m6811-elf and m6812-elf targets.
	* libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12.
	* libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11.
	 (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double.
	* libc/include/sys/config.h (INT_MAX, UINT_MAX): Define
	according to __INT_MAX__.
	(_POINTER_INT): Define to short.
	* libc/machine/m68hc11/Makefile.am: New file.
	* libc/machine/m68hc11/Makefile.in: Generate.
	* libc/machine/m68hc11/configure.in: New file.
	* libc/machine/m68hc11/configure: Generate.
	* libc/machine/m68hc11/aclocal.m4: New file.
	* libc/machine/m68hc11/setjmp.S: New file.
	* libc/sys/m68hc11/Makefile.am: New file.
	* libc/sys/m68hc11/Makefile.in: Generate.
	* libc/sys/m68hc11/configure.in: New file.
	* libc/sys/m68hc11/configure: Generate.
	* libc/sys/m68hc11/aclocal.m4: New file.
	* libc/sys/m68hc11/crt0.S: New file (from gcc/config/m68hc11).
	* libc/sys/m68hc11/sci-inout.S: New file.
	* libc/sys/m68hc11/syscalls.c: New file.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-m68hc11.diffs
URL: <http://sourceware.org/pipermail/newlib/attachments/20020718/6102ca16/attachment.ksh>

More information about the Newlib mailing list