Remove configure code handling old ARM aliases from newlib
Joseph S. Myers
joseph@codesourcery.com
Thu Jun 9 12:50:00 GMT 2011
Similar to changes made elsewhere in the toolchain, this patch removes
newlib configure code handling obsolete ep9312-*, xscale-*, thumb-*
and strongarm-* target names for ARM targets.
With current config.sub, xscale-*, thumb-* and strongarm-* never
appear in canonical triplets because they are always mapped to arm-*
targets. ep9312-* is rejected by config.sub completely (I don't know
if it was ever accepted, but it hasn't been accepted for a long time,
and all these target triplets have also been obsolete in GCC for a
long time) so code for that target name is also dead and can be
removed.
This patch does not touch libgloss/arm/coff-redboot.ld, which has a
SEARCH_DIR(/toolbin/xscale-coff/lib) directive (hardcoding not just an
obsolete target name but one particular installation directory) and
does not do anything about the newlib/libc/machine/xscale directory
(which will not be used for any target since there are no xscale*
canonical target triplets).
OK to commit?
libgloss:
2011-06-08 Joseph Myers <joseph@codesourcery.com>
* configure.in: Don't handle strongarm, ep9312 and xscale target
names.
* configure: Regenerate.
* libnosys/configure.in: Don't handle strongarm and thumb target
names.
* libnosys/configure: Regenerate.
newlib:
2011-06-08 Joseph Myers <joseph@codesourcery.com>
* configure.host: Don't handle ep9312, strongarm, xscale and thumb
target names.
* libc/machine/configure.in: Don't handle xscale target names.
* libc/machine/configure: Regenerate.
Index: libgloss/configure.in
===================================================================
RCS file: /cvs/src/src/libgloss/configure.in,v
retrieving revision 1.31
diff -u -r1.31 configure.in
--- libgloss/configure.in 2 Dec 2010 19:35:47 -0000 1.31
+++ libgloss/configure.in 8 Jun 2011 15:06:52 -0000
@@ -124,7 +124,7 @@
rx*-*-elf)
AC_CONFIG_SUBDIRS([rx])
;;
- strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
+ arm*-*-elf | arm*-*-coff | arm-*-*)
AC_CONFIG_SUBDIRS([arm])
;;
spu-*-elf)
Index: libgloss/libnosys/configure.in
===================================================================
RCS file: /cvs/src/src/libgloss/libnosys/configure.in,v
retrieving revision 1.10
diff -u -r1.10 configure.in
--- libgloss/libnosys/configure.in 23 Jul 2010 17:52:36 -0000 1.10
+++ libgloss/libnosys/configure.in 8 Jun 2011 15:06:52 -0000
@@ -49,8 +49,6 @@
;;
arm-*-*)
;;
- strongarm-*-*)
- ;;
bfin-*-*)
;;
cris-*-* | crisv32-*-*)
@@ -77,10 +75,6 @@
;;
sparc64-*-*)
;;
- thumb-*-pe)
- ;;
- thumb-*-*)
- ;;
v850*-*-*)
;;
w65-*-*)
Index: newlib/configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.120
diff -u -r1.120 configure.host
--- newlib/configure.host 12 Jan 2011 22:24:06 -0000 1.120
+++ newlib/configure.host 8 Jun 2011 15:06:52 -0000
@@ -122,9 +122,6 @@
d30v*)
machine_dir=d30v
;;
- ep9312)
- machine_dir=arm
- ;;
fido)
machine_dir=m68k
newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
@@ -242,15 +239,6 @@
# FIXME: Might wish to make MALLOC_ALIGNMENT more generic.
newlib_cflags="${newlib_cflags} -DMALLOC_ALIGNMENT=8"
;;
- strongarm)
- machine_dir=arm
- ;;
- xscale)
- machine_dir=xscale
- ;;
- thumb)
- machine_dir=arm
- ;;
tic4x|c4x)
machine_dir=tic4x
;;
@@ -393,12 +381,6 @@
d30v*)
sys_dir=
;;
- ep9312-*-*)
- sys_dir=arm
- if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
- have_crt0="no"
- fi
- ;;
frv*)
sys_dir=
;;
@@ -495,18 +477,6 @@
default_newlib_io_long_long="yes"
default_newlib_atexit_dynamic_alloc="no"
;;
- strongarm-*-*)
- sys_dir=arm
- if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
- have_crt0="no"
- fi
- ;;
- thumb-*-*)
- sys_dir=arm
- if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
- have_crt0="no"
- fi
- ;;
tic6x*)
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
have_crt0="no"
@@ -529,12 +499,6 @@
w65-*-*)
sys_dir=w65
;;
- xscale-*-*)
- sys_dir=arm
- if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
- have_crt0="no"
- fi
- ;;
z8k-*-coff)
sys_dir=z8ksim
;;
@@ -596,7 +560,6 @@
# to create the program's environment.
# If --disable-newlib-supplied-syscalls is specified, then the end-user
# may specify the protocol via gcc spec files supplied by libgloss.
-# See also thumb below.
if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
# newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
@@ -631,12 +594,6 @@
newlib_cflags="${newlib_cflags} -DABORT_MESSAGE -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
syscall_dir=
;;
- ep9312-*-*)
- syscall_dir=syscalls
- if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
- newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
- fi
- ;;
fido-*-elf)
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES"
syscall_dir=
@@ -760,27 +717,6 @@
newlib_cflags="${newlib_cflags} -DTARGET_PTR_SIZE=64" ;;
esac
;;
- strongarm-*-*)
- syscall_dir=syscalls
- ;;
- thumb-*-pe)
- syscall_dir=syscalls
-# Don't use the debugging protocols just yet.
- ;;
- thumb-*-*)
- syscall_dir=syscalls
-# If newlib is supplying syscalls, select which debug protocol is being used.
-# ARM_RDP_MONITOR selects the Demon monitor.
-# ARM_RDI_MONITOR selects the Angel monitor.
-# If neither are defined, then hard coded defaults will be used
-# to create the program's environment.
-# If --disable-newlib-supplied-syscalls is specified, then the end-user
-# may specify the protocol via gcc spec files supplied by libgloss.
- if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
-# newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
- newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
- fi
- ;;
tic6x*)
syscall_dir=
newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED"
@@ -798,13 +734,6 @@
xc16x-*)
syscall_dir=syscalls
;;
- xscale-*-*)
- syscall_dir=syscalls
- newlib_cflags="${newlib_cflags} -DHAVE_SYSTEM -DHAVE_RENAME"
- if [ "x${newlib_may_supply_syscalls}" = "xyes" ] ; then
- newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
- fi
- ;;
xstormy16-*-*)
syscall_dir=syscalls
;;
Index: newlib/libc/machine/configure.in
===================================================================
RCS file: /cvs/src/src/newlib/libc/machine/configure.in,v
retrieving revision 1.17
diff -u -r1.17 configure.in
--- newlib/libc/machine/configure.in 2 Dec 2010 19:30:47 -0000 1.17
+++ newlib/libc/machine/configure.in 8 Jun 2011 15:06:53 -0000
@@ -65,7 +65,6 @@
w65) AC_CONFIG_SUBDIRS(w65) ;;
x86_64) AC_CONFIG_SUBDIRS(x86_64) ;;
xc16x) AC_CONFIG_SUBDIRS(xc16x) ;;
- xscale) AC_CONFIG_SUBDIRS(xscale) ;;
xstormy16) AC_CONFIG_SUBDIRS(xstormy16) ;;
z8k) AC_CONFIG_SUBDIRS(z8k) ;;
esac;
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Newlib
mailing list