[PATCH] Allow i786 variant

J. Johnston jjohnstn@redhat.com
Tue Jun 3 00:50:00 GMT 2003


Patch checked in after regenerating configure and Makefile.in and adding
to ChangeLog.

-- Jeff J.

Kelley Cook wrote:
> Hello,
> 
> This small patch allows i786-*-* to be used as a machine type.
> 
> A similar patch has already been accepted for the toplevel, libiberty
> and binutils.
> 
> With this patch (as well as a pending patch to config.sub) I was able to
> compile newlib for "pentium4-pc-cygwin" with no issues.
> 
> If accepted, please install this as I do not have write privledges.
> 
> Kelley Cook
> 
> 
> ------------------------------------------------------------------------
> 
> 2003-05-30  Kelley Cook  <kelleycook@wideopenwest.com>
> 
> 	* configure.host:  Allow i[34567]86 variant.
> 	* confifure.in: Likewise.
> 	* README: Likewise to the docs.
> 
> diff -upr cygwin-snapshot-20030529-1/newlib/README cygwin-snapshot/newlib/README
> --- cygwin-snapshot-20030529-1/newlib/README	2002-12-20 23:39:49.000000000 -0500
> +++ cygwin-snapshot/newlib/README	2003-05-30 10:07:42.000000000 -0400
> @@ -275,7 +275,7 @@ Shared newlib
>  =============
>  
>  newlib uses libtool when it is being compiled natively (with
> ---target=i[3456]86-pc-linux-gnu) on an i[3456]86-pc-linux-gnu
> +--target=i[34567]86-pc-linux-gnu) on an i[34567]86-pc-linux-gnu
>  host. This allows newlib to be compiled as a shared library.
>  
>  To configure newlib, do the following from your build directory:
> @@ -283,12 +283,12 @@ To configure newlib, do the following fr
>  $(source_dir)/src/configure --with-newlib --prefix=$(install_dir)
>  
>  configure will recognize that host == target ==
> -i[3456]86-pc-linux-gnu, so it will tell newlib to compile itself using
> +i[34567]86-pc-linux-gnu, so it will tell newlib to compile itself using
>  libtool. By default, libtool will build shared and static versions of
>  newlib.
>  
>  To compile a program against shared newlib, do the following (where
> -target_install_dir = $(install_dir)/i[3456]86-pc-linux-gnu):
> +target_install_dir = $(install_dir)/i[34567]86-pc-linux-gnu):
>  
>  gcc -nostdlib $(target_install_dir)/lib/crt0.o progname.c -I $(target_install_dir)/include -L $(target_install_dir)/lib -lc -lm -lgcc
>  
> diff -upr cygwin-snapshot-20030529-1/newlib/configure.host cygwin-snapshot/newlib/configure.host
> --- cygwin-snapshot-20030529-1/newlib/configure.host	2003-05-12 17:58:09.000000000 -0400
> +++ cygwin-snapshot/newlib/configure.host	2003-05-30 10:09:32.000000000 -0400
> @@ -115,7 +115,7 @@ case "${host_cpu}" in
>    i960)
>  	machine_dir=i960
>  	;;
> -  i[3456]86)
> +  i[34567]86)
>  	# Don't use for these since they provide their own setjmp.
>  	case ${host} in
>  	*-*-sco* | *-*-cygwin*) 
> @@ -242,7 +242,7 @@ fi
>  
>  if [ "x${newlib_mb}" = "x" ]; then
>  	case "${host}" in
> -  	  i[3456]86-pc-linux-*|*-*-cygwin*)
> +  	  i[34567]86-pc-linux-*|*-*-cygwin*)
>  		newlib_mb=yes
>  	  	;;
>  	esac
> @@ -269,7 +269,7 @@ fi
>  # support shared libraries.  This is because it adds executable tests which
>  # we don't want for most embedded platforms.
>  case "${host}" in
> -  i[3456]86-pc-linux-*)
> +  i[34567]86-pc-linux-*)
>      use_libtool=yes
>      have_sys_mach_dir=yes
>      stdio64_dir=stdio64
> @@ -334,11 +334,11 @@ case "${host}" in
>    h8500-*-elf*)
>  	sys_dir=h8500hms
>  	;;
> -  i[3456]86-*-sco*)
> +  i[34567]86-*-sco*)
>  	sys_dir=sysvi386
>  	unix_dir=unix
>  	;;
> -  i[3456]86-pc-linux-*)
> +  i[34567]86-pc-linux-*)
>  	sys_dir=linux
>  	unix_dir=unix
>  	posix_dir=posix
> @@ -509,10 +509,10 @@ case "${host}" in
>  	syscall_dir=syscalls	
>  	newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
>  	;;	
> -  i[3456]86-*-sco*)
> +  i[34567]86-*-sco*)
>  	newlib_cflags="${newlib_cflags} -DSIGNAL_PROVIDED -DHAVE_FCNTL"
>  	;;
> -  i[3456]86-*-netware*)
> +  i[34567]86-*-netware*)
>  	newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES -DNO_EXEC -DABORT_PROVIDED -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DHAVE_FCNTL"
>  	;;
>    m32r-*-*)
> diff -upr cygwin-snapshot-20030529-1/newlib/configure.in cygwin-snapshot/newlib/configure.in
> --- cygwin-snapshot-20030529-1/newlib/configure.in	2003-05-28 19:45:59.000000000 -0400
> +++ cygwin-snapshot/newlib/configure.in	2003-05-30 10:08:24.000000000 -0400
> @@ -52,7 +52,7 @@ AM_CONDITIONAL(HAVE_DOC, test x$have_doc
>  
>  EXTRA_DIRS=
>  case $host in
> -  i[3456]86-pc-linux-*)
> +  i[[34567]]86-pc-linux-*)
>  	configdirs="${configdirs} iconvdata"
>  	EXTRA_DIRS=iconvdata
>  	;;




More information about the Newlib mailing list