reset newlib for diff

This commit is contained in:
2024-03-29 20:36:27 +01:00
parent 967aa1d3df
commit 1e18b5f245
9 changed files with 1589 additions and 1690 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -779,8 +779,6 @@ HAVE_LIBC_SYS_XTENSA_DIR_FALSE
HAVE_LIBC_SYS_XTENSA_DIR_TRUE
HAVE_LIBC_SYS_W65_DIR_FALSE
HAVE_LIBC_SYS_W65_DIR_TRUE
HAVE_LIBC_SYS_OS3_DIR_FALSE
HAVE_LIBC_SYS_OS3_DIR_TRUE
HAVE_LIBC_SYS_TIRTOS_DIR_FALSE
HAVE_LIBC_SYS_TIRTOS_DIR_TRUE
HAVE_LIBC_SYS_TIC80_DIR_FALSE
@@ -5513,13 +5511,6 @@ fi
else
HAVE_LIBC_SYS_W65_DIR_TRUE='#'
HAVE_LIBC_SYS_W65_DIR_FALSE=
fi
if test "${sys_dir}" = os3; then
HAVE_LIBC_SYS_OS3_DIR_TRUE=
HAVE_LIBC_SYS_OS3_DIR_FALSE='#'
else
HAVE_LIBC_SYS_OS3_DIR_TRUE='#'
HAVE_LIBC_SYS_OS3_DIR_FALSE=
fi
if test "${sys_dir}" = xtensa; then
HAVE_LIBC_SYS_XTENSA_DIR_TRUE=
@@ -7708,10 +7699,6 @@ if test -z "${HAVE_LIBC_SYS_W65_DIR_TRUE}" && test -z "${HAVE_LIBC_SYS_W65_DIR_F
as_fn_error $? "conditional \"HAVE_LIBC_SYS_W65_DIR\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_LIBC_SYS_OS3_DIR_TRUE}" && test -z "${HAVE_LIBC_SYS_OS3_DIR_FALSE}"; then
as_fn_error $? "conditional \"HAVE_LIBC_SYS_OS#_DIR\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${HAVE_LIBC_SYS_XTENSA_DIR_TRUE}" && test -z "${HAVE_LIBC_SYS_XTENSA_DIR_FALSE}"; then
as_fn_error $? "conditional \"HAVE_LIBC_SYS_XTENSA_DIR\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5

View File

@@ -426,9 +426,6 @@ fi
# THIS TABLE IS ALPHA SORTED. KEEP IT THAT WAY.
case "${host}" in
*-*-os3*)
sys_dir=os3
;;
*-*-cygwin*)
posix_dir=posix
xdr_dir=xdr

View File

@@ -25,7 +25,6 @@ m4_foreach_w([SYS_DIR], [
w65
xtensa
z8ksim
os3
], [AM_CONDITIONAL([HAVE_LIBC_SYS_]m4_toupper(SYS_DIR)[_DIR], test "${sys_dir}" = SYS_DIR)])
AC_TYPE_LONG_DOUBLE

View File

@@ -70,6 +70,3 @@ endif
if HAVE_LIBC_SYS_Z8KSIM_DIR
include %D%/z8ksim/Makefile.inc
endif
if HAVE_LIBC_SYS_OS3_DIR
include %D%/os3/Makefile.inc
endif

View File

@@ -1 +0,0 @@
libc_a_SOURCES += %D%/crt0.c %D%/syscalls.c

View File

@@ -1,9 +0,0 @@
#include <fcntl.h>
extern void exit(int code);
extern int main ();
void _start() {
int ex = main();
exit(ex);
}

View File

@@ -1,29 +0,0 @@
/* note these headers are all provided by newlib - you don't need to provide them */
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/times.h>
#include <sys/errno.h>
#include <sys/time.h>
#include <stdio.h>
void _exit(){}
int close(int file){}
char **environ; /* pointer to array of char * strings that define the current environment variables */
int execve(char *name, char **argv, char **env){}
int fork(){}
int fstat(int file, struct stat *st){}
int getpid(){}
int isatty(int file){}
int kill(int pid, int sig){}
int link(char *old, char *new){}
int lseek(int file, int ptr, int dir){}
int open(const char *name, int flags, ...){}
int read(int file, char *ptr, int len){}
caddr_t sbrk(int incr){}
int stat(const char *file, struct stat *st){}
clock_t times(struct tms *buf){}
int unlink(char *name){}
int wait(int *status){}
int write(int file, char *ptr, int len){}
int gettimeofday(struct timeval * restrict p, void * restrict z){}