Compare commits
60 Commits
sh3port_de
...
sh3port
Author | SHA1 | Date |
---|---|---|
Memallox | b27b8de827 | |
Memallox | 044e1e61aa | |
Memallox | b3a1029f71 | |
Memallox | 0ff0769612 | |
Memallox | e69da8b4e2 | |
Memallox | ce937c71e5 | |
Memallox | 13d72bd601 | |
Memallox | c1c7c8d46b | |
Memallox | c62afb7008 | |
Memallox | 00a813c879 | |
Memallox | adc05ff66f | |
Memallox | 33212d2dd0 | |
Memallox | d5619f065a | |
Memallox | e48bf17efe | |
Memallox | f92ef41904 | |
Christophe Lyon | 4f7a6c326a | |
Sebastian Huber | 103b055035 | |
Sebastian Huber | ab4fdab5d5 | |
Sebastian Huber | 738fdc6a42 | |
Sebastian Huber | da418955f5 | |
Sebastian Huber | 61fc64ed97 | |
Sebastian Huber | d3d838cc26 | |
Corinna Vinschen | 256f1171ac | |
Corinna Vinschen | 35555851d7 | |
Corinna Vinschen | 682c4a9f1e | |
Corinna Vinschen | 323b48b975 | |
Corinna Vinschen | 9479563e48 | |
Sebastian Huber | 201bbec6e4 | |
Christophe Lyon | b6ba19e355 | |
Christophe Lyon | 8a7536e91d | |
Christophe Lyon | f53ce01125 | |
Christophe Lyon | 9edf0810db | |
Christophe Lyon | 3878d82a2b | |
Wilco Dijkstra | 71e187bc07 | |
Jeff Johnston | 9feedf23db | |
Szabolcs Nagy | 877a386d76 | |
Hans-Peter Nilsson | e3ddbeb84c | |
Hans-Peter Nilsson | a6837ca34f | |
Corinna Vinschen | d83404e418 | |
Corinna Vinschen | 7a720bfe08 | |
Corinna Vinschen | 60471176fd | |
Jon Beniston | bd993df0e6 | |
Keith Packard | 77f8a6dfab | |
Keith Packard | 3b6994ec5f | |
Keith Packard | 28ecec475f | |
Keith Packard | 81e0841dbc | |
Szabolcs Nagy | f92a4c5d2d | |
Jon Beniston | 7283d2513c | |
Corinna Vinschen | 85c030a75f | |
Corinna Vinschen | bf8aabe830 | |
Corinna Vinschen | 213d8cac24 | |
Corinna Vinschen | 9bbda85e27 | |
Wilco Dijkstra | 6dbb20dfc7 | |
Jon Beniston | 86c31ae47b | |
Jon Beniston | fcc1e7039f | |
Andy Koppe | 3017f23f1c | |
Corinna Vinschen | d1454de7b0 | |
Corinna Vinschen | 3a880bf5e0 | |
Jon Beniston | a9cfb33b6c | |
Corinna Vinschen | fc3a8ecca5 |
|
@ -17,6 +17,14 @@
|
|||
*.swp
|
||||
*.tmp
|
||||
|
||||
**/.astyle
|
||||
**/.vscode
|
||||
**/.cproject
|
||||
**/.project
|
||||
.settings/
|
||||
/Release/
|
||||
/Debug/
|
||||
|
||||
.deps
|
||||
.libs
|
||||
|
||||
|
|
|
@ -760,9 +760,9 @@ SUCH DAMAGE.
|
|||
SUCH DAMAGE.
|
||||
|
||||
|
||||
(35) - ARM Ltd (arm and thumb variant targets only)
|
||||
(35) - Arm Ltd
|
||||
|
||||
Copyright (c) 2009-2015 ARM Ltd
|
||||
Copyright (c) 2009-2018 Arm Ltd
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
|
||||
|
||||
# Newlib - a C Standard Library for Casio Calulators
|
||||
|
||||
## Motivation
|
||||
Until now there was no complete [C standard library]([https://en.wikipedia.org/wiki/C_standard_library]) (aka libc) available for the Casio calculators. Although some parts of this library have been provided by fxlib and [gint](https://git.planet-casio.com/lephe/gint), there was no libc implementation complying with the standard and compatible with the sh3eb architecture ready to use.
|
||||
|
||||
To change that, I decided to port [newlib](https://sourceware.org/newlib/) to the Casio CPU. Newlib is an alternative libc implementation intended for use on embedded systems.
|
||||
|
||||
## Alpha
|
||||
Follow this link and click the download button in the top right corner:
|
||||
|
||||
[v1.1](https://git.planet-casio.com/Memallox/libc/tags/sh3eb_v1.01)
|
||||
|
||||
|
||||
## Installation
|
||||
*For a complete tutorial on how to setup a toolchain for Casio calculators, see [Compiler sous Linux avec GCC](https://www.planet-casio.com/Fr/programmation/tutoriels.php?id=61#E7).*
|
||||
|
||||
To build newlib, you first need binutils and gcc for the target `sh3eb-elf`. Make sure to configure gcc with the arguments `--with-newlib --without-headers`.
|
||||
|
||||
Now you can install newlib. Simply call configure and make:
|
||||
|
||||
```bash
|
||||
../newlib-cygwin/configure --target=sh3eb-elf --prefix=...
|
||||
make
|
||||
make install
|
||||
```
|
||||
|
||||
Afterwards, you have to build gcc again with the argument `--with-newlib`.
|
||||
|
||||
For a more detailes tutorial about how to setup newlib in general, see this [more detailed turorial](http://www.ifp.illinois.edu/~nakazato/tips/xgcc.html#newlib).
|
||||
|
||||
|
||||
## Features for Casio fx9860g calculators:
|
||||
* C standard library libc
|
||||
* printf implementation to print text to the display
|
||||
* Dynamic allocation of memory using malloc and free
|
||||
* Memory manipulation using memcpy, memcmp, memset etc.
|
||||
* String manipulation using strcpy, strcmp, strstr, strtok
|
||||
* ...
|
||||
* Math library libm
|
||||
* Floating point arithmetics
|
||||
* ...
|
||||
* Automatic library and include path recognition after installation
|
||||
* Basic Casio features:
|
||||
* implementation of GetKey, Bdisp_AllClr_DDVRAM, Bdisp_PutDisp_DD, Print and locate without fxlib (but you can use it if you want)
|
||||
|
||||
|
||||
# Further information
|
||||
## Upstream Repository
|
||||
|
||||
Newlib provides releases in their [ftp directory](ftp://sourceware.org/pub/newlib/index.html) and their code on their [git repository](https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git). I try to rebase my fork regulary to their master branch to keep it up-to-date.
|
||||
|
||||
## The target `sh3eb-elf`
|
||||
|
||||
There is a [great explanation](https://wiki.gentoo.org/wiki/Embedded_Handbook/Tuples) on the naming convention of targets. To really understand what `sh3eb-elf` means, I'll boil it down for you:
|
||||
|
||||
To compile code for our Casio calulator, we need to tell newlib where we want to run the code. In our case, the *target*'s name is `sh3eb-elf`.
|
||||
|
||||
`sh` is here short for the [SuperH](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/superh.html#) processor architecture. (Fortunately, newlib supports SuperH the by default.)
|
||||
|
||||
To be more specific, `sh3` is a 32-bit CPU architecture of the SuperH family. Furthermore, `eb` stands for the `big endian` format (that indicates the [byte order](https://en.wikipedia.org/wiki/Endianness) used for multi-byte variables). Usually a target also indicates a vendor which in this case is `unknown`. Lastly, the end of the target's name is `elf` (which is usually the kernel). Here, we have no kernel (and hence no operating system) at all.
|
||||
|
||||
For newlib, the target `sh3eb` had to be specifically added.
|
|
@ -57,19 +57,19 @@ int _link (void);
|
|||
int _stat (const char *, struct stat *);
|
||||
int _fstat (int, struct stat *);
|
||||
int _swistat (int fd, struct stat * st);
|
||||
caddr_t _sbrk (int);
|
||||
int _getpid (int);
|
||||
void * _sbrk (ptrdiff_t);
|
||||
pid_t _getpid (void);
|
||||
int _close (int);
|
||||
clock_t _clock (void);
|
||||
int _swiclose (int);
|
||||
int _open (const char *, int, ...);
|
||||
int _swiopen (const char *, int);
|
||||
int _write (int, char *, int);
|
||||
int _swiwrite (int, char *, int);
|
||||
int _lseek (int, int, int);
|
||||
int _swilseek (int, int, int);
|
||||
int _read (int, char *, int);
|
||||
int _swiread (int, char *, int);
|
||||
int _write (int, const char *, size_t);
|
||||
int _swiwrite (int, const char *, size_t);
|
||||
off_t _lseek (int, off_t, int);
|
||||
off_t _swilseek (int, off_t, int);
|
||||
int _read (int, void *, size_t);
|
||||
int _swiread (int, void *, size_t);
|
||||
void initialise_monitor_handles (void);
|
||||
|
||||
static int checkerror (int);
|
||||
|
@ -349,7 +349,7 @@ checkerror (int result)
|
|||
len, is the length in bytes to read.
|
||||
Returns the number of bytes *not* written. */
|
||||
int
|
||||
_swiread (int fh, char *ptr, int len)
|
||||
_swiread (int fh, void *ptr, size_t len)
|
||||
{
|
||||
param_block_t block[3];
|
||||
|
||||
|
@ -364,7 +364,7 @@ _swiread (int fh, char *ptr, int len)
|
|||
Translates the return of _swiread into
|
||||
bytes read. */
|
||||
int
|
||||
_read (int fd, char *ptr, int len)
|
||||
_read (int fd, void *ptr, size_t len)
|
||||
{
|
||||
int res;
|
||||
struct fdent *pfd;
|
||||
|
@ -389,8 +389,8 @@ _read (int fd, char *ptr, int len)
|
|||
}
|
||||
|
||||
/* fd, is a user file descriptor. */
|
||||
int
|
||||
_swilseek (int fd, int ptr, int dir)
|
||||
off_t
|
||||
_swilseek (int fd, off_t ptr, int dir)
|
||||
{
|
||||
int res;
|
||||
struct fdent *pfd;
|
||||
|
@ -449,7 +449,8 @@ _swilseek (int fd, int ptr, int dir)
|
|||
return -1;
|
||||
}
|
||||
|
||||
_lseek (int fd, int ptr, int dir)
|
||||
off_t
|
||||
_lseek (int fd, off_t ptr, int dir)
|
||||
{
|
||||
return _swilseek (fd, ptr, dir);
|
||||
}
|
||||
|
@ -457,7 +458,7 @@ _lseek (int fd, int ptr, int dir)
|
|||
/* fh, is a valid internal file handle.
|
||||
Returns the number of bytes *not* written. */
|
||||
int
|
||||
_swiwrite (int fh, char *ptr, int len)
|
||||
_swiwrite (int fh, const char *ptr, size_t len)
|
||||
{
|
||||
param_block_t block[3];
|
||||
|
||||
|
@ -470,7 +471,7 @@ _swiwrite (int fh, char *ptr, int len)
|
|||
|
||||
/* fd, is a user file descriptor. */
|
||||
int
|
||||
_write (int fd, char *ptr, int len)
|
||||
_write (int fd, const char *ptr, size_t len)
|
||||
{
|
||||
int res;
|
||||
struct fdent *pfd;
|
||||
|
@ -620,7 +621,7 @@ _close (int fd)
|
|||
}
|
||||
|
||||
int __attribute__((weak))
|
||||
_getpid (int n __attribute__ ((unused)))
|
||||
_getpid (void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -628,8 +629,8 @@ _getpid (int n __attribute__ ((unused)))
|
|||
/* Heap limit returned from SYS_HEAPINFO Angel semihost call. */
|
||||
ulong __heap_limit __attribute__ ((aligned (8))) = 0xcafedead;
|
||||
|
||||
caddr_t
|
||||
_sbrk (int incr)
|
||||
void *
|
||||
_sbrk (ptrdiff_t incr)
|
||||
{
|
||||
extern char end asm ("end"); /* Defined by the linker. */
|
||||
static char *heap_end;
|
||||
|
@ -642,7 +643,7 @@ _sbrk (int incr)
|
|||
|
||||
if ((heap_end + incr > stack_ptr)
|
||||
/* Honour heap limit if it's valid. */
|
||||
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > __heap_limit)))
|
||||
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > (char *)__heap_limit)))
|
||||
{
|
||||
/* Some of the libstdc++-v3 tests rely upon detecting
|
||||
out of memory errors, so do not abort here. */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <_ansi.h>
|
||||
|
||||
int _kill (int, int);
|
||||
int _kill (int, int) __attribute__((__noreturn__));
|
||||
void _exit (int);
|
||||
|
||||
void
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <signal.h>
|
||||
#include "swi.h"
|
||||
|
||||
int _kill (int, int);
|
||||
int _kill (int, int) __attribute__((__noreturn__));
|
||||
|
||||
int
|
||||
_kill (int pid, int sig)
|
||||
|
@ -41,12 +41,14 @@ _kill (int pid, int sig)
|
|||
|
||||
#if SEMIHOST_V2
|
||||
if (_has_ext_exit_extended ())
|
||||
return do_AngelSWI (insn, block);
|
||||
do_AngelSWI (insn, block);
|
||||
else
|
||||
#endif
|
||||
return do_AngelSWI (insn, (void*)block[0]);
|
||||
do_AngelSWI (insn, (void*)block[0]);
|
||||
|
||||
#else
|
||||
asm ("swi %a0" :: "i" (SWI_Exit));
|
||||
#endif
|
||||
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! /bin/sh
|
||||
# Copyright (C) 2005 Axis Communications.
|
||||
# Copyright (C) 2005, 2018 Axis Communications.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
|
@ -93,8 +93,16 @@ cat > gettod.c <<EOF
|
|||
$lu#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
int
|
||||
_gettimeofday (struct timeval *tp, void *tzp
|
||||
${r}gettimeofday (tp, tzp))
|
||||
_gettimeofday (struct timeval *tp, void *tzp)
|
||||
{
|
||||
struct kernel_timeval kt;
|
||||
int retval = _Sys_gettimeofday(&kt, tzp);
|
||||
if (retval == 0)
|
||||
{
|
||||
tp->tv_sec = kt.tv_sec;
|
||||
tp->tv_usec = kt.tv_usec;
|
||||
}
|
||||
R (retval)
|
||||
EOF
|
||||
cat > isatty.c <<EOF
|
||||
$lu
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Support for syscalls for cris*-axis-linux-gnu and simulators
|
||||
Copyright (C) 1998-2005 Axis Communications.
|
||||
Copyright (C) 1998-2005, 2018 Axis Communications.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -402,6 +402,14 @@ struct new_stat {
|
|||
unsigned long __unused5;
|
||||
};
|
||||
|
||||
typedef long int kernel_time_t;
|
||||
typedef long int kernel_suseconds_t;
|
||||
|
||||
struct kernel_timeval {
|
||||
kernel_time_t tv_sec;
|
||||
kernel_suseconds_t tv_usec;
|
||||
};
|
||||
|
||||
static inline _syscall2(int,stat,const char *,path,struct new_stat *,statbuf)
|
||||
static inline _syscall2(int,fstat,int,fd,struct new_stat *,statbuf)
|
||||
static inline _syscall0(int,getpid)
|
||||
|
@ -412,7 +420,7 @@ static inline _syscall1(long,times,struct tms *,tbuf)
|
|||
static inline _syscall1(long,mmap,long *, buf)
|
||||
struct timeval;
|
||||
struct timezone;
|
||||
static inline _syscall2(int,gettimeofday,struct timeval *,tp,
|
||||
static inline _syscall2(int,gettimeofday,struct kernel_timeval *,tp,
|
||||
void *, tzp)
|
||||
static inline _syscall2(int,link,const char *,old,const char *,new)
|
||||
static inline _syscall1(int,unlink,const char *, f)
|
||||
|
|
|
@ -92,6 +92,16 @@ AC_ARG_ENABLE(newlib-supplied-syscalls,
|
|||
|
||||
AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
|
||||
|
||||
dnl Support --disable-newlib-fno-builtin
|
||||
AC_ARG_ENABLE(newlib-fno-builtin,
|
||||
[ --disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions],
|
||||
[case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for newlib-fno-builtin option) ;;
|
||||
esac], [newlib_fno_builtin=])dnl
|
||||
|
||||
|
||||
dnl We may get other options which we don't document:
|
||||
dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
|
||||
|
||||
|
@ -202,8 +212,6 @@ fi
|
|||
|
||||
. [$]{newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="[$]{newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
AC_SUBST(NEWLIB_CFLAGS)
|
||||
|
||||
|
|
|
@ -813,6 +813,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
enable_shared
|
||||
|
@ -1487,6 +1488,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -3170,6 +3172,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -4016,8 +4030,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
@ -11828,7 +11840,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11831 "configure"
|
||||
#line 11843 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -11934,7 +11946,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11937 "configure"
|
||||
#line 11949 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
# newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
|
||||
# newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
|
||||
# newlib_global_stdio_streams --enable-global-stdio-streams ("yes", "no, "")
|
||||
# newlib_fno_builtin --disable-newlib-fno-builtin ("yes", "no, "")
|
||||
|
||||
# It sets the following shell variables:
|
||||
# newlib_cflags Special CFLAGS to use when building
|
||||
|
@ -91,6 +92,19 @@ case "${target_optspace}:${host}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "${newlib_fno_builtin}:${host}" in
|
||||
yes:*)
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
;;
|
||||
no:*)
|
||||
newlib_cflags="${newlib_cflags}"
|
||||
;;
|
||||
*:*)
|
||||
# For now, all targets default to using -fno-builtin until tested without
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Get the source directories to use for the CPU type.
|
||||
# machine_dir should supply CPU dependent routines, such as setjmp.
|
||||
# newlib_cflags is passed to gcc when compiling.
|
||||
|
@ -121,6 +135,12 @@ case "${host_cpu}" in
|
|||
machine_dir=cr16
|
||||
;;
|
||||
cris | crisv32)
|
||||
# The size of the (kernel_)time_t passed from or to a
|
||||
# simulator or a Linux kernel is mandated by the
|
||||
# gettimeofday and time system calls and fixed to 32 bits, the
|
||||
# size of a long. Instead of churning as 64 bits what is anyway
|
||||
# 32 bits, it makes more sense to default to long.
|
||||
test -z "${enable_newlib_long_time_t}" && newlib_long_time_t=yes
|
||||
machine_dir=cris
|
||||
;;
|
||||
crx*)
|
||||
|
@ -280,6 +300,9 @@ case "${host_cpu}" in
|
|||
default_newlib_io_long_long="yes"
|
||||
newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections "
|
||||
;;
|
||||
sh[34]eb)
|
||||
machine_dir=sh3eb
|
||||
;;
|
||||
sh | sh64)
|
||||
machine_dir=sh
|
||||
;;
|
||||
|
@ -418,6 +441,9 @@ case "${host}" in
|
|||
sys_dir=a29khif
|
||||
signal_dir=
|
||||
;;
|
||||
aarch64*-*-*)
|
||||
newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
|
||||
;;
|
||||
arm*-*-*)
|
||||
newlib_cflags="${newlib_cflags} -D_COMPILING_NEWLIB"
|
||||
sys_dir=arm
|
||||
|
@ -538,6 +564,15 @@ case "${host}" in
|
|||
powerpcle-*-pe)
|
||||
posix_dir=posix
|
||||
;;
|
||||
sh[34]eb*)
|
||||
sys_dir=sh3eb
|
||||
#see https://sourceware.org/newlib/README
|
||||
newlib_fvwrite_in_streamio=no
|
||||
newlib_fseek_optimization=no
|
||||
newlib_wide_orient=no
|
||||
newlib_multithread=no
|
||||
newlib_io_c99_formats=yes
|
||||
;;
|
||||
sh*-*)
|
||||
sys_dir=sh
|
||||
;;
|
||||
|
|
|
@ -808,6 +808,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
enable_shared
|
||||
|
@ -1460,6 +1461,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2930,6 +2932,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3776,8 +3790,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
@ -11555,7 +11567,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11558 "configure"
|
||||
#line 11570 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -11661,7 +11673,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11664 "configure"
|
||||
#line 11676 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
|
|
@ -166,7 +166,7 @@ __uc2jp (wint_t c, int type)
|
|||
wint_t
|
||||
_jp2uc_l (wint_t c, struct __locale_t * l)
|
||||
{
|
||||
char * cs = l ? __locale_charset(l) : __current_locale_charset();
|
||||
const char * cs = l ? __locale_charset(l) : __current_locale_charset();
|
||||
if (0 == strcmp (cs, "JIS"))
|
||||
c = __jp2uc (c, JP_JIS);
|
||||
else if (0 == strcmp (cs, "SJIS"))
|
||||
|
@ -186,7 +186,7 @@ _jp2uc (wint_t c)
|
|||
wint_t
|
||||
_uc2jp_l (wint_t c, struct __locale_t * l)
|
||||
{
|
||||
char * cs = l ? __locale_charset(l) : __current_locale_charset();
|
||||
const char * cs = l ? __locale_charset(l) : __current_locale_charset();
|
||||
if (0 == strcmp (cs, "JIS"))
|
||||
c = __uc2jp (c, JP_JIS);
|
||||
else if (0 == strcmp (cs, "SJIS"))
|
||||
|
|
|
@ -66,7 +66,12 @@ extern int toascii_l (int __c, locale_t __l);
|
|||
#define _X 0100
|
||||
#define _B 0200
|
||||
|
||||
#ifdef __HAVE_LOCALE_INFO__
|
||||
const char *__locale_ctype_ptr (void);
|
||||
#else
|
||||
#define __locale_ctype_ptr() _ctype_
|
||||
#endif
|
||||
|
||||
# define __CTYPE_PTR (__locale_ctype_ptr ())
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
@ -100,7 +105,11 @@ const char *__locale_ctype_ptr (void);
|
|||
#endif
|
||||
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
#ifdef __HAVE_LOCALE_INFO__
|
||||
const char *__locale_ctype_ptr_l (locale_t);
|
||||
#else
|
||||
#define __locale_ctype_ptr_l(l) _ctype_
|
||||
#endif
|
||||
#define __ctype_lookup_l(__c,__l) ((__locale_ctype_ptr_l(__l)+sizeof(""[__c]))[(int)(__c)])
|
||||
|
||||
#define isalpha_l(__c,__l) (__ctype_lookup_l(__c,__l)&(_U|_L))
|
||||
|
|
|
@ -1,8 +1,40 @@
|
|||
/*-
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* Copyright (c) 1989, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the University nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
* $FreeBSD: head/include/dirent.h 326024 2017-11-20 19:45:28Z pfg $
|
||||
*/
|
||||
|
||||
#ifndef _DIRENT_H_
|
||||
#define _DIRENT_H_
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#define _DIRENT_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/dirent.h>
|
||||
|
||||
|
@ -10,7 +42,44 @@ extern "C" {
|
|||
#define MAXNAMLEN 1024
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
__BEGIN_DECLS
|
||||
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
|
||||
int alphasort(const struct dirent **, const struct dirent **);
|
||||
int dirfd(DIR *);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int fdclosedir(DIR *);
|
||||
#endif
|
||||
DIR *opendir(const char *);
|
||||
DIR *fdopendir(int);
|
||||
struct dirent *
|
||||
readdir(DIR *);
|
||||
#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
|
||||
int readdir_r(DIR *__restrict, struct dirent *__restrict,
|
||||
struct dirent **__restrict);
|
||||
#endif
|
||||
void rewinddir(DIR *);
|
||||
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 700
|
||||
int scandir(const char *, struct dirent ***,
|
||||
int (*)(const struct dirent *), int (*)(const struct dirent **,
|
||||
const struct dirent **));
|
||||
#endif
|
||||
#ifdef _COMPILING_NEWLIB
|
||||
void _seekdir(DIR *, long);
|
||||
#endif
|
||||
#if __MISC_VISIBLE || __XSI_VISIBLE
|
||||
#ifndef __INSIDE_CYGWIN__
|
||||
void seekdir(DIR *, long);
|
||||
long telldir(DIR *);
|
||||
#endif
|
||||
#endif
|
||||
int closedir(DIR *);
|
||||
#if __GNU_VISIBLE
|
||||
int scandirat(int, const char *, struct dirent ***,
|
||||
int (*) (const struct dirent *), int (*) (const struct dirent **,
|
||||
const struct dirent **));
|
||||
int versionsort(const struct dirent **, const struct dirent **);
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
||||
#endif /*_DIRENT_H_*/
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <newlib.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/syslimits.h>
|
||||
|
||||
# ifdef _MB_LEN_MAX
|
||||
# define MB_LEN_MAX _MB_LEN_MAX
|
||||
|
|
|
@ -167,6 +167,13 @@
|
|||
#define _DOUBLE_IS_32BITS
|
||||
#endif
|
||||
|
||||
#ifdef __sh3eb__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __sh4eb__
|
||||
#define __IEEE_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#ifdef __sh__
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
|
|
|
@ -186,7 +186,7 @@ char * cuserid (char *);
|
|||
FILE * tmpfile (void);
|
||||
char * tmpnam (char *);
|
||||
#if __BSD_VISIBLE || __XSI_VISIBLE || __POSIX_VISIBLE >= 200112
|
||||
char * tempnam (const char *, const char *);
|
||||
char * tempnam (const char *, const char *) __malloc_like __result_use_check;
|
||||
#endif
|
||||
int fclose (FILE *);
|
||||
int fflush (FILE *);
|
||||
|
|
|
@ -282,7 +282,8 @@ int _unsetenv_r (struct _reent *, const char *__string);
|
|||
#endif /* !__CYGWIN__ */
|
||||
|
||||
#if __POSIX_VISIBLE >= 200112
|
||||
int __nonnull ((1)) posix_memalign (void **, size_t, size_t);
|
||||
int posix_memalign (void **, size_t, size_t) __malloc_like __nonnull((1))
|
||||
__alloc_align(2) __alloc_size(3) __result_use_check;
|
||||
#endif
|
||||
|
||||
char * _dtoa_r (struct _reent *, double, int, int, int *, int*, char**);
|
||||
|
@ -326,7 +327,7 @@ extern long double strtold (const char *__restrict, char **__restrict);
|
|||
*/
|
||||
#if __ISO_C_VISIBLE >= 2011
|
||||
void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
|
||||
__alloc_size(2);
|
||||
__alloc_size(2) __result_use_check;
|
||||
int at_quick_exit(void (*)(void));
|
||||
_Noreturn void
|
||||
quick_exit(int);
|
||||
|
|
|
@ -81,11 +81,11 @@ char *strcasestr (const char *, const char *);
|
|||
char *strchrnul (const char *, int);
|
||||
#endif
|
||||
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
|
||||
char *strdup (const char *);
|
||||
char *strdup (const char *) __malloc_like __result_use_check;
|
||||
#endif
|
||||
char *_strdup_r (struct _reent *, const char *);
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
char *strndup (const char *, size_t);
|
||||
char *strndup (const char *, size_t) __malloc_like __result_use_check;
|
||||
#endif
|
||||
char *_strndup_r (struct _reent *, const char *, size_t);
|
||||
|
||||
|
|
|
@ -23,6 +23,19 @@ extern "C" {
|
|||
#define _FNONBLOCK 0x4000 /* non blocking I/O (POSIX style) */
|
||||
#define _FNDELAY _FNONBLOCK /* non blocking I/O (4.2 style) */
|
||||
#define _FNOCTTY 0x8000 /* don't assign a ctty on this open */
|
||||
#if defined (__CYGWIN__)
|
||||
#define _FBINARY 0x10000
|
||||
#define _FTEXT 0x20000
|
||||
#endif
|
||||
#define _FNOINHERIT 0x40000
|
||||
#define _FDIRECT 0x80000
|
||||
#define _FNOFOLLOW 0x100000
|
||||
#define _FDIRECTORY 0x200000
|
||||
#define _FEXECSRCH 0x400000
|
||||
#if defined (__CYGWIN__)
|
||||
#define _FTMPFILE 0x800000
|
||||
#define _FNOATIME 0x1000000
|
||||
#endif
|
||||
|
||||
#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
|
||||
|
||||
|
@ -43,35 +56,28 @@ extern "C" {
|
|||
/* O_NDELAY _FNBIO set in include/fcntl.h */
|
||||
#define O_NONBLOCK _FNONBLOCK
|
||||
#define O_NOCTTY _FNOCTTY
|
||||
/* For machines which care - */
|
||||
#if defined (__CYGWIN__)
|
||||
#define _FBINARY 0x10000
|
||||
#define _FTEXT 0x20000
|
||||
#define _FNOINHERIT 0x40000
|
||||
#define _FDIRECT 0x80000
|
||||
#define _FNOFOLLOW 0x100000
|
||||
#define _FDIRECTORY 0x200000
|
||||
#define _FEXECSRCH 0x400000
|
||||
#define _FTMPFILE 0x800000
|
||||
#define _FNOATIME 0x1000000
|
||||
|
||||
/* POSIX-1.2008 specific flags */
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
#define O_CLOEXEC _FNOINHERIT
|
||||
#define O_NOFOLLOW _FNOFOLLOW
|
||||
#define O_DIRECTORY _FDIRECTORY
|
||||
#define O_EXEC _FEXECSRCH
|
||||
#define O_SEARCH _FEXECSRCH
|
||||
#endif
|
||||
|
||||
#if __BSD_VISIBLE
|
||||
#define O_DIRECT _FDIRECT
|
||||
#endif
|
||||
|
||||
#if defined (__CYGWIN__)
|
||||
#define O_BINARY _FBINARY
|
||||
#define O_TEXT _FTEXT
|
||||
#define O_DSYNC _FSYNC
|
||||
#define O_RSYNC _FSYNC
|
||||
#define O_EXEC _FEXECSRCH
|
||||
#define O_SEARCH _FEXECSRCH
|
||||
|
||||
/* POSIX-1.2008 specific flags */
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
#define O_CLOEXEC _FNOINHERIT
|
||||
#define O_NOFOLLOW _FNOFOLLOW
|
||||
#define O_DIRECTORY _FDIRECTORY
|
||||
#endif
|
||||
|
||||
/* Linux-specific flags */
|
||||
#if __GNU_VISIBLE
|
||||
#define O_DIRECT _FDIRECT
|
||||
#define O_TMPFILE _FTMPFILE
|
||||
#define O_NOATIME _FNOATIME
|
||||
#endif
|
||||
|
|
|
@ -126,7 +126,7 @@ wchar_t *wcscpy (wchar_t *__restrict, const wchar_t *__restrict);
|
|||
#if __POSIX_VISIBLE >= 200809
|
||||
wchar_t *wcpcpy (wchar_t *__restrict,
|
||||
const wchar_t *__restrict);
|
||||
wchar_t *wcsdup (const wchar_t *);
|
||||
wchar_t *wcsdup (const wchar_t *) __malloc_like __result_use_check;
|
||||
#endif
|
||||
wchar_t *_wcsdup_r (struct _reent *, const wchar_t * );
|
||||
size_t wcscspn (const wchar_t *, const wchar_t *);
|
||||
|
|
|
@ -463,7 +463,7 @@ currentlocale ()
|
|||
extern void __set_ctype (struct __locale_t *, const char *charset);
|
||||
|
||||
char *
|
||||
__loadlocale (struct __locale_t *loc, int category, const char *new_locale)
|
||||
__loadlocale (struct __locale_t *loc, int category, char *new_locale)
|
||||
{
|
||||
/* At this point a full-featured system would just load the locale
|
||||
specific data from the locale files.
|
||||
|
@ -506,7 +506,7 @@ __loadlocale (struct __locale_t *loc, int category, const char *new_locale)
|
|||
|
||||
restart:
|
||||
if (!locale)
|
||||
locale = (char *) new_locale;
|
||||
locale = new_locale;
|
||||
else if (locale != tmp_locale)
|
||||
{
|
||||
locale = __set_locale_from_locale_alias (locale, tmp_locale);
|
||||
|
@ -981,6 +981,7 @@ __locale_mb_cur_max (void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef __HAVE_LOCALE_INFO__
|
||||
const char *
|
||||
__locale_ctype_ptr_l (struct __locale_t *locale)
|
||||
{
|
||||
|
@ -992,6 +993,7 @@ __locale_ctype_ptr (void)
|
|||
{
|
||||
return __get_current_locale ()->ctype_ptr;
|
||||
}
|
||||
#endif /* __HAVE_LOCALE_INFO__ */
|
||||
|
||||
#ifndef _REENT_ONLY
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ struct __locale_t
|
|||
};
|
||||
|
||||
#ifdef _MB_CAPABLE
|
||||
extern char *__loadlocale (struct __locale_t *, int, const char *);
|
||||
extern char *__loadlocale (struct __locale_t *, int, char *);
|
||||
extern const char *__get_locale_env(struct _reent *, int);
|
||||
#endif /* _MB_CAPABLE */
|
||||
|
||||
|
@ -217,7 +217,11 @@ __get_global_locale ()
|
|||
_ELIDABLE_INLINE struct __locale_t *
|
||||
__get_locale_r (struct _reent *r)
|
||||
{
|
||||
#ifdef __HAVE_LOCALE_INFO__
|
||||
return r->_locale;
|
||||
#else
|
||||
return __get_global_locale();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* In POSIX terms the current locale is the locale used by all functions
|
||||
|
@ -227,7 +231,11 @@ __get_locale_r (struct _reent *r)
|
|||
_ELIDABLE_INLINE struct __locale_t *
|
||||
__get_current_locale (void)
|
||||
{
|
||||
#ifdef __HAVE_LOCALE_INFO__
|
||||
return _REENT->_locale ?: __get_global_locale ();
|
||||
#else
|
||||
return __get_global_locale();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Only access fixed "C" locale using this function. Fake for !_MB_CAPABLE
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -690,6 +690,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1326,6 +1327,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2490,6 +2492,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3336,8 +3350,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -764,6 +764,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
enable_shared
|
||||
|
@ -827,6 +828,7 @@ or1k
|
|||
powerpc
|
||||
rl78
|
||||
rx
|
||||
sh3eb
|
||||
sh
|
||||
sparc
|
||||
spu
|
||||
|
@ -1467,6 +1469,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2874,6 +2877,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3720,8 +3735,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
@ -11490,7 +11503,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11493 "configure"
|
||||
#line 11506 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -11596,7 +11609,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11599 "configure"
|
||||
#line 11612 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -11924,6 +11937,8 @@ subdirs="$subdirs a29k"
|
|||
rl78) subdirs="$subdirs rl78"
|
||||
;;
|
||||
rx) subdirs="$subdirs rx"
|
||||
;;
|
||||
sh3eb) subdirs="$subdirs sh3eb"
|
||||
;;
|
||||
sh) subdirs="$subdirs sh"
|
||||
;;
|
||||
|
|
|
@ -66,6 +66,7 @@ if test -n "${machine_dir}"; then
|
|||
powerpc) AC_CONFIG_SUBDIRS(powerpc) ;;
|
||||
rl78) AC_CONFIG_SUBDIRS(rl78) ;;
|
||||
rx) AC_CONFIG_SUBDIRS(rx) ;;
|
||||
sh3eb) AC_CONFIG_SUBDIRS(sh3eb) ;;
|
||||
sh) AC_CONFIG_SUBDIRS(sh) ;;
|
||||
sparc) AC_CONFIG_SUBDIRS(sparc) ;;
|
||||
spu) AC_CONFIG_SUBDIRS(spu) ;;
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -762,6 +762,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
enable_shared
|
||||
|
@ -1410,6 +1411,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2817,6 +2819,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3663,8 +3677,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
@ -11433,7 +11445,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11436 "configure"
|
||||
#line 11448 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
@ -11539,7 +11551,7 @@ else
|
|||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<_LT_EOF
|
||||
#line 11542 "configure"
|
||||
#line 11554 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -698,6 +698,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1339,6 +1340,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2510,6 +2512,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3356,8 +3370,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -690,6 +690,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1326,6 +1327,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2490,6 +2492,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3336,8 +3350,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -702,6 +702,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1344,6 +1345,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2555,6 +2557,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3401,8 +3415,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
## 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
|
||||
|
||||
if SH64
|
||||
lib_a_SOURCES = memcpy.S memset.S setjmp.S strcpy.S strlen.S strcmp.S strncpy.S
|
||||
else
|
||||
lib_a_SOURCES = memcpy.S memset.S setjmp.S strcpy.S strlen.S strcmp.S
|
||||
endif
|
||||
|
||||
lib_a_CCASFLAGS=$(AM_CCASFLAGS)
|
||||
lib_a_CFLAGS=$(AM_CFLAGS)
|
||||
|
||||
$(lpfx)memcpy.o: asm.h
|
||||
$(lpfx)memset.o: asm.h
|
||||
$(lpfx)setjmp.o: asm.h
|
||||
$(lpfx)strcpy.o: asm.h
|
||||
$(lpfx)strcmp.o: asm.h
|
||||
$(lpfx)strncpy.o: asm.h
|
||||
|
||||
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
|
||||
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
|
@ -0,0 +1,498 @@
|
|||
# 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 =
|
||||
@SH64_FALSE@am_lib_a_OBJECTS = lib_a-memcpy.$(OBJEXT) \
|
||||
@SH64_FALSE@ lib_a-memset.$(OBJEXT) lib_a-setjmp.$(OBJEXT) \
|
||||
@SH64_FALSE@ lib_a-strcpy.$(OBJEXT) lib_a-strlen.$(OBJEXT) \
|
||||
@SH64_FALSE@ lib_a-strcmp.$(OBJEXT)
|
||||
@SH64_TRUE@am_lib_a_OBJECTS = lib_a-memcpy.$(OBJEXT) \
|
||||
@SH64_TRUE@ lib_a-memset.$(OBJEXT) lib_a-setjmp.$(OBJEXT) \
|
||||
@SH64_TRUE@ lib_a-strcpy.$(OBJEXT) lib_a-strlen.$(OBJEXT) \
|
||||
@SH64_TRUE@ lib_a-strcmp.$(OBJEXT) lib_a-strncpy.$(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)
|
||||
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@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
GREP = @GREP@
|
||||
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@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
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
|
||||
@SH64_FALSE@lib_a_SOURCES = memcpy.S memset.S setjmp.S strcpy.S strlen.S strcmp.S
|
||||
@SH64_TRUE@lib_a_SOURCES = memcpy.S memset.S setjmp.S strcpy.S strlen.S strcmp.S strncpy.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 .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-memcpy.o: memcpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memcpy.o `test -f 'memcpy.S' || echo '$(srcdir)/'`memcpy.S
|
||||
|
||||
lib_a-memcpy.obj: memcpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memcpy.obj `if test -f 'memcpy.S'; then $(CYGPATH_W) 'memcpy.S'; else $(CYGPATH_W) '$(srcdir)/memcpy.S'; fi`
|
||||
|
||||
lib_a-memset.o: memset.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memset.o `test -f 'memset.S' || echo '$(srcdir)/'`memset.S
|
||||
|
||||
lib_a-memset.obj: memset.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-memset.obj `if test -f 'memset.S'; then $(CYGPATH_W) 'memset.S'; else $(CYGPATH_W) '$(srcdir)/memset.S'; fi`
|
||||
|
||||
lib_a-setjmp.o: setjmp.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setjmp.o `test -f 'setjmp.S' || echo '$(srcdir)/'`setjmp.S
|
||||
|
||||
lib_a-setjmp.obj: setjmp.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-setjmp.obj `if test -f 'setjmp.S'; then $(CYGPATH_W) 'setjmp.S'; else $(CYGPATH_W) '$(srcdir)/setjmp.S'; fi`
|
||||
|
||||
lib_a-strcpy.o: strcpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strcpy.o `test -f 'strcpy.S' || echo '$(srcdir)/'`strcpy.S
|
||||
|
||||
lib_a-strcpy.obj: strcpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strcpy.obj `if test -f 'strcpy.S'; then $(CYGPATH_W) 'strcpy.S'; else $(CYGPATH_W) '$(srcdir)/strcpy.S'; fi`
|
||||
|
||||
lib_a-strlen.o: strlen.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strlen.o `test -f 'strlen.S' || echo '$(srcdir)/'`strlen.S
|
||||
|
||||
lib_a-strlen.obj: strlen.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strlen.obj `if test -f 'strlen.S'; then $(CYGPATH_W) 'strlen.S'; else $(CYGPATH_W) '$(srcdir)/strlen.S'; fi`
|
||||
|
||||
lib_a-strcmp.o: strcmp.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strcmp.o `test -f 'strcmp.S' || echo '$(srcdir)/'`strcmp.S
|
||||
|
||||
lib_a-strcmp.obj: strcmp.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strcmp.obj `if test -f 'strcmp.S'; then $(CYGPATH_W) 'strcmp.S'; else $(CYGPATH_W) '$(srcdir)/strcmp.S'; fi`
|
||||
|
||||
lib_a-strncpy.o: strncpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strncpy.o `test -f 'strncpy.S' || echo '$(srcdir)/'`strncpy.S
|
||||
|
||||
lib_a-strncpy.obj: strncpy.S
|
||||
$(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CCASFLAGS) $(CCASFLAGS) -c -o lib_a-strncpy.obj `if test -f 'strncpy.S'; then $(CYGPATH_W) 'strncpy.S'; else $(CYGPATH_W) '$(srcdir)/strncpy.S'; 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)
|
||||
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 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
|
||||
|
||||
|
||||
$(lpfx)memcpy.o: asm.h
|
||||
$(lpfx)memset.o: asm.h
|
||||
$(lpfx)setjmp.o: asm.h
|
||||
$(lpfx)strcpy.o: asm.h
|
||||
$(lpfx)strcmp.o: asm.h
|
||||
$(lpfx)strncpy.o: asm.h
|
||||
|
||||
# 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
|
@ -0,0 +1,42 @@
|
|||
#ifdef __STDC__
|
||||
# define _C_LABEL(x) _ ## x
|
||||
#else
|
||||
# define _C_LABEL(x) _/**/x
|
||||
#endif
|
||||
#define _ASM_LABEL(x) x
|
||||
|
||||
#if __SH5__
|
||||
# if __SH5__ == 32 && __SHMEDIA__
|
||||
# define TEXT .section .text..SHmedia32, "ax"
|
||||
# else
|
||||
# define TEXT .text
|
||||
# endif
|
||||
|
||||
# define _ENTRY(name) \
|
||||
TEXT; .balign 8; .globl name; name:
|
||||
#else
|
||||
#define _ENTRY(name) \
|
||||
.text; .align 2; .globl name; name:
|
||||
#endif /* __SH5__ */
|
||||
|
||||
#define ENTRY(name) \
|
||||
_ENTRY(_C_LABEL(name))
|
||||
|
||||
#if (defined (__sh2__) || defined (__SH2E__) || defined (__sh3__) || defined (__SH3E__) \
|
||||
|| defined (__SH4_SINGLE__) || defined (__SH4__)) \
|
||||
|| defined (__SH4_SINGLE_ONLY__) || defined (__SH5__) || defined (__SH2A__)
|
||||
#define DELAYED_BRANCHES
|
||||
#define SL(branch, dest, in_slot, in_slot_arg2) \
|
||||
branch##.s dest; in_slot, in_slot_arg2
|
||||
#else
|
||||
#define SL(branch, dest, in_slot, in_slot_arg2) \
|
||||
in_slot, in_slot_arg2; branch dest
|
||||
#endif
|
||||
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#define SHHI shlld
|
||||
#define SHLO shlrd
|
||||
#else
|
||||
#define SHHI shlrd
|
||||
#define SHLO shlld
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,23 @@
|
|||
dnl This is the newlib/libc/machine/sh 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([asm.h])
|
||||
|
||||
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
||||
AC_CONFIG_AUX_DIR(../../../..)
|
||||
|
||||
AC_NO_EXECUTABLES
|
||||
|
||||
NEWLIB_CONFIGURE(../../..)
|
||||
|
||||
AC_EGREP_CPP([sh5], [
|
||||
#if __SH5__
|
||||
sh5
|
||||
#endif
|
||||
], [have_sh64=yes], [have_sh64=no])
|
||||
AM_CONDITIONAL(SH64, [test $have_sh64 = yes])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
|
@ -0,0 +1,395 @@
|
|||
!
|
||||
! Fast SH memcpy
|
||||
!
|
||||
! by Toshiyasu Morita (tm@netcom.com)
|
||||
! hacked by J"orn Rernnecke (joern.rennecke@superh.com) ("o for o-umlaut)
|
||||
! SH5 code Copyright 2002 SuperH Ltd.
|
||||
!
|
||||
! Entry: ARG0: destination pointer
|
||||
! ARG1: source pointer
|
||||
! ARG3: byte count
|
||||
!
|
||||
! Exit: RESULT: destination pointer
|
||||
! any other registers in the range r0-r7: trashed
|
||||
!
|
||||
! Notes: Usually one wants to do small reads and write a longword, but
|
||||
! unfortunately it is difficult in some cases to concatanate bytes
|
||||
! into a longword on the SH, so this does a longword read and small
|
||||
! writes.
|
||||
!
|
||||
! This implementation makes two assumptions about how it is called:
|
||||
!
|
||||
! 1.: If the byte count is nonzero, the address of the last byte to be
|
||||
! copied is unsigned greater than the address of the first byte to
|
||||
! be copied. This could be easily swapped for a signed comparison,
|
||||
! but the algorithm used needs some comparison.
|
||||
!
|
||||
! 2.: When there are two or three bytes in the last word of an 11-or-more
|
||||
! bytes memory chunk to b copied, the rest of the word can be read
|
||||
! without side effects.
|
||||
! This could be easily changed by increasing the minumum size of
|
||||
! a fast memcpy and the amount subtracted from r7 before L_2l_loop be 2,
|
||||
! however, this would cost a few extra cyles on average.
|
||||
! For SHmedia, the assumption is that any quadword can be read in its
|
||||
! enirety if at least one byte is included in the copy.
|
||||
!
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(memcpy)
|
||||
|
||||
#if __SHMEDIA__
|
||||
|
||||
#define LDUAQ(P,O,D0,D1) ldlo.q P,O,D0; ldhi.q P,O+7,D1
|
||||
#define STUAQ(P,O,D0,D1) stlo.q P,O,D0; sthi.q P,O+7,D1
|
||||
#define LDUAL(P,O,D0,D1) ldlo.l P,O,D0; ldhi.l P,O+3,D1
|
||||
#define STUAL(P,O,D0,D1) stlo.l P,O,D0; sthi.l P,O+3,D1
|
||||
|
||||
ld.b r3,0,r63
|
||||
pta/l Large,tr0
|
||||
movi 25,r0
|
||||
bgeu/u r4,r0,tr0
|
||||
nsb r4,r0
|
||||
shlli r0,5,r0
|
||||
movi (L1-L0+63*32 + 1) & 0xffff,r1
|
||||
sub r1, r0, r0
|
||||
L0: ptrel r0,tr0
|
||||
add r2,r4,r5
|
||||
ptabs r18,tr1
|
||||
add r3,r4,r6
|
||||
blink tr0,r63
|
||||
|
||||
.balign 8
|
||||
L1:
|
||||
/* 0 byte memcpy */
|
||||
blink tr1,r63
|
||||
|
||||
L4_7: /* 4..7 byte memcpy cntd. */
|
||||
stlo.l r2, 0, r0
|
||||
or r6, r7, r6
|
||||
sthi.l r5, -1, r6
|
||||
stlo.l r5, -4, r6
|
||||
blink tr1,r63
|
||||
|
||||
L2_3: /* 2 or 3 byte memcpy cntd. */
|
||||
st.b r5,-1,r6
|
||||
blink tr1,r63
|
||||
|
||||
/* 1 byte memcpy */
|
||||
ld.b r3,0,r0
|
||||
st.b r2,0,r0
|
||||
blink tr1,r63
|
||||
|
||||
L8_15: /* 8..15 byte memcpy cntd. */
|
||||
stlo.q r2, 0, r0
|
||||
or r6, r7, r6
|
||||
sthi.q r5, -1, r6
|
||||
stlo.q r5, -8, r6
|
||||
blink tr1,r63
|
||||
|
||||
/* 2 or 3 byte memcpy */
|
||||
ld.b r3,0,r0
|
||||
ld.b r2,0,r63
|
||||
ld.b r3,1,r1
|
||||
st.b r2,0,r0
|
||||
pta/l L2_3,tr0
|
||||
ld.b r6,-1,r6
|
||||
st.b r2,1,r1
|
||||
blink tr0, r63
|
||||
|
||||
/* 4 .. 7 byte memcpy */
|
||||
LDUAL (r3, 0, r0, r1)
|
||||
pta L4_7, tr0
|
||||
ldlo.l r6, -4, r7
|
||||
or r0, r1, r0
|
||||
sthi.l r2, 3, r0
|
||||
ldhi.l r6, -1, r6
|
||||
blink tr0, r63
|
||||
|
||||
/* 8 .. 15 byte memcpy */
|
||||
LDUAQ (r3, 0, r0, r1)
|
||||
pta L8_15, tr0
|
||||
ldlo.q r6, -8, r7
|
||||
or r0, r1, r0
|
||||
sthi.q r2, 7, r0
|
||||
ldhi.q r6, -1, r6
|
||||
blink tr0, r63
|
||||
|
||||
/* 16 .. 24 byte memcpy */
|
||||
LDUAQ (r3, 0, r0, r1)
|
||||
LDUAQ (r3, 8, r8, r9)
|
||||
or r0, r1, r0
|
||||
sthi.q r2, 7, r0
|
||||
or r8, r9, r8
|
||||
sthi.q r2, 15, r8
|
||||
ldlo.q r6, -8, r7
|
||||
ldhi.q r6, -1, r6
|
||||
stlo.q r2, 8, r8
|
||||
stlo.q r2, 0, r0
|
||||
or r6, r7, r6
|
||||
sthi.q r5, -1, r6
|
||||
stlo.q r5, -8, r6
|
||||
blink tr1,r63
|
||||
|
||||
Large:
|
||||
ld.b r2, 0, r63
|
||||
pta/l Loop_ua, tr1
|
||||
ori r3, -8, r7
|
||||
sub r2, r7, r22
|
||||
sub r3, r2, r6
|
||||
add r2, r4, r5
|
||||
ldlo.q r3, 0, r0
|
||||
addi r5, -16, r5
|
||||
movi 64+8, r27 // could subtract r7 from that.
|
||||
stlo.q r2, 0, r0
|
||||
sthi.q r2, 7, r0
|
||||
ldx.q r22, r6, r0
|
||||
bgtu/l r27, r4, tr1
|
||||
|
||||
addi r5, -48, r27
|
||||
pta/l Loop_line, tr0
|
||||
addi r6, 64, r36
|
||||
addi r6, -24, r19
|
||||
addi r6, -16, r20
|
||||
addi r6, -8, r21
|
||||
|
||||
Loop_line:
|
||||
ldx.q r22, r36, r63
|
||||
alloco r22, 32
|
||||
addi r22, 32, r22
|
||||
ldx.q r22, r19, r23
|
||||
sthi.q r22, -25, r0
|
||||
ldx.q r22, r20, r24
|
||||
ldx.q r22, r21, r25
|
||||
stlo.q r22, -32, r0
|
||||
ldx.q r22, r6, r0
|
||||
sthi.q r22, -17, r23
|
||||
sthi.q r22, -9, r24
|
||||
sthi.q r22, -1, r25
|
||||
stlo.q r22, -24, r23
|
||||
stlo.q r22, -16, r24
|
||||
stlo.q r22, -8, r25
|
||||
bgeu r27, r22, tr0
|
||||
|
||||
Loop_ua:
|
||||
addi r22, 8, r22
|
||||
sthi.q r22, -1, r0
|
||||
stlo.q r22, -8, r0
|
||||
ldx.q r22, r6, r0
|
||||
bgtu/l r5, r22, tr1
|
||||
|
||||
add r3, r4, r7
|
||||
ldlo.q r7, -8, r1
|
||||
sthi.q r22, 7, r0
|
||||
ldhi.q r7, -1, r7
|
||||
ptabs r18,tr1
|
||||
stlo.q r22, 0, r0
|
||||
or r1, r7, r1
|
||||
sthi.q r5, 15, r1
|
||||
stlo.q r5, 8, r1
|
||||
blink tr1, r63
|
||||
|
||||
#else /* ! SHMEDIA, i.e. SH1 .. SH4 / SHcompact */
|
||||
|
||||
#ifdef __SH5__
|
||||
#define DST r2
|
||||
#define SRC r3
|
||||
#define COUNT r4
|
||||
#define TMP0 r5
|
||||
#define TMP1 r6
|
||||
#define RESULT r2
|
||||
#else
|
||||
#define DST r4
|
||||
#define SRC r5
|
||||
#define COUNT r6
|
||||
#define TMP0 r2
|
||||
#define TMP1 r3
|
||||
#define RESULT r0
|
||||
#endif
|
||||
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
! Little endian version copies with increasing addresses.
|
||||
mov DST,TMP1 ! Save return value
|
||||
mov #11,r0 ! Check if small number of bytes
|
||||
cmp/hs r0,COUNT
|
||||
! COUNT becomes src end address
|
||||
SL(bf, L_small, add SRC,COUNT)
|
||||
mov #1,r1
|
||||
tst r1,SRC ! check if source even
|
||||
SL(bt, L_even, mov COUNT,r7)
|
||||
mov.b @SRC+,r0 ! no, make it even.
|
||||
mov.b r0,@DST
|
||||
add #1,DST
|
||||
L_even: tst r1,DST ! check if destination is even
|
||||
add #-3,r7
|
||||
SL(bf, L_odddst, mov #2,r1)
|
||||
tst r1,DST ! check if destination is 4-byte aligned
|
||||
mov DST,r0
|
||||
SL(bt, L_al4dst, sub SRC,r0)
|
||||
mov.w @SRC+,TMP0
|
||||
mov.w TMP0,@DST
|
||||
! add #2,DST DST is dead here.
|
||||
L_al4dst:
|
||||
tst r1,SRC
|
||||
bt L_al4both
|
||||
mov.w @SRC+,r1
|
||||
swap.w r1,r1
|
||||
add #-6,r0
|
||||
add #-6,r7 ! r7 := src end address minus 9.
|
||||
.align 2
|
||||
L_2l_loop:
|
||||
mov.l @SRC+,TMP0 ! Read & write two longwords per iteration
|
||||
xtrct TMP0,r1
|
||||
mov.l r1,@(r0,SRC)
|
||||
cmp/hs r7,SRC
|
||||
mov.l @SRC+,r1
|
||||
xtrct r1,TMP0
|
||||
mov.l TMP0,@(r0,SRC)
|
||||
bf L_2l_loop
|
||||
add #-2,SRC
|
||||
bra L_cleanup
|
||||
add #5,r0
|
||||
L_al4both:
|
||||
add #-4,r0
|
||||
.align 2
|
||||
L_al4both_loop:
|
||||
mov.l @SRC+,DST ! Read longword, write longword per iteration
|
||||
cmp/hs r7,SRC
|
||||
SL(bf, L_al4both_loop, mov.l DST,@(r0,SRC))
|
||||
|
||||
bra L_cleanup
|
||||
add #3,r0
|
||||
|
||||
L_odddst:
|
||||
tst r1,SRC
|
||||
SL(bt, L_al4src, add #-1,DST)
|
||||
mov.w @SRC+,r0
|
||||
mov.b r0,@(1,DST)
|
||||
shlr8 r0
|
||||
mov.b r0,@(2,DST)
|
||||
add #2,DST
|
||||
L_al4src:
|
||||
.align 2
|
||||
L_odd_loop:
|
||||
mov.l @SRC+,r0 ! Read longword, write byte, word, byte per iteration
|
||||
cmp/hs r7,SRC
|
||||
mov.b r0,@(1,DST)
|
||||
shlr8 r0
|
||||
mov.w r0,@(2,DST)
|
||||
shlr16 r0
|
||||
mov.b r0,@(4,DST)
|
||||
SL(bf, L_odd_loop, add #4,DST)
|
||||
.align 2 ! avoid nop in more frequently executed code.
|
||||
L_cleanup2:
|
||||
mov DST,r0
|
||||
sub SRC,r0
|
||||
L_cleanup:
|
||||
cmp/eq COUNT,SRC
|
||||
bt L_ready
|
||||
.align 2
|
||||
L_cleanup_loop:
|
||||
mov.b @SRC+,r1
|
||||
cmp/eq COUNT,SRC
|
||||
mov.b r1,@(r0,SRC)
|
||||
bf L_cleanup_loop
|
||||
L_ready:
|
||||
rts
|
||||
mov TMP1,RESULT
|
||||
L_small:
|
||||
bra L_cleanup2
|
||||
add #-1,DST
|
||||
#else /* ! __LITTLE_ENDIAN__ */
|
||||
! Big endian version copies with decreasing addresses.
|
||||
mov DST,r0
|
||||
add COUNT,r0
|
||||
sub DST,SRC
|
||||
mov #11,r1
|
||||
cmp/hs r1,COUNT
|
||||
SL(bf, L_small, add #-1,SRC)
|
||||
mov SRC,TMP1
|
||||
add r0,TMP1
|
||||
shlr TMP1
|
||||
SL(bt, L_even,
|
||||
mov DST,r7)
|
||||
mov.b @(r0,SRC),TMP0
|
||||
add #-1,TMP1
|
||||
mov.b TMP0,@-r0
|
||||
L_even:
|
||||
tst #1,r0
|
||||
add #-1,SRC
|
||||
SL(bf, L_odddst, add #8,r7)
|
||||
tst #2,r0
|
||||
bt L_al4dst
|
||||
add #-1,TMP1
|
||||
mov.w @(r0,SRC),r1
|
||||
mov.w r1,@-r0
|
||||
L_al4dst:
|
||||
shlr TMP1
|
||||
bt L_al4both
|
||||
mov.w @(r0,SRC),r1
|
||||
swap.w r1,r1
|
||||
add #4,r7
|
||||
add #-4,SRC
|
||||
.align 2
|
||||
L_2l_loop:
|
||||
mov.l @(r0,SRC),TMP0
|
||||
xtrct TMP0,r1
|
||||
mov.l r1,@-r0
|
||||
cmp/hs r7,r0
|
||||
mov.l @(r0,SRC),r1
|
||||
xtrct r1,TMP0
|
||||
mov.l TMP0,@-r0
|
||||
bt L_2l_loop
|
||||
bra L_cleanup
|
||||
add #5,SRC
|
||||
|
||||
nop ! avoid nop in executed code.
|
||||
L_al4both:
|
||||
add #-2,SRC
|
||||
.align 2
|
||||
L_al4both_loop:
|
||||
mov.l @(r0,SRC),r1
|
||||
cmp/hs r7,r0
|
||||
SL(bt, L_al4both_loop,
|
||||
mov.l r1,@-r0)
|
||||
bra L_cleanup
|
||||
add #3,SRC
|
||||
|
||||
nop ! avoid nop in executed code.
|
||||
L_odddst:
|
||||
shlr TMP1
|
||||
bt L_al4src
|
||||
mov.w @(r0,SRC),r1
|
||||
mov.b r1,@-r0
|
||||
shlr8 r1
|
||||
mov.b r1,@-r0
|
||||
L_al4src:
|
||||
add #-2,SRC
|
||||
.align 2
|
||||
L_odd_loop:
|
||||
mov.l @(r0,SRC),TMP0
|
||||
cmp/hs r7,r0
|
||||
mov.b TMP0,@-r0
|
||||
shlr8 TMP0
|
||||
mov.w TMP0,@-r0
|
||||
shlr16 TMP0
|
||||
mov.b TMP0,@-r0
|
||||
bt L_odd_loop
|
||||
|
||||
add #3,SRC
|
||||
L_cleanup:
|
||||
L_small:
|
||||
cmp/eq DST,r0
|
||||
bt L_ready
|
||||
add #1,DST
|
||||
.align 2
|
||||
L_cleanup_loop:
|
||||
mov.b @(r0,SRC),TMP0
|
||||
cmp/eq DST,r0
|
||||
mov.b TMP0,@-r0
|
||||
bf L_cleanup_loop
|
||||
L_ready:
|
||||
rts
|
||||
mov r0,RESULT
|
||||
#endif /* ! __LITTLE_ENDIAN__ */
|
||||
#endif /* ! SHMEDIA */
|
|
@ -0,0 +1,164 @@
|
|||
!
|
||||
! Fast SH memset
|
||||
!
|
||||
! by Toshiyasu Morita (tm@netcom.com)
|
||||
!
|
||||
! SH5 code by J"orn Rennecke (joern.rennecke@superh.com)
|
||||
! Copyright 2002 SuperH Ltd.
|
||||
!
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(memset)
|
||||
#if __SHMEDIA__
|
||||
pta/l multiquad, tr0
|
||||
ptabs r18, tr2
|
||||
|
||||
andi r2, -8, r25
|
||||
add r2, r4, r5
|
||||
addi r5, -1, r20 // calculate end address.
|
||||
andi r20, -8, r20
|
||||
cmveq r4, r25, r20
|
||||
bne/u r25, r20, tr0 // multiquad
|
||||
|
||||
! This sequence could clobber volatile objects that are in the same
|
||||
! quadword as a very short char array.
|
||||
! ldlo.q r2, 0, r7
|
||||
! shlli r4, 2, r4
|
||||
! movi -1, r8
|
||||
! SHHI r8, r4, r8
|
||||
! SHHI r8, r4, r8
|
||||
! mcmv r7, r8, r3
|
||||
! stlo.q r2, 0, r3
|
||||
|
||||
pta/l setlongs, tr0
|
||||
movi 4, r8
|
||||
bgeu/u r4, r8, tr0
|
||||
pta/l endset, tr0
|
||||
beqi/u r4, 0, tr0
|
||||
st.b r2, 0, r3
|
||||
beqi/u r4, 1, tr0
|
||||
nop
|
||||
st.b r2, 1, r3
|
||||
beqi/l r4, 2, tr0
|
||||
st.b r2,2,r3
|
||||
endset: blink tr2, r63
|
||||
setlongs:
|
||||
mshflo.b r3, r3, r3
|
||||
mperm.w r3, r63, r3 // Fill pattern now in every byte of r3
|
||||
stlo.l r2, 0, r3
|
||||
nop
|
||||
nop
|
||||
sthi.l r5, -1, r3
|
||||
blink tr2, r63
|
||||
|
||||
multiquad:
|
||||
mshflo.b r3, r3, r3
|
||||
mperm.w r3, r63, r3 // Fill pattern now in every byte of r3
|
||||
pta/l lastquad, tr0
|
||||
stlo.q r2, 0, r3
|
||||
sub r20, r25, r24
|
||||
movi 64, r9
|
||||
beqi/u r24, 8, tr0 // lastquad
|
||||
pta/l loop, tr1
|
||||
addi r20, -7*8, r8 // loop end address; This might overflow, so we need
|
||||
// to use a different test before we start the loop
|
||||
bgeu/u r24, r9, tr1// loop
|
||||
st.q r25, 8, r3
|
||||
shlri r24, 4, r24
|
||||
st.q r20, -8, r3
|
||||
beqi/u r24, 1, tr0 // lastquad
|
||||
st.q r25, 16, r3
|
||||
st.q r20, -16, r3
|
||||
beqi/u r24, 2, tr0 // lastquad
|
||||
st.q r25, 24, r3
|
||||
st.q r20, -24, r3
|
||||
lastquad:
|
||||
sthi.q r5, -1, r3
|
||||
blink tr2,r63
|
||||
|
||||
loop:
|
||||
alloco r25, 32
|
||||
st.q r25, 8, r3
|
||||
st.q r25, 16, r3
|
||||
st.q r25, 24, r3
|
||||
st.q r25, 32, r3
|
||||
addi r25, 32, r25
|
||||
bgeu/l r8, r25, tr1 // loop
|
||||
|
||||
st.q r20, -40, r3
|
||||
st.q r20, -32, r3
|
||||
st.q r20, -24, r3
|
||||
st.q r20, -16, r3
|
||||
st.q r20, -8, r3
|
||||
sthi.q r5, -1, r3
|
||||
blink tr2,r63
|
||||
#else /* ! SHMEDIA, i.e. SH1 .. SH4 / SHcompact */
|
||||
! Entry: r4: destination pointer
|
||||
! r5: fill value
|
||||
! r6: byte count
|
||||
!
|
||||
! Exit: r0-r3: trashed
|
||||
!
|
||||
|
||||
! This assumes that the first four bytes of the address space (0..3) are
|
||||
! reserved - usually by the linker script. Otherwise, we would had to check
|
||||
! for the case of objects of the size 12..15 at address 0..3 .
|
||||
|
||||
#ifdef __SH5__
|
||||
#define DST r2
|
||||
#define VAL r3
|
||||
#define CNT r4
|
||||
#define TMP r5
|
||||
#else
|
||||
#define DST r4
|
||||
#define VAL r5
|
||||
#define CNT r6
|
||||
#define TMP r2
|
||||
#endif
|
||||
|
||||
mov #12,r0 ! Check for small number of bytes
|
||||
cmp/gt CNT,r0
|
||||
mov DST,r0
|
||||
SL(bt, L_store_byte_loop_check0, add DST,CNT)
|
||||
|
||||
tst #3,r0 ! Align destination
|
||||
SL(bt, L_dup_bytes, extu.b r5,r5)
|
||||
.balignw 4,0x0009
|
||||
L_align_loop:
|
||||
mov.b VAL,@r0
|
||||
add #1,r0
|
||||
tst #3,r0
|
||||
bf L_align_loop
|
||||
|
||||
L_dup_bytes:
|
||||
swap.b VAL,TMP ! Duplicate bytes across longword
|
||||
or TMP,VAL
|
||||
swap.w VAL,TMP
|
||||
or TMP,VAL
|
||||
|
||||
add #-16,CNT
|
||||
|
||||
.balignw 4,0x0009
|
||||
L_store_long_loop:
|
||||
mov.l VAL,@r0 ! Store double longs to memory
|
||||
cmp/hs CNT,r0
|
||||
mov.l VAL,@(4,r0)
|
||||
SL(bf, L_store_long_loop, add #8,r0)
|
||||
|
||||
add #16,CNT
|
||||
|
||||
L_store_byte_loop_check0:
|
||||
cmp/eq CNT,r0
|
||||
bt L_exit
|
||||
.balignw 4,0x0009
|
||||
L_store_byte_loop:
|
||||
mov.b VAL,@r0 ! Store bytes to memory
|
||||
add #1,r0
|
||||
cmp/eq CNT,r0
|
||||
bf L_store_byte_loop
|
||||
|
||||
L_exit:
|
||||
rts
|
||||
mov r4,r0
|
||||
#endif /* ! SHMEDIA */
|
|
@ -0,0 +1,191 @@
|
|||
/* We want to pretend we're in SHmedia mode, even when assembling for
|
||||
SHcompact. */
|
||||
#if __SH5__ == 32 && ! __SHMEDIA__
|
||||
# undef __SHMEDIA__
|
||||
# define __SHMEDIA__ 1
|
||||
#endif
|
||||
|
||||
#if __SHMEDIA__
|
||||
.mode SHmedia
|
||||
#endif
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(setjmp)
|
||||
#if __SH5__
|
||||
ptabs r18, tr0
|
||||
gettr tr5, r5
|
||||
gettr tr6, r6
|
||||
gettr tr7, r7
|
||||
st.q r2, 0*8, r18
|
||||
st.q r2, 1*8, r10
|
||||
st.q r2, 2*8, r11
|
||||
st.q r2, 3*8, r12
|
||||
st.q r2, 4*8, r13
|
||||
st.q r2, 5*8, r14
|
||||
st.q r2, 6*8, r15
|
||||
st.q r2, 7*8, r28
|
||||
st.q r2, 8*8, r29
|
||||
st.q r2, 9*8, r30
|
||||
st.q r2, 10*8, r31
|
||||
st.q r2, 11*8, r32
|
||||
st.q r2, 12*8, r33
|
||||
st.q r2, 13*8, r34
|
||||
st.q r2, 14*8, r35
|
||||
st.q r2, 15*8, r44
|
||||
st.q r2, 16*8, r45
|
||||
st.q r2, 17*8, r46
|
||||
st.q r2, 18*8, r47
|
||||
st.q r2, 19*8, r48
|
||||
st.q r2, 20*8, r49
|
||||
st.q r2, 21*8, r50
|
||||
st.q r2, 22*8, r51
|
||||
st.q r2, 23*8, r52
|
||||
st.q r2, 24*8, r53
|
||||
st.q r2, 25*8, r54
|
||||
st.q r2, 26*8, r55
|
||||
st.q r2, 27*8, r56
|
||||
st.q r2, 28*8, r57
|
||||
st.q r2, 29*8, r58
|
||||
st.q r2, 30*8, r59
|
||||
st.q r2, 31*8, r5
|
||||
st.q r2, 32*8, r6
|
||||
st.q r2, 33*8, r7
|
||||
#if ! __SH4_NOFPU__
|
||||
fst.d r2, 34*8, dr12
|
||||
fst.d r2, 35*8, dr14
|
||||
fst.d r2, 36*8, dr36
|
||||
fst.d r2, 37*8, dr38
|
||||
fst.d r2, 38*8, dr40
|
||||
fst.d r2, 39*8, dr42
|
||||
fst.d r2, 40*8, dr44
|
||||
fst.d r2, 41*8, dr46
|
||||
fst.d r2, 42*8, dr48
|
||||
fst.d r2, 43*8, dr50
|
||||
fst.d r2, 44*8, dr52
|
||||
fst.d r2, 45*8, dr54
|
||||
fst.d r2, 46*8, dr56
|
||||
fst.d r2, 47*8, dr58
|
||||
fst.d r2, 48*8, dr60
|
||||
fst.d r2, 49*8, dr62
|
||||
#endif
|
||||
movi 0, r2
|
||||
blink tr0, r63
|
||||
#else
|
||||
#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
|
||||
add #(13*4),r4
|
||||
#else
|
||||
add #(9*4),r4
|
||||
#endif
|
||||
|
||||
sts.l pr,@-r4
|
||||
|
||||
#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
|
||||
fmov.s fr15,@-r4 ! call saved floating point registers
|
||||
fmov.s fr14,@-r4
|
||||
fmov.s fr13,@-r4
|
||||
fmov.s fr12,@-r4
|
||||
#endif
|
||||
|
||||
mov.l r15,@-r4 ! call saved integer registers
|
||||
mov.l r14,@-r4
|
||||
mov.l r13,@-r4
|
||||
mov.l r12,@-r4
|
||||
|
||||
mov.l r11,@-r4
|
||||
mov.l r10,@-r4
|
||||
mov.l r9,@-r4
|
||||
mov.l r8,@-r4
|
||||
|
||||
rts
|
||||
mov #0,r0
|
||||
#endif /* __SH5__ */
|
||||
|
||||
ENTRY(longjmp)
|
||||
#if __SH5__
|
||||
ld.q r2, 0*8, r18
|
||||
ptabs r18, tr0
|
||||
ld.q r2, 1*8, r10
|
||||
ld.q r2, 2*8, r11
|
||||
ld.q r2, 3*8, r12
|
||||
ld.q r2, 4*8, r13
|
||||
ld.q r2, 5*8, r14
|
||||
ld.q r2, 6*8, r15
|
||||
ld.q r2, 7*8, r28
|
||||
ld.q r2, 8*8, r29
|
||||
ld.q r2, 9*8, r30
|
||||
ld.q r2, 10*8, r31
|
||||
ld.q r2, 11*8, r32
|
||||
ld.q r2, 12*8, r33
|
||||
ld.q r2, 13*8, r34
|
||||
ld.q r2, 14*8, r35
|
||||
ld.q r2, 15*8, r44
|
||||
ld.q r2, 16*8, r45
|
||||
ld.q r2, 17*8, r46
|
||||
ld.q r2, 18*8, r47
|
||||
ld.q r2, 19*8, r48
|
||||
ld.q r2, 20*8, r49
|
||||
ld.q r2, 21*8, r50
|
||||
ld.q r2, 22*8, r51
|
||||
ld.q r2, 23*8, r52
|
||||
ld.q r2, 24*8, r53
|
||||
ld.q r2, 25*8, r54
|
||||
ld.q r2, 26*8, r55
|
||||
ld.q r2, 27*8, r56
|
||||
ld.q r2, 28*8, r57
|
||||
ld.q r2, 29*8, r58
|
||||
ld.q r2, 30*8, r59
|
||||
ld.q r2, 31*8, r5
|
||||
ld.q r2, 32*8, r6
|
||||
ld.q r2, 33*8, r7
|
||||
ptabs r5, tr5
|
||||
ptabs r6, tr6
|
||||
ptabs r7, tr7
|
||||
#if ! __SH4_NOFPU__
|
||||
fld.d r2, 34*8, dr12
|
||||
fld.d r2, 35*8, dr14
|
||||
fld.d r2, 36*8, dr36
|
||||
fld.d r2, 37*8, dr38
|
||||
fld.d r2, 38*8, dr40
|
||||
fld.d r2, 39*8, dr42
|
||||
fld.d r2, 40*8, dr44
|
||||
fld.d r2, 41*8, dr46
|
||||
fld.d r2, 42*8, dr48
|
||||
fld.d r2, 43*8, dr50
|
||||
fld.d r2, 44*8, dr52
|
||||
fld.d r2, 45*8, dr54
|
||||
fld.d r2, 46*8, dr56
|
||||
fld.d r2, 47*8, dr58
|
||||
fld.d r2, 48*8, dr60
|
||||
fld.d r2, 49*8, dr62
|
||||
#endif
|
||||
movi 1, r2
|
||||
cmvne r3, r3, r2
|
||||
blink tr0, r63
|
||||
#else
|
||||
mov.l @r4+,r8
|
||||
mov.l @r4+,r9
|
||||
mov.l @r4+,r10
|
||||
mov.l @r4+,r11
|
||||
|
||||
mov.l @r4+,r12
|
||||
mov.l @r4+,r13
|
||||
mov.l @r4+,r14
|
||||
mov.l @r4+,r15
|
||||
|
||||
#if defined (__SH2E__) || defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
|
||||
fmov.s @r4+,fr12 ! call saved floating point registers
|
||||
fmov.s @r4+,fr13
|
||||
fmov.s @r4+,fr14
|
||||
fmov.s @r4+,fr15
|
||||
#endif
|
||||
|
||||
lds.l @r4+,pr
|
||||
|
||||
mov r5,r0
|
||||
tst r0,r0
|
||||
bf retr4
|
||||
movt r0
|
||||
retr4: rts
|
||||
nop
|
||||
#endif /* __SH5__ */
|
|
@ -0,0 +1,225 @@
|
|||
! SH5 code Copyright 2002 SuperH Ltd.
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(strcmp)
|
||||
|
||||
#if __SHMEDIA__
|
||||
ld.ub r2,0,r4
|
||||
pt/l quickret0,tr0
|
||||
ld.ub r3,0,r5
|
||||
ptabs r18,tr2
|
||||
beqi/u r4,0,tr0
|
||||
ld.ub r2,1,r6
|
||||
bne/u r4,r5,tr0
|
||||
pt/l quickret1,tr1
|
||||
ld.ub r3,1,r7
|
||||
beqi/u r6,0,tr1
|
||||
ld.ub r2,2,r4
|
||||
bne/u r6,r7,tr1
|
||||
ld.ub r3,2,r5
|
||||
beqi/u r4,0,tr0
|
||||
ld.ub r2,3,r6
|
||||
bne/u r4,r5,tr0
|
||||
ld.ub r3,3,r7
|
||||
beqi/u r6,0,tr1
|
||||
ld.ub r2,4,r4
|
||||
bne/u r6,r7,tr1
|
||||
ld.ub r3,4,r5
|
||||
beqi/u r4,0,tr0
|
||||
ld.ub r2,5,r6
|
||||
bne/u r4,r5,tr0
|
||||
ld.ub r3,5,r7
|
||||
beqi/u r6,0,tr1
|
||||
ld.ub r2,6,r4
|
||||
bne/u r6,r7,tr1
|
||||
ld.ub r3,6,r5
|
||||
beqi/u r4,0,tr0
|
||||
ld.ub r2,7,r6
|
||||
bne/u r4,r5,tr0
|
||||
ld.ub r3,7,r7
|
||||
beqi/u r6,0,tr1
|
||||
sub r3,r2,r3
|
||||
bne/u r6,r7,tr1
|
||||
|
||||
andi r2,-8,r2
|
||||
add r3,r2,r3
|
||||
ldlo.q r3,8,r23
|
||||
pt r23_zero,tr0
|
||||
shlli r3,3,r22
|
||||
sub r63,r22,r20
|
||||
movi 0x101,r6
|
||||
mperm.w r6,r63,r6
|
||||
SHLO r6,r22,r7
|
||||
msubs.ub r7,r23,r8
|
||||
pt loop,tr1
|
||||
bnei/u r8,0,tr0 // r23_zero
|
||||
pt found_zero,tr0
|
||||
addi r3,15,r3
|
||||
andi r3,-8,r3
|
||||
sub r3,r2,r3
|
||||
bne/l r7,r6,tr1 // loop
|
||||
/* The strings are aligned to each other. */
|
||||
/* It is possible to have a loop with six cycles / iteration
|
||||
by re-ordering the exit conditions, but then it needs extra
|
||||
time and/or code to sort out the r4 != r5 case. */
|
||||
pt al_loop,tr1
|
||||
pt al_found_zero,tr0
|
||||
al_loop:
|
||||
ld.q r2,8,r4
|
||||
ldx.q r2,r3,r5
|
||||
addi r2,8,r2
|
||||
mcmpeq.b r63,r4,r8
|
||||
pt cmp_quad,tr3
|
||||
bnei/u r8,0,tr0 // al_found_zero
|
||||
beq/l r4,r5,tr1 // al_loop
|
||||
blink tr3,r63 // cmp_quad
|
||||
|
||||
.balign 8
|
||||
quickret0:
|
||||
sub r4,r5,r2
|
||||
blink tr2,r63
|
||||
quickret1:
|
||||
sub r6,r7,r2
|
||||
blink tr2,r63
|
||||
|
||||
loop:
|
||||
ld.q r2,8,r4
|
||||
ldx.q r2,r3,r19
|
||||
addi r2,8,r2
|
||||
msubs.ub r6,r4,r8
|
||||
mcmpeq.b r63,r19,r9
|
||||
SHHI r19,r20,r21
|
||||
or r21,r23,r5
|
||||
SHLO r19,r22,r23
|
||||
bne/u r8,r9,tr0 // found_zero
|
||||
beq/l r4,r5,tr1 // loop
|
||||
cmp_quad:
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
byterev r4,r4
|
||||
byterev r5,r5
|
||||
#endif
|
||||
cmpgtu r4,r5,r6
|
||||
cmpgtu r5,r4,r7
|
||||
sub r6,r7,r2
|
||||
blink tr2,r63
|
||||
found_zero:
|
||||
pt zero_now,tr0
|
||||
pt cmp_quad,tr1
|
||||
SHHI r9,r20,r7
|
||||
bne/u r8,r7,tr0 // zero_now
|
||||
bne/u r4,r5,tr1 // cmp_quad
|
||||
SHLO r9,r22,r8
|
||||
r23_zero:
|
||||
ld.q r2,8,r4
|
||||
add r23,r63,r5
|
||||
zero_now:
|
||||
al_found_zero:
|
||||
/* We konw that one of the values has at lest one zero, and r8 holds
|
||||
an 0x01 or 0xff mask for every zero found in one of the operands.
|
||||
If both operands have the first zero in the same place, this mask
|
||||
allows us to truncate the comparison to the valid bytes in the
|
||||
strings. If the first zero is in different places, it doesn't
|
||||
matter if some invalid bytes are included, since the comparison
|
||||
of the zero with the non-zero will determine the outcome. */
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
shlli r8,8,r8
|
||||
addi r8,-1,r9
|
||||
andc r9,r8,r8
|
||||
and r8,r4,r4
|
||||
and r8,r5,r5
|
||||
#else
|
||||
shlri r8,1,r8
|
||||
nsb r8,r8
|
||||
addi r8,8,r8
|
||||
andi r8,56,r8
|
||||
sub r63,r8,r8
|
||||
shlrd r4,r8,r4
|
||||
shlrd r5,r8,r5
|
||||
#endif
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
byterev r4,r4
|
||||
byterev r5,r5
|
||||
#endif
|
||||
cmpgtu r4,r5,r6
|
||||
cmpgtu r5,r4,r7
|
||||
sub r6,r7,r2
|
||||
blink tr2,r63
|
||||
|
||||
#else /* ! __SHMEDIA__, i.e. SH 1..4 / SHcompact */
|
||||
|
||||
#ifdef __SH5__
|
||||
#define STR1 r2
|
||||
#define STR2 r3
|
||||
#define RESULT r2
|
||||
#define TMP r4
|
||||
#else
|
||||
! Entry: r4: string1
|
||||
! r5: string2
|
||||
! Exit: r0: result
|
||||
! r1-r2,r4-r5: clobbered
|
||||
#define STR1 r4
|
||||
#define STR2 r5
|
||||
#define RESULT r0
|
||||
#define TMP r2
|
||||
#endif /* __SH5__ */
|
||||
|
||||
mov STR1,r0
|
||||
or STR2,r0
|
||||
tst #3,r0
|
||||
bf L_setup_char_loop
|
||||
mov #0,r0
|
||||
#ifdef DELAYED_BRANCHES
|
||||
mov.l @STR1+,r1
|
||||
.align 2
|
||||
Longword_loop:
|
||||
mov.l @STR2+,TMP
|
||||
cmp/str r0,r1
|
||||
bt Longword_loop_end
|
||||
cmp/eq r1,TMP
|
||||
bt.s Longword_loop
|
||||
mov.l @STR1+,r1
|
||||
add #-4, STR1
|
||||
Longword_loop_end:
|
||||
add #-4, STR1
|
||||
add #-4, STR2
|
||||
L_setup_char_loop:
|
||||
mov.b @STR1+,r0
|
||||
.align 2
|
||||
L_char_loop:
|
||||
mov.b @STR2+,r1
|
||||
tst r0,r0
|
||||
bt L_return
|
||||
cmp/eq r0,r1
|
||||
bt.s L_char_loop
|
||||
mov.b @STR1+,r0
|
||||
add #-2,STR1
|
||||
mov.b @STR1,r0
|
||||
#else /* ! DELAYED_BRANCHES */
|
||||
.align 2
|
||||
Longword_loop:
|
||||
mov.l @r4+,r1
|
||||
mov.l @r5+,r2
|
||||
cmp/str r0,r1
|
||||
bt Longword_loop_end
|
||||
cmp/eq r1,r2
|
||||
bt Longword_loop
|
||||
Longword_loop_end:
|
||||
add #-4, r4
|
||||
add #-4, r5
|
||||
.align 2
|
||||
L_setup_char_loop:
|
||||
L_char_loop:
|
||||
mov.b @r4+,r0
|
||||
mov.b @r5+,r1
|
||||
tst r0,r0
|
||||
bt L_return
|
||||
cmp/eq r0,r1
|
||||
bt L_char_loop
|
||||
#endif
|
||||
L_return:
|
||||
extu.b r0,RESULT
|
||||
extu.b r1,r1
|
||||
rts
|
||||
sub r1,RESULT
|
||||
#endif /* ! __SHMEDIA__ */
|
|
@ -0,0 +1,134 @@
|
|||
! Entry: arg0: destination
|
||||
! arg1: source
|
||||
! Exit: result: destination
|
||||
!
|
||||
! SH5 code Copyright 2002 SuperH Ltd.
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(strcpy)
|
||||
|
||||
#if __SHMEDIA__
|
||||
|
||||
pta/l shortstring,tr1
|
||||
ldlo.q r3,0,r4
|
||||
ptabs r18,tr4
|
||||
shlli r3,3,r7
|
||||
addi r2, 8, r0
|
||||
mcmpeq.b r4,r63,r6
|
||||
SHHI r6,r7,r6
|
||||
bnei/u r6,0,tr1 // shortstring
|
||||
pta/l no_lddst, tr2
|
||||
ori r3,-8,r23
|
||||
sub r2, r23, r0
|
||||
sub r3, r2, r21
|
||||
addi r21, 8, r20
|
||||
ldx.q r0, r21, r5
|
||||
pta/l loop, tr0
|
||||
ori r2,-8,r22
|
||||
mcmpeq.b r5, r63, r6
|
||||
bgt/u r22, r23, tr2 // no_lddst
|
||||
|
||||
// r22 < r23 : Need to do a load from the destination.
|
||||
// r22 == r23 : Doesn't actually need to load from destination,
|
||||
// but still can be handled here.
|
||||
ldlo.q r2, 0, r9
|
||||
movi -1, r8
|
||||
SHLO r8, r7, r8
|
||||
mcmv r4, r8, r9
|
||||
stlo.q r2, 0, r9
|
||||
beqi/l r6, 0, tr0 // loop
|
||||
|
||||
add r5, r63, r4
|
||||
addi r0, 8, r0
|
||||
blink tr1, r63 // shortstring
|
||||
no_lddst:
|
||||
// r22 > r23: note that for r22 == r23 the sthi.q would clobber
|
||||
// bytes before the destination region.
|
||||
stlo.q r2, 0, r4
|
||||
SHHI r4, r7, r4
|
||||
sthi.q r0, -1, r4
|
||||
beqi/l r6, 0, tr0 // loop
|
||||
|
||||
add r5, r63, r4
|
||||
addi r0, 8, r0
|
||||
shortstring:
|
||||
#ifndef __LITTLE_ENDIAN__
|
||||
pta/l shortstring2,tr1
|
||||
byterev r4,r4
|
||||
#endif
|
||||
shortstring2:
|
||||
st.b r0,-8,r4
|
||||
andi r4,0xff,r5
|
||||
shlri r4,8,r4
|
||||
addi r0,1,r0
|
||||
bnei/l r5,0,tr1
|
||||
blink tr4,r63 // return
|
||||
|
||||
.balign 8
|
||||
loop:
|
||||
stlo.q r0, 0, r5
|
||||
ldx.q r0, r20, r4
|
||||
addi r0, 16, r0
|
||||
sthi.q r0, -9, r5
|
||||
mcmpeq.b r4, r63, r6
|
||||
bnei/u r6, 0, tr1 // shortstring
|
||||
ldx.q r0, r21, r5
|
||||
stlo.q r0, -8, r4
|
||||
sthi.q r0, -1, r4
|
||||
mcmpeq.b r5, r63, r6
|
||||
beqi/l r6, 0, tr0 // loop
|
||||
|
||||
add r5, r63, r4
|
||||
addi r0, 8, r0
|
||||
blink tr1, r63 // shortstring
|
||||
|
||||
#else /* ! __SHMEDIA__, i.e. SH 1..4 / SHcompact */
|
||||
|
||||
#ifdef __SH5__
|
||||
#define DST r2
|
||||
#define SRC r3
|
||||
#define TMP r4
|
||||
#define RESULT R2
|
||||
! r0,r1,r3,r4: clobbered
|
||||
#else
|
||||
#define DST r4
|
||||
#define SRC r5
|
||||
#define TMP r2
|
||||
#define RESULT r0
|
||||
! r1-r2,r5: clobbered
|
||||
#endif
|
||||
mov DST,r0
|
||||
or SRC,r0
|
||||
tst #3,r0
|
||||
SL(bf, L_setup_char_loop, mov DST,r0)
|
||||
mov.l @SRC+,r1
|
||||
mov #0,TMP
|
||||
cmp/str TMP,r1
|
||||
SL(bt, Longword_loop_end, sub SRC,r0)
|
||||
.align 2
|
||||
Longword_loop:
|
||||
mov.l r1,@(r0,SRC)
|
||||
mov.l @SRC+,r1
|
||||
cmp/str TMP,r1
|
||||
bt Longword_loop_end
|
||||
mov.l r1,@(r0,SRC)
|
||||
mov.l @SRC+,r1
|
||||
cmp/str TMP,r1
|
||||
bf Longword_loop
|
||||
Longword_loop_end:
|
||||
add #-4,SRC
|
||||
add #3,r0
|
||||
.align 2
|
||||
L_char_loop:
|
||||
mov.b @SRC+,r1
|
||||
L_char_loop_start:
|
||||
tst r1,r1
|
||||
SL(bf, L_char_loop, mov.b r1,@(r0,SRC))
|
||||
rts
|
||||
mov DST,RESULT
|
||||
L_setup_char_loop:
|
||||
mov.b @SRC+,r1
|
||||
bra L_char_loop_start
|
||||
sub SRC,r0
|
||||
#endif /* ! __SHMEDIA__ */
|
|
@ -0,0 +1,87 @@
|
|||
! Entry: arg0: string start address
|
||||
! Exit: result: length
|
||||
!
|
||||
! Copyright 2002 SuperH Ltd.
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
ENTRY(strlen)
|
||||
|
||||
#if __SHMEDIA__
|
||||
|
||||
ldlo.q r2,0,r3
|
||||
ptabs/l r18,tr0
|
||||
pta/l loop,tr1
|
||||
andi r2,-8,r0
|
||||
shlli r2,3,r1
|
||||
mcmpeq.b r3,r63,r3
|
||||
SHHI r3,r1,r4
|
||||
beqi/u r4,0,tr1 // loop
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
movi -1,r2
|
||||
addi r3,-1,r4
|
||||
msad.ubq r3,r4,r2
|
||||
#else
|
||||
shlri r3,1,r3
|
||||
nsb r3,r3
|
||||
shlri r3,3,r2
|
||||
#endif
|
||||
blink tr0,r63
|
||||
|
||||
loop:
|
||||
ldlo.q r0,8,r3
|
||||
addi r0,8,r0
|
||||
ldlo.q r0,8,r63
|
||||
mcmpeq.b r3,r63,r3
|
||||
beqi/l r3,0,tr1 // loop
|
||||
sub r0,r2,r2
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
addi r3,-1,r4
|
||||
addi r2,-1,r2
|
||||
msad.ubq r3,r4,r2
|
||||
#else
|
||||
shlri r3,1,r3
|
||||
nsb r3,r3
|
||||
shlri r3,3,r3
|
||||
add r2,r3,r2
|
||||
#endif
|
||||
blink tr0,r63
|
||||
|
||||
#else /* ! __SHMEDIA__, i.e. SH 1..4 / SHcompact */
|
||||
|
||||
#ifdef __SH5__
|
||||
#define STR_INIT r2
|
||||
#define STR_ORIG r0
|
||||
#define STR_COPY STR_ORIG
|
||||
#define MASK r1
|
||||
#define TMP r3
|
||||
#define RESULT r2
|
||||
! r0,r1,r3: clobbered
|
||||
#else
|
||||
#define STR_INIT r4
|
||||
#define STR_ORIG STR_INIT
|
||||
#define STR_COPY STR
|
||||
#define MASK r1
|
||||
#define TMP r3
|
||||
#define RESULT r0
|
||||
! r1,r3: clobbered
|
||||
#endif
|
||||
#define STR RESULT
|
||||
|
||||
mov #3,MASK
|
||||
and STR_INIT,MASK
|
||||
tst MASK,MASK
|
||||
SL(bf, L_char_loop, mov STR_INIT, STR_COPY)
|
||||
L_word_loop:
|
||||
mov.l @STR+,TMP
|
||||
cmp/str MASK,TMP
|
||||
bf L_word_loop
|
||||
add #-4,STR
|
||||
L_char_loop:
|
||||
mov.b @STR+,TMP
|
||||
tst TMP,TMP
|
||||
bf L_char_loop
|
||||
add #-1,STR
|
||||
rts
|
||||
sub STR_ORIG,STR
|
||||
#endif /* ! __SHMEDIA__ */
|
|
@ -0,0 +1,209 @@
|
|||
/* Copyright 2003 SuperH Ltd. */
|
||||
|
||||
#include "asm.h"
|
||||
|
||||
#ifdef __SH5__
|
||||
#if __SHMEDIA__
|
||||
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#define ZPAD_MASK(src, dst) addi src, -1, dst
|
||||
#else
|
||||
#define ZPAD_MASK(src, dst) \
|
||||
byterev src, dst; addi dst, -1, dst; byterev dst, dst
|
||||
#endif
|
||||
|
||||
|
||||
/* We assume that the destination is not in the first 16 bytes of memory.
|
||||
A typical linker script will put the text section first, and as
|
||||
this code is longer that 16 bytes, you have to get out of your way
|
||||
to put data there. */
|
||||
ENTRY(strncpy)
|
||||
pt L_small, tr2
|
||||
ldlo.q r3, 0, r0
|
||||
shlli r3, 3, r19
|
||||
mcmpeq.b r0, r63, r1
|
||||
SHHI r1, r19, r7
|
||||
add r2, r4, r20
|
||||
addi r20, -8, r5
|
||||
/* If the size is greater than 8, we know we can read beyond the first
|
||||
(possibly partial) quadword, and write out a full first and last
|
||||
(possibly unaligned and/or overlapping) quadword. */
|
||||
bge/u r2, r5, tr2 // L_small
|
||||
pt L_found0, tr0
|
||||
addi r2, 8, r22
|
||||
bnei/u r7, 0, tr0 // L_found0
|
||||
ori r3, -8, r38
|
||||
pt L_end_early, tr1
|
||||
sub r2, r38, r22
|
||||
stlo.q r2, 0, r0
|
||||
sthi.q r2, 7, r0
|
||||
sub r3, r2, r6
|
||||
ldx.q r22, r6, r0
|
||||
/* Before each iteration, check that we can store in full the next quad we
|
||||
are about to fetch. */
|
||||
addi r5, -8, r36
|
||||
bgtu/u r22, r36, tr1 // L_end_early
|
||||
pt L_scan0, tr1
|
||||
L_scan0:
|
||||
addi r22, 8, r22
|
||||
mcmpeq.b r0, r63, r1
|
||||
stlo.q r22, -8, r0
|
||||
bnei/u r1, 0, tr0 // L_found0
|
||||
sthi.q r22, -1, r0
|
||||
ldx.q r22, r6, r0
|
||||
bgeu/l r36, r22, tr1 // L_scan0
|
||||
L_end:
|
||||
// At end; we might re-read a few bytes when we fetch the last quad.
|
||||
// branch mispredict, so load is ready now.
|
||||
mcmpeq.b r0, r63, r1
|
||||
addi r22, 8, r22
|
||||
bnei/u r1, 0, tr0 // L_found0
|
||||
add r3, r4, r7
|
||||
ldlo.q r7, -8, r1
|
||||
ldhi.q r7, -1, r7
|
||||
ptabs r18, tr0
|
||||
stlo.q r22, -8, r0
|
||||
or r1, r7, r1
|
||||
mcmpeq.b r1, r63, r7
|
||||
sthi.q r22, -1, r0
|
||||
ZPAD_MASK (r7, r7)
|
||||
and r1, r7, r1 // mask out non-zero bytes after first zero byte
|
||||
stlo.q r20, -8, r1
|
||||
sthi.q r20, -1, r1
|
||||
blink tr0, r63
|
||||
|
||||
L_end_early:
|
||||
/* Check if we can store the current quad in full. */
|
||||
pt L_end, tr1
|
||||
add r3, r4, r7
|
||||
bgtu/u r5, r22, tr1 // L_end // Not really unlikely, but gap is short.
|
||||
/* If not, that means we can just proceed to process the last quad.
|
||||
Two pipeline stalls are unavoidable, as we don't have enough ILP. */
|
||||
ldlo.q r7, -8, r1
|
||||
ldhi.q r7, -1, r7
|
||||
ptabs r18, tr0
|
||||
or r1, r7, r1
|
||||
mcmpeq.b r1, r63, r7
|
||||
ZPAD_MASK (r7, r7)
|
||||
and r1, r7, r1 // mask out non-zero bytes after first zero byte
|
||||
stlo.q r20, -8, r1
|
||||
sthi.q r20, -1, r1
|
||||
blink tr0, r63
|
||||
|
||||
L_found0:
|
||||
// r0: string to store, not yet zero-padding normalized.
|
||||
// r1: result of mcmpeq.b r0, r63, r1.
|
||||
// r22: store address plus 8. I.e. address where zero padding beyond the
|
||||
// string in r0 goes.
|
||||
// r20: store end address.
|
||||
// r5: store end address minus 8.
|
||||
pt L_write0_multiquad, tr0
|
||||
ZPAD_MASK (r1, r1)
|
||||
and r0, r1, r0 // mask out non-zero bytes after first zero byte
|
||||
stlo.q r22, -8, r0
|
||||
sthi.q r22, -1, r0
|
||||
andi r22, -8, r1 // Check if zeros to write fit in one quad word.
|
||||
bgtu/l r5, r1, tr0 // L_write0_multiquad
|
||||
ptabs r18, tr1
|
||||
sub r20, r22, r1
|
||||
shlli r1, 2, r1 // Do shift in two steps so that 64 bit case is
|
||||
SHLO r0, r1, r0 // handled correctly.
|
||||
SHLO r0, r1, r0
|
||||
sthi.q r20, -1, r0
|
||||
blink tr1, r63
|
||||
|
||||
L_write0_multiquad:
|
||||
pt L_write0_loop, tr0
|
||||
ptabs r18, tr1
|
||||
stlo.q r22, 0, r63
|
||||
sthi.q r20, -1, r63
|
||||
addi r1, 8, r1
|
||||
bgeu/l r5, r1, tr0 // L_write0_loop
|
||||
blink tr1, r63
|
||||
|
||||
L_write0_loop:
|
||||
st.q r1, 0 ,r63
|
||||
addi r1, 8, r1
|
||||
bgeu/l r5, r1, tr0 // L_write0_loop
|
||||
blink tr1, r63
|
||||
|
||||
L_small:
|
||||
// r0: string to store, not yet zero-padding normalized.
|
||||
// r1: result of mcmpeq.b r0, r63, r1.
|
||||
// r7: nonzero indicates relevant zero found r0.
|
||||
// r2: store address.
|
||||
// r3: read address.
|
||||
// r4: size, max 8
|
||||
// r20: store end address.
|
||||
// r5: store end address minus 8.
|
||||
pt L_nohi, tr0
|
||||
pt L_small_storelong, tr1
|
||||
ptabs r18, tr2
|
||||
sub r63, r4, r23
|
||||
bnei/u r7, 0, tr0 // L_nohi
|
||||
ori r3, -8, r7
|
||||
bge/l r23, r7, tr0 // L_nohi
|
||||
ldhi.q r3, 7, r1
|
||||
or r0, r1, r0
|
||||
mcmpeq.b r0, r63, r1
|
||||
L_nohi:
|
||||
ZPAD_MASK (r1, r1)
|
||||
and r0, r1, r0
|
||||
movi 4, r19
|
||||
bge/u r4, r19, tr1 // L_small_storelong
|
||||
|
||||
pt L_small_end, tr0
|
||||
#ifndef __LITTLE_ENDIAN__
|
||||
byterev r0, r0
|
||||
#endif
|
||||
beqi/u r4, 0, tr0 // L_small_end
|
||||
st.b r2, 0, r0
|
||||
beqi/u r4, 1, tr0 // L_small_end
|
||||
shlri r0, 8, r0
|
||||
st.b r2, 1, r0
|
||||
beqi/u r4, 2, tr0 // L_small_end
|
||||
shlri r0, 8, r0
|
||||
st.b r2, 2, r0
|
||||
L_small_end:
|
||||
blink tr2, r63
|
||||
|
||||
L_small_storelong:
|
||||
shlli r23, 3, r7
|
||||
SHHI r0, r7, r1
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
shlri r1, 32, r1
|
||||
#else
|
||||
shlri r0, 32, r0
|
||||
#endif
|
||||
stlo.l r2, 0, r0
|
||||
sthi.l r2, 3, r0
|
||||
stlo.l r20, -4, r1
|
||||
sthi.l r20, -1, r1
|
||||
blink tr2, r63
|
||||
|
||||
#else /* SHcompact */
|
||||
|
||||
/* This code is optimized for size. Instruction selection is SH5 specific.
|
||||
SH4 should use a different version. */
|
||||
ENTRY(strncpy)
|
||||
mov #0, r6
|
||||
cmp/eq r4, r6
|
||||
bt return
|
||||
mov r2, r5
|
||||
add #-1, r5
|
||||
add r5, r4
|
||||
loop:
|
||||
bt/s found0
|
||||
add #1, r5
|
||||
mov.b @r3+, r1
|
||||
found0:
|
||||
cmp/eq r5,r4
|
||||
mov.b r1, @r5
|
||||
bf/s loop
|
||||
cmp/eq r1, r6
|
||||
return:
|
||||
rts
|
||||
nop
|
||||
|
||||
#endif /* SHcompact */
|
||||
#endif /* __SH5__ */
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -691,6 +691,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1327,6 +1328,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2491,6 +2493,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3337,8 +3351,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -51,14 +51,6 @@ typedef struct {
|
|||
struct dirent dirent;
|
||||
} DIR;
|
||||
|
||||
DIR *opendir(const char *);
|
||||
int closedir(DIR *);
|
||||
struct dirent *readdir (DIR *);
|
||||
int readdir_r (DIR *__restrict, struct dirent *__restrict,
|
||||
struct dirent **__restrict);
|
||||
void rewinddir(DIR *);
|
||||
void seekdir(DIR *dir, off_t offset);
|
||||
off_t telldir(DIR *dir);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -689,6 +689,7 @@ enable_newlib_iconv
|
|||
enable_newlib_elix_level
|
||||
enable_newlib_io_float
|
||||
enable_newlib_supplied_syscalls
|
||||
enable_newlib_fno_builtin
|
||||
enable_dependency_tracking
|
||||
enable_maintainer_mode
|
||||
'
|
||||
|
@ -1325,6 +1326,7 @@ Optional Features:
|
|||
--enable-newlib-elix-level supply desired elix library level (1-4)
|
||||
--disable-newlib-io-float disable printf/scanf family float support
|
||||
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||
--disable-newlib-fno-builtin disable -fno-builtin flag to allow compiler to use builtin library functions
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors
|
||||
--enable-maintainer-mode enable make rules and dependencies not useful
|
||||
|
@ -2489,6 +2491,18 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-newlib-fno-builtin was given.
|
||||
if test "${enable_newlib_fno_builtin+set}" = set; then :
|
||||
enableval=$enable_newlib_fno_builtin; case "${enableval}" in
|
||||
yes) newlib_fno_builtin=yes ;;
|
||||
no) newlib_fno_builtin=no ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for newlib-fno-builtin option" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
newlib_fno_builtin=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
test -z "${with_target_subdir}" && with_target_subdir=.
|
||||
|
||||
|
@ -3335,8 +3349,6 @@ fi
|
|||
|
||||
. ${newlib_basedir}/configure.host
|
||||
|
||||
newlib_cflags="${newlib_cflags} -fno-builtin"
|
||||
|
||||
NEWLIB_CFLAGS=${newlib_cflags}
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = cygnus
|
|||
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
||||
|
||||
GENERAL_SOURCES = \
|
||||
closedir.c collate.c collcmp.c creat.c \
|
||||
closedir.c collate.c collcmp.c creat.c dirfd.c \
|
||||
fnmatch.c glob.c _isatty.c isatty.c \
|
||||
opendir.c readdir.c readdir_r.c \
|
||||
regcomp.c regerror.c regexec.c regfree.c \
|
||||
|
|
|
@ -74,14 +74,14 @@ lib_a_AR = $(AR) $(ARFLAGS)
|
|||
lib_a_LIBADD =
|
||||
am__objects_1 = lib_a-closedir.$(OBJEXT) lib_a-collate.$(OBJEXT) \
|
||||
lib_a-collcmp.$(OBJEXT) lib_a-creat.$(OBJEXT) \
|
||||
lib_a-fnmatch.$(OBJEXT) lib_a-glob.$(OBJEXT) \
|
||||
lib_a-_isatty.$(OBJEXT) lib_a-isatty.$(OBJEXT) \
|
||||
lib_a-opendir.$(OBJEXT) lib_a-readdir.$(OBJEXT) \
|
||||
lib_a-readdir_r.$(OBJEXT) lib_a-regcomp.$(OBJEXT) \
|
||||
lib_a-regerror.$(OBJEXT) lib_a-regexec.$(OBJEXT) \
|
||||
lib_a-regfree.$(OBJEXT) lib_a-rewinddir.$(OBJEXT) \
|
||||
lib_a-sleep.$(OBJEXT) lib_a-usleep.$(OBJEXT) \
|
||||
lib_a-telldir.$(OBJEXT)
|
||||
lib_a-dirfd.$(OBJEXT) lib_a-fnmatch.$(OBJEXT) \
|
||||
lib_a-glob.$(OBJEXT) lib_a-_isatty.$(OBJEXT) \
|
||||
lib_a-isatty.$(OBJEXT) lib_a-opendir.$(OBJEXT) \
|
||||
lib_a-readdir.$(OBJEXT) lib_a-readdir_r.$(OBJEXT) \
|
||||
lib_a-regcomp.$(OBJEXT) lib_a-regerror.$(OBJEXT) \
|
||||
lib_a-regexec.$(OBJEXT) lib_a-regfree.$(OBJEXT) \
|
||||
lib_a-rewinddir.$(OBJEXT) lib_a-sleep.$(OBJEXT) \
|
||||
lib_a-usleep.$(OBJEXT) lib_a-telldir.$(OBJEXT)
|
||||
am__objects_2 = lib_a-scandir.$(OBJEXT) lib_a-seekdir.$(OBJEXT)
|
||||
am__objects_3 = lib_a-execl.$(OBJEXT) lib_a-execle.$(OBJEXT) \
|
||||
lib_a-execlp.$(OBJEXT) lib_a-execv.$(OBJEXT) \
|
||||
|
@ -100,8 +100,8 @@ am__objects_4 = lib_a-popen.$(OBJEXT) lib_a-posix_spawn.$(OBJEXT)
|
|||
lib_a_OBJECTS = $(am_lib_a_OBJECTS)
|
||||
LTLIBRARIES = $(noinst_LTLIBRARIES)
|
||||
libposix_la_LIBADD =
|
||||
am__objects_6 = closedir.lo collate.lo collcmp.lo creat.lo fnmatch.lo \
|
||||
glob.lo _isatty.lo isatty.lo opendir.lo readdir.lo \
|
||||
am__objects_6 = closedir.lo collate.lo collcmp.lo creat.lo dirfd.lo \
|
||||
fnmatch.lo glob.lo _isatty.lo isatty.lo opendir.lo readdir.lo \
|
||||
readdir_r.lo regcomp.lo regerror.lo regexec.lo regfree.lo \
|
||||
rewinddir.lo sleep.lo usleep.lo telldir.lo
|
||||
am__objects_7 = scandir.lo seekdir.lo
|
||||
|
@ -290,7 +290,7 @@ top_srcdir = @top_srcdir@
|
|||
AUTOMAKE_OPTIONS = cygnus
|
||||
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
||||
GENERAL_SOURCES = \
|
||||
closedir.c collate.c collcmp.c creat.c \
|
||||
closedir.c collate.c collcmp.c creat.c dirfd.c \
|
||||
fnmatch.c glob.c _isatty.c isatty.c \
|
||||
opendir.c readdir.c readdir_r.c \
|
||||
regcomp.c regerror.c regexec.c regfree.c \
|
||||
|
@ -428,6 +428,12 @@ lib_a-creat.o: creat.c
|
|||
lib_a-creat.obj: creat.c
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-creat.obj `if test -f 'creat.c'; then $(CYGPATH_W) 'creat.c'; else $(CYGPATH_W) '$(srcdir)/creat.c'; fi`
|
||||
|
||||
lib_a-dirfd.o: dirfd.c
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dirfd.o `test -f 'dirfd.c' || echo '$(srcdir)/'`dirfd.c
|
||||
|
||||
lib_a-dirfd.obj: dirfd.c
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-dirfd.obj `if test -f 'dirfd.c'; then $(CYGPATH_W) 'dirfd.c'; else $(CYGPATH_W) '$(srcdir)/dirfd.c'; fi`
|
||||
|
||||
lib_a-fnmatch.o: fnmatch.c
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fnmatch.o `test -f 'fnmatch.c' || echo '$(srcdir)/'`fnmatch.c
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
#ifndef HAVE_OPENDIR
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2018 embedded brains GmbH
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <dirent.h>
|
||||
|
||||
int
|
||||
dirfd(DIR *dirp)
|
||||
{
|
||||
|
||||
return (__dirfd(dirp));
|
||||
}
|
||||
|
||||
#endif /* ! HAVE_OPENDIR */
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue