Remove obsolete ARC system

ARC architecture specific files has been added ages ago in newlib/libc/sys,
but with invention of libgloss those files should be moved from newlib to
libgloss.

newlib/ChangeLog:
2015-11-12  Anton Kolesov  <Anton.Kolesov@synopsys.com>

	* configure.host: Remove ARC system.
	* libc/sys/configure: Likewise.
	* libc/sys/configure.in: Likewise.
	* libc/sys/arc/Makefile.am: Likewise.
	* libc/sys/arc/Makefile.in: Likewise.
	* libc/sys/arc/aclocal.m4: Likewise.
	* libc/sys/arc/configure: Likewise.
	* libc/sys/arc/configure.in: Likewise.
	* libc/sys/arc/crt0.S: Likewise.
	* libc/sys/arc/dummy.S: Likewise.
	* libc/sys/arc/isatty.c: Likewise.
	* libc/sys/arc/mem-layout.c: Likewise.
	* libc/sys/arc/sbrk.c: Likewise.
	* libc/sys/arc/sys/syscall.h: Likewise.
	* libc/sys/arc/syscalls.c: Likewise.
This commit is contained in:
Anton Kolesov 2015-10-23 21:23:40 +03:00 committed by Corinna Vinschen
parent 332a6236a2
commit e945a19cb2
16 changed files with 20 additions and 6618 deletions

View File

@ -1,3 +1,21 @@
2015-11-12 Anton Kolesov <Anton.Kolesov@synopsys.com>
* configure.host: Remove ARC system.
* libc/sys/configure: Likewise.
* libc/sys/configure.in: Likewise.
* libc/sys/arc/Makefile.am: Likewise.
* libc/sys/arc/Makefile.in: Likewise.
* libc/sys/arc/aclocal.m4: Likewise.
* libc/sys/arc/configure: Likewise.
* libc/sys/arc/configure.in: Likewise.
* libc/sys/arc/crt0.S: Likewise.
* libc/sys/arc/dummy.S: Likewise.
* libc/sys/arc/isatty.c: Likewise.
* libc/sys/arc/mem-layout.c: Likewise.
* libc/sys/arc/sbrk.c: Likewise.
* libc/sys/arc/sys/syscall.h: Likewise.
* libc/sys/arc/syscalls.c: Likewise.
2015-11-12 Marcus Shawcroft <marcus.shawcroft@arm.com> 2015-11-12 Marcus Shawcroft <marcus.shawcroft@arm.com>
* testsuite/lib/flags.exp (libgloss_link_flags): Drop multilibtop * testsuite/lib/flags.exp (libgloss_link_flags): Drop multilibtop

View File

@ -398,9 +398,6 @@ case "${host}" in
sys_dir=a29khif sys_dir=a29khif
signal_dir= signal_dir=
;; ;;
arc-*-*)
sys_dir=arc
;;
arm*-*-*) arm*-*-*)
sys_dir=arm sys_dir=arm
if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then

View File

@ -1,19 +0,0 @@
## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = cygnus
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
AM_CCASFLAGS = $(INCLUDES)
noinst_LIBRARIES = lib.a
lib_a_SOURCES = isatty.c mem-layout.c sbrk.c syscalls.c
EXTRA_lib_a_SOURCES = dummy.S
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
lib_a_CFLAGS = $(AM_CFLAGS)
all-local: crt0.o
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

View File

