mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-27 12:57:21 +00:00
re-merge newlib
This commit is contained in:
parent
5420e7d4ce
commit
3b0ef808de
@ -746,6 +746,11 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
|
|||||||
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES"
|
newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES"
|
||||||
syscall_dir=
|
syscall_dir=
|
||||||
;;
|
;;
|
||||||
|
m68k-apple-macos)
|
||||||
|
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DMALLOC_PROVIDED"
|
||||||
|
newlib_cflags="${newlib_cflags} -ffunction-sections"
|
||||||
|
syscall_dir=syscalls
|
||||||
|
;;
|
||||||
mcore-*-*)
|
mcore-*-*)
|
||||||
syscall_dir=syscalls
|
syscall_dir=syscalls
|
||||||
;;
|
;;
|
||||||
@ -813,6 +818,11 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
|
|||||||
riscv*-*-*)
|
riscv*-*-*)
|
||||||
syscall_dir=syscalls
|
syscall_dir=syscalls
|
||||||
;;
|
;;
|
||||||
|
powerpc-*-macos)
|
||||||
|
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -DMALLOC_PROVIDED"
|
||||||
|
newlib_cflags="${newlib_cflags} -ffunction-sections"
|
||||||
|
syscall_dir=syscalls
|
||||||
|
;;
|
||||||
sh*-*-*)
|
sh*-*-*)
|
||||||
default_newlib_io_long_long="yes"
|
default_newlib_io_long_long="yes"
|
||||||
syscall_dir=syscalls
|
syscall_dir=syscalls
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
#include <machine/ieeefp.h> /* floating point macros */
|
#include <machine/ieeefp.h> /* floating point macros */
|
||||||
#include <sys/features.h> /* POSIX defs */
|
#include <sys/features.h> /* POSIX defs */
|
||||||
|
|
||||||
|
#ifdef __aarch64__
|
||||||
|
#define MALLOC_ALIGNMENT 16
|
||||||
|
#endif
|
||||||
|
|
||||||
/* exceptions first */
|
/* exceptions first */
|
||||||
#if defined(__H8500__) || defined(__W65__)
|
#if defined(__H8500__) || defined(__W65__)
|
||||||
#define __SMALL_BITFIELDS
|
#define __SMALL_BITFIELDS
|
||||||
@ -71,6 +75,10 @@
|
|||||||
#define _POINTER_INT short
|
#define _POINTER_INT short
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__m68k__) || defined(__mc68000__) || defined(__riscv)
|
||||||
|
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ___AM29K__
|
#ifdef ___AM29K__
|
||||||
#define _FLOAT_RET double
|
#define _FLOAT_RET double
|
||||||
#endif
|
#endif
|
||||||
@ -84,7 +92,6 @@
|
|||||||
/* we want the reentrancy structure to be returned by a function */
|
/* we want the reentrancy structure to be returned by a function */
|
||||||
#define __DYNAMIC_REENT__
|
#define __DYNAMIC_REENT__
|
||||||
#define HAVE_GETDATE
|
#define HAVE_GETDATE
|
||||||
#define _HAVE_SYSTYPES
|
|
||||||
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
||||||
#define __LARGE64_FILES 1
|
#define __LARGE64_FILES 1
|
||||||
/* we use some glibc header files so turn on glibc large file feature */
|
/* we use some glibc header files so turn on glibc large file feature */
|
||||||
@ -141,6 +148,22 @@
|
|||||||
#define __BUFSIZ__ 16
|
#define __BUFSIZ__ 16
|
||||||
#define _REENT_SMALL
|
#define _REENT_SMALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined __MSP430__
|
||||||
|
#ifndef _REENT_SMALL
|
||||||
|
#define _REENT_SMALL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define __BUFSIZ__ 256
|
||||||
|
#define __SMALL_BITFIELDS
|
||||||
|
|
||||||
|
#ifdef __MSP430X_LARGE__
|
||||||
|
#define _POINTER_INT long
|
||||||
|
#else
|
||||||
|
#define _POINTER_INT int
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __m32c__
|
#ifdef __m32c__
|
||||||
#define __SMALL_BITFIELDS
|
#define __SMALL_BITFIELDS
|
||||||
#undef INT_MAX
|
#undef INT_MAX
|
||||||
@ -162,6 +185,10 @@
|
|||||||
#define __CUSTOM_FILE_IO__
|
#define __CUSTOM_FILE_IO__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__or1k__) || defined(__or1knd__)
|
||||||
|
#define __DYNAMIC_REENT__
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This block should be kept in sync with GCC's limits.h. The point
|
/* This block should be kept in sync with GCC's limits.h. The point
|
||||||
of having these definitions here is to not include limits.h, which
|
of having these definitions here is to not include limits.h, which
|
||||||
would pollute the user namespace, while still using types of the
|
would pollute the user namespace, while still using types of the
|
||||||
@ -205,20 +232,16 @@
|
|||||||
|
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
#include <cygwin/config.h>
|
#include <cygwin/config.h>
|
||||||
#if !defined (__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L)
|
|
||||||
#define __USE_XOPEN2K 1
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__rtems__)
|
#if defined(__rtems__)
|
||||||
#define __FILENAME_MAX__ 255
|
#define __FILENAME_MAX__ 255
|
||||||
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
||||||
|
#define __DYNAMIC_REENT__
|
||||||
|
#define _REENT_GLOBAL_ATEXIT
|
||||||
|
#define _REENT_GLOBAL_STDIO_STREAMS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define _READ_WRITE_BUFSIZE_TYPE unsigned long
|
|
||||||
#define _READ_WRITE_RETURN_TYPE _ssize_t
|
|
||||||
|
|
||||||
#ifndef __EXPORT
|
#ifndef __EXPORT
|
||||||
#define __EXPORT
|
#define __EXPORT
|
||||||
#endif
|
#endif
|
||||||
@ -233,6 +256,12 @@
|
|||||||
#ifndef _READ_WRITE_RETURN_TYPE
|
#ifndef _READ_WRITE_RETURN_TYPE
|
||||||
#define _READ_WRITE_RETURN_TYPE int
|
#define _READ_WRITE_RETURN_TYPE int
|
||||||
#endif
|
#endif
|
||||||
|
/* Define `count' parameter of read/write routines. In POSIX, the `count'
|
||||||
|
parameter is "size_t" but legacy newlib code has been using "int" for some
|
||||||
|
time. If not specified, "int" is defaulted. */
|
||||||
|
#ifndef _READ_WRITE_BUFSIZE_TYPE
|
||||||
|
#define _READ_WRITE_BUFSIZE_TYPE int
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __WCHAR_MAX__
|
#ifndef __WCHAR_MAX__
|
||||||
#if __INT_MAX__ == 32767 || defined (_WIN32)
|
#if __INT_MAX__ == 32767 || defined (_WIN32)
|
||||||
@ -248,6 +277,18 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WANT_REENT_GLOBAL_STDIO_STREAMS
|
||||||
|
#ifndef _REENT_GLOBAL_STDIO_STREAMS
|
||||||
|
#define _REENT_GLOBAL_STDIO_STREAMS
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WANT_USE_LONG_TIME_T
|
||||||
|
#ifndef _USE_LONG_TIME_T
|
||||||
|
#define _USE_LONG_TIME_T
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If _MB_EXTENDED_CHARSETS_ALL is set, we want all of the extended
|
/* If _MB_EXTENDED_CHARSETS_ALL is set, we want all of the extended
|
||||||
charsets. The extended charsets add a few functions and a couple
|
charsets. The extended charsets add a few functions and a couple
|
||||||
of tables of a few K each. */
|
of tables of a few K each. */
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/* Place holder for future configuration information. */
|
|
Loading…
Reference in New Issue
Block a user