@ -1,474 +0,0 @@
# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
# Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__make_dryrun = \
{ \
am__dry=no; \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
*) \
for am__flg in $$MAKEFLAGS; do \
case $$am__flg in \
*=*|--*) ;; \
*n*) am__dry=yes; break;; \
esac; \
done;; \
esac; \
test $$am__dry = yes; \
}
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = .
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/configure $(am__configure_deps) \
$(srcdir)/../../../../mkinstalldirs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LIBRARIES = $(noinst_LIBRARIES)
ARFLAGS = cru
lib_a_AR = $(AR) $(ARFLAGS)
lib_a_LIBADD =
am_lib_a_OBJECTS = lib_a-isatty.$(OBJEXT) lib_a-mem-layout.$(OBJEXT) \
lib_a-sbrk.$(OBJEXT) lib_a-syscalls.$(OBJEXT)
lib_a_OBJECTS = $(am_lib_a_OBJECTS)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp =
am__depfiles_maybe =
CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(lib_a_SOURCES) $(EXTRA_lib_a_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
ETAGS = etags
CTAGS = ctags
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCAS = @CCAS@
CCASFLAGS = @CCASFLAGS@
CCDEPMODE = @CCDEPMODE@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
READELF = @READELF@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
aext = @aext@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
libm_machine_dir = @libm_machine_dir@
localedir = @localedir@
localstatedir = @localstatedir@
lpfx = @lpfx@
machine_dir = @machine_dir@
mandir = @mandir@
mkdir_p = @mkdir_p@
newlib_basedir = @newlib_basedir@
oext = @oext@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sys_dir = @sys_dir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = cygnus
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
AM_CCASFLAGS = $(INCLUDES)
noinst_LIBRARIES = lib.a
lib_a_SOURCES = isatty.c mem-layout.c sbrk.c syscalls.c
EXTRA_lib_a_SOURCES = dummy.S
lib_a_CCASFLAGS = $(AM_CCASFLAGS)
lib_a_CFLAGS = $(AM_CFLAGS)
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
all: all-am
.SUFFIXES:
.SUFFIXES: .S .c .o .obj
am--refresh: Makefile
@:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus'; \
$(am__cd) $(srcdir) && $(AUTOMAKE) --cygnus \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --cygnus Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
$(am__cd) $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
-rm -f lib.a
$(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
$(RANLIB) lib.a
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
.S.o:
$(CPPASCOMPILE) -c -o $@ $<
.S.obj:
$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
lib_a-dummy.o: dummy.S
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-dummy.o `test -f 'dummy.S' || echo '$(srcdir)/'`dummy.S
lib_a-dummy.obj: dummy.S
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-dummy.obj `if test -f 'dummy.S'; then $(CYGPATH_W) 'dummy.S'; else $(CYGPATH_W) '$(srcdir)/dummy.S'; fi`
.c.o:
$(COMPILE) -c $<
.c.obj:
$(COMPILE) -c `$(CYGPATH_W) '$<'`
lib_a-isatty.o: isatty.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.o `test -f 'isatty.c' || echo '$(srcdir)/'`isatty.c
lib_a-isatty.obj: isatty.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-isatty.obj `if test -f 'isatty.c'; then $(CYGPATH_W) 'isatty.c'; else $(CYGPATH_W) '$(srcdir)/isatty.c'; fi`
lib_a-mem-layout.o: mem-layout.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-mem-layout.o `test -f 'mem-layout.c' || echo '$(srcdir)/'`mem-layout.c
lib_a-mem-layout.obj: mem-layout.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-mem-layout.obj `if test -f 'mem-layout.c'; then $(CYGPATH_W) 'mem-layout.c'; else $(CYGPATH_W) '$(srcdir)/mem-layout.c'; fi`
lib_a-sbrk.o: sbrk.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sbrk.o `test -f 'sbrk.c' || echo '$(srcdir)/'`sbrk.c
lib_a-sbrk.obj: sbrk.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-sbrk.obj `if test -f 'sbrk.c'; then $(CYGPATH_W) 'sbrk.c'; else $(CYGPATH_W) '$(srcdir)/sbrk.c'; fi`
lib_a-syscalls.o: syscalls.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-syscalls.o `test -f 'syscalls.c' || echo '$(srcdir)/'`syscalls.c
lib_a-syscalls.obj: syscalls.c
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-syscalls.obj `if test -f 'syscalls.c'; then $(CYGPATH_W) 'syscalls.c'; else $(CYGPATH_W) '$(srcdir)/syscalls.c'; fi`
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
set x; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in files) print i; }; }'`; \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
check-am:
check: check-am
all-am: Makefile $(LIBRARIES) all-local
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
distclean: distclean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \
clean clean-generic clean-noinstLIBRARIES ctags distclean \
distclean-compile distclean-generic distclean-tags dvi dvi-am \
html html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
uninstall-am
all-local: crt0.o
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +0,0 @@
dnl This is the newlib/libc/sys/arc configure.in file.
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([newlib],[NEWLIB_VERSION])
AC_CONFIG_SRCDIR([isatty.c])
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(../../../..)
NEWLIB_CONFIGURE(../../..)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@ -1,75 +0,0 @@
; ARC start up file
; In the absence of a custom linker script, go with something simple.
; We do not support passing arguments to "main", but this is an embedded
; system anyway.
;
; We call init/fini here without cpu prefixes because there is always
; only one .init/.fini section per image.
.section .text
.align 4
.global start
start:
mov sp,end ; Round "sp" up to page after "end".
add sp,sp,4095
and sp,sp,-4096
ld r8,[stack_size] ; Add stack size to "sp".
add sp,sp,r8
st sp,[sbrk_start] ; Initialize malloc heap.
st sp,[sbrk_loc]
sub sp,sp,16 ; callee expects 16 bytes already "pushed".
mov fp,0 ; Top of stack frame indicator.
mov r0,edata ; Zero bss.
mov r2,end
sub r2,r2,r0
mov r1,0
#ifdef __base__
bl.nd _memset
bl.nd init ; .init section entry point.
mov r0,%st(fini) ; .fini section entry point.
bl.nd _atexit
mov r0,0 ; argc
mov r1,0 ; argv
bl.nd _main
bl.nd _exit
#endif
#ifdef __host__
bl.nd _host_memset
bl.nd init ; .init section entry point.
mov r0,%st(fini) ; .fini section entry point.
bl.nd _host_atexit
mov r0,0 ; argc
mov r1,0 ; argv
bl.nd _host_main
bl.nd _host_exit
#endif
#ifdef __graphics__
bl.nd _graphics_memset
bl.nd init ; .init section entry point.
mov r0,%st(fini) ; .fini section entry point.
bl.nd _graphics_atexit
mov r0,0 ; argc
mov r1,0 ; argv
bl.nd _graphics_main
bl.nd _graphics_exit
#endif
#ifdef __audio__
bl.nd _audio_memset
bl.nd init ; .init section entry point.
mov r0,%st(fini) ; .fini section entry point.
bl.nd _audio_atexit
mov r0,0 ; argc
mov r1,0 ; argv
bl.nd _audio_main
bl.nd _audio_exit
#endif

View File

@ -1 +0,0 @@
/* Dummy file to force .S.o suffix rule generation. */

View File

@ -1,18 +0,0 @@
/* isatty.c */
/* Dumb implementation so programs will at least run. */
#include <sys/stat.h>
#include <reent.h>
int
_isatty_r (struct _reent *ptr, int fd)
{
struct stat buf;
if (_fstat_r (ptr, fd, &buf) < 0)
return 0;
if (S_ISCHR (buf.st_mode))
return 1;
return 0;
}

View File

@ -1,21 +0,0 @@
/* Ideally this kind of stuff is specified in a linker script. It's not clear
what the default linker script should do, so for now we have this. */
/* Keep this file separate from sbrk.c so the programmer can supply his/her
own _sbrk_r. This file could go in crt0.S, but I want to keep this in C.
This is all just an experiment anyway. */
#ifndef STACK_SIZE
/* Cache lines recycle at 4096 I think, and 4096 is listed as the page size,
so we make the stack size a multiple of it. Not that it's relevant or
anything, but why not base it on *something*? */
#define STACK_SIZE (4096 * 4)
#endif
int stack_size asm ("stack_size") = STACK_SIZE;
#ifndef SBRK_SIZE
#define SBRK_SIZE (4096 * 32)
#endif
int sbrk_size asm ("sbrk_size") = SBRK_SIZE;

View File

@ -1,43 +0,0 @@
/* sbrk support */
/* The current plan is to have one sbrk handler for all cpus.
Hence use `asm' for each global variable here to avoid the cpu prefix.
We can't intrude on the user's namespace (another reason to use asm). */
#include <sys/types.h>
#include <sys/syscall.h>
#include <errno.h>
#include <stddef.h>
/* These variables are publicly accessible for debugging purposes.
The user is also free to set sbrk_size to something different.
See mem-layout.c. */
extern int sbrk_size asm ("sbrk_size");
caddr_t sbrk_start asm ("sbrk_start");
caddr_t sbrk_loc asm ("sbrk_loc");
/*caddr_t _sbrk_r (struct _reent *, size_t) asm ("__sbrk_r");*/
/* FIXME: We need a semaphore here. */
caddr_t
_sbrk_r (struct _reent *r, size_t nbytes)
{
caddr_t result;
if (
/* Ensure we don't underflow. */
sbrk_loc + nbytes < sbrk_start
/* Ensure we don't overflow. */
|| sbrk_loc + nbytes > sbrk_start + sbrk_size)
{
errno = ENOMEM;
return ((caddr_t) -1);
}
result = sbrk_loc;
sbrk_loc += nbytes;
return result;
}

View File

@ -1,53 +0,0 @@
/* ARC system call interface */
/* A special version of the flag insn is used to distinguish syscalls from
breakpoints (a breakpoint might be set at the same place).
The upper 23 bits of the argument to a flag insn are not currently used.
By convention, bit 31 is one to indicate this is a specially coded operand.
The next 15 bits (bits 30-16) can be used for software purposes.
The format isn't documented yet, so the pattern we use here may change. */
#define SYSCALL_MARKER 0x80010000
#define SYSCALL_MAGIC 0x61082300
/* Perform a system call.
If ERR is 0, it succeeded. Otherwise it is a positive value for errno. */
#define SYSCALL(op, rc, err, r0, r1, r2) \
asm volatile ( "\
mov r0,%2\n\t \
mov r1,%3\n\t \
mov r2,%4\n\t \
mov r3,%5\n\t \
mov r4,%6\n\t \
flag %7\n\t \
nop\n\t \
nop\n\t \
nop\n\t \
mov %0,r0\n\t \
mov %1,r1" \
: "=r" (rc), "=r" (err) \
: "i" (SYSCALL_MAGIC), "r" (op), "r" (r0), "r" (r1), "r" (r2), \
"i" (1 | SYSCALL_MARKER) \
: "r0", "r1", "r2", "r3", "r4");
#define SYS_exit 1
#define SYS_open 2
#define SYS_close 3
#define SYS_read 4
#define SYS_write 5
#define SYS_lseek 6
#define SYS_link 7
#define SYS_unlink 8
#define SYS_chdir 9
#define SYS_chmod 10
#define SYS_stat 11
#define SYS_fstat 12
#define SYS_access 13
#define SYS_getpid 14
#define SYS_kill 15
#define SYS_time 16
#define SYS_MAX 17

View File

@ -1,131 +0,0 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <_ansi.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <reent.h>
_ssize_t
_read_r (struct _reent *r, int fd, void *buf, size_t nbytes)
{
int err;
_ssize_t rc;
SYSCALL (SYS_read, rc, err, fd, buf, nbytes);
if (err)
__errno_r (r) = err;
return rc;
}
_ssize_t
_write_r (struct _reent *r, int fd, const void *buf, size_t nbytes)
{
int err;
_ssize_t rc;
SYSCALL (SYS_write, rc, err, fd, buf, nbytes);
if (err)
__errno_r (r) = err;
return rc;
}
/* FIXME: The prototype in <fcntl.h> for open() uses ...,
but reent.h uses int. */
int
_open_r (struct _reent *r, const char *buf, int flags, int mode)
{
int rc,err;
#if 0
int mode;
va_list ap;
va_start (ap, flags);
mode = va_arg (ap, int);
va_end (ap);
#endif
SYSCALL (SYS_open, rc, err, buf, flags, mode);
if (err)
__errno_r (r) = err;
return rc;
}
int
_close_r (struct _reent *r, int fd)
{
int rc,err;
SYSCALL (SYS_close, rc, err, fd, 0, 0);
if (err)
__errno_r (r) = err;
return rc;
}
off_t
_lseek_r (struct _reent *r, int fd, off_t offset, int whence)
{
int err;
off_t rc;
SYSCALL (SYS_lseek, rc, err, fd, offset, whence);
if (err)
__errno_r (r) = err;
return rc;
}
int
_fstat_r (struct _reent *r, int fd, struct stat *buf)
{
int rc,err;
SYSCALL (SYS_fstat, rc, err, fd, buf, 0);
if (err)
__errno_r (r) = err;
return rc;
}
/* FIXME: Shouldn't this be _exit_r? */
void
_exit (int ret)
{
int rc,err;
SYSCALL (SYS_exit, rc, err, ret, 0, 0);
/* If that failed, use an infinite loop. */
while (1)
continue;
}
time_t
_time (time_t *timer)
{
return 0;
}
int
_creat_r (struct _reent *r, const char *path, int mode)
{
return _open_r (r, path, O_CREAT | O_TRUNC, mode);
}
int
_getpid_r (struct _reent *r)
{
return 42;
}
int
_kill_r (struct _reent *r, int pid, int sig)
{
int rc,err;
SYSCALL (SYS_kill, rc, err, pid, sig, 0);
if (err)
__errno_r (r) = err;
return rc;
}

View File

@ -786,7 +786,6 @@ LIBS
CPPFLAGS CPPFLAGS
CPP' CPP'
ac_subdirs_all='a29khif ac_subdirs_all='a29khif
arc
arm arm
d10v d10v
decstation decstation
@ -11456,7 +11455,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 11459 "configure" #line 11458 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -11562,7 +11561,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 11565 "configure" #line 11564 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
@ -11806,8 +11805,6 @@ if test -n "${sys_dir}"; then
a29khif) a29khif)
subdirs="$subdirs a29khif" subdirs="$subdirs a29khif"
;;
arc) subdirs="$subdirs arc"
;; ;;
arm) subdirs="$subdirs arm" arm) subdirs="$subdirs arm"
;; ;;

View File

@ -23,7 +23,6 @@ fi
if test -n "${sys_dir}"; then if test -n "${sys_dir}"; then
case ${sys_dir} in case ${sys_dir} in
a29khif) AC_CONFIG_SUBDIRS(a29khif) ;; a29khif) AC_CONFIG_SUBDIRS(a29khif) ;;
arc) AC_CONFIG_SUBDIRS(arc) ;;
arm) AC_CONFIG_SUBDIRS(arm) ;; arm) AC_CONFIG_SUBDIRS(arm) ;;
d10v) AC_CONFIG_SUBDIRS(d10v) ;; d10v) AC_CONFIG_SUBDIRS(d10v) ;;
decstation) AC_CONFIG_SUBDIRS(decstation) ;; decstation) AC_CONFIG_SUBDIRS(decstation) ;;