Corinna Vinschen
2a98b3363e
* libc/stdio/fvwrite.c: Allow writing in larger chunks for fully
...
buffered and unbuffered files, to improve write performance.
2013-11-04 14:18:44 +00:00
Corinna Vinschen
a5f316d8cf
* libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to
...
fix fwrite() of > 2GByte buffers.
2013-10-31 10:35:54 +00:00
Corinna Vinschen
566fd12b68
Implement malloc_stats for nano.
...
* libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro.
(sbrk_start): New variable.
(current_mallinfo, free_list): Forward declaration of data.
(chunk): Define size as long type.
(mallinfo): Synchronize with latest malloc.h.
(nano_*): Forward declaration of functions.
(get_chunk_from_ptr): Defined to static inline.
(nano_mallinfo): Implement this function.
(nano_malloc_stats): Implement this function.
2013-10-30 15:53:05 +00:00
Corinna Vinschen
4afcc6ced9
* libc/include/machine/_default_types.h: Revert change from 2013-10-10.
2013-10-30 15:51:13 +00:00
Hans-Peter Nilsson
72a386373e
* libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typo
...
in last change.
2013-10-24 01:21:33 +00:00
Corinna Vinschen
0c3d8e5ab5
* libc/include/stdio.h (funopen): Change prototype of
...
__readfn and __writefn parameter to match new definition of
FILE's _read and _write methods.
(_funopen_r): Ditto.
(funopen): Ditto.
(_funopen_r): Ditto.
* libc/include/sys/config.h (_READ_WRITE_BUFSIZE_TYPE) Define
as type int if not already defined. Add comment to explain.
* libc/include/sys/reent.h: Include stddef.h.
(struct __sFILE): Change type of last parameter in declaration
of _read and _write methods to _READ_WRITE_BUFSIZE_TYPE.
(struct __sFILE64): Ditto.
* libc/stdio/local.h (__sread): Declare with last parameter set
to _READ_WRITE_BUFSIZE_TYPE.
(__seofread): Ditto.
(__swrite): Ditto.
(__swrite64): Ditto.
* libc/stdio/fvwrite.c (__sfvwrite_r): Change type of local
variables w and s to _READ_WRITE_RETURN_TYPE.
* libc/stdio/fflush.c (__sflush_r): Change type of local variables
n and t to _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE.
Add local variables flags to keep _flags value.
* libc/stdio/fmemopen.c (fmemreader): Align to above change.
(fmemwriter): Ditto.
* libc/stdio/fopencookie.c (fcreader): Ditto.
(fcwriter): Ditto.
* libc/stdio/funopen.c (funread): Ditto.
(funwrite): Ditto.
(funreader): Ditto.
(funwriter): Ditto.
* libc/stdio/open_memstream.c (memwriter): Ditto.
* libc/stdio/stdio.c (__sread): Ditto.
(__seofread): Ditto.
(__swrite): Ditto.
* libc/stdio64/stdio64.c (__swrite64): Ditto.
2013-10-23 10:04:43 +00:00
Corinna Vinschen
f3debae528
Fix formatting
2013-10-18 08:44:12 +00:00
Corinna Vinschen
e4aa6ea112
* configure.in (enable-newlib-global-atexit): New option.
...
* configure: Regenerated.
* newlib.hin (_REENT_GLOBAL_ATEXIT): Place-holder.
* README (enable-newlib-global-atexit): Description for
new option.
2013-10-18 08:43:05 +00:00
Corinna Vinschen
05b637e340
* libc/include/sys/unistd.h (MAXPATHLEN): Delete.
...
* libc/include/sys/param.h (MAXPATHLEN): Define.
* libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise.
* libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
2013-10-18 08:30:29 +00:00
Corinna Vinschen
1c1fa247a6
Fix ChangeLog entries
2013-10-16 10:41:06 +00:00
Joel Sherrill
77e22783e4
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/libc/sys/rtems/sys/param.h: Update some parameters to
the latest FreeBSD values.
2013-10-15 17:40:02 +00:00
Joel Sherrill
50eb944a7c
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/sys/rtems/machine/_types.h (_HAVE_SYSTYPES): Define.
2013-10-15 17:39:19 +00:00
Joel Sherrill
8635dec1a5
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/sys/rtems/machine/_types.h (__dev_t): Define.
(__dev_t_defined) Likewise.
* libc/include/sys/_types.h (__dev_t): Delete RTEMS specific
definition.
2013-10-15 17:38:32 +00:00
Joel Sherrill
0351747c13
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/sys/rtems/machine/_types.h (__dev_t): Define.
(__dev_t_defined) Likewise.
* libc/include/sys/_types.h (__dev_t): Delete RTEMS specific
definition.
2013-10-15 17:37:37 +00:00
Joel Sherrill
7a75a3aa7c
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/sys/rtems/machine/_types.h (_ssize_t): Delete.
(__ssize_t_defined) Likewise.
2013-10-15 17:36:16 +00:00
Joel Sherrill
6a0563a2e3
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/machine/_default_types.h (__int8_t): Define via
<stdint.h> provided type.
(__uint8_t): Likewise.
(__int8_least_t): Likewise.
(__uint8_least_t): Likewise.
(__int16_t): Likewise.
(__uint16_t): Likewise.
(__int16_least_t): Likewise.
(__uint16_least_t): Likewise.
(__int32_t): Likewise.
(__uint32_t): Likewise.
(__int32_least_t): Likewise.
(__uint32_least_t): Likewise.
(__int64_t): Likewise.
(__uint64_t): Likewise.
2013-10-15 17:35:38 +00:00
Joel Sherrill
50588a20d4
2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/paths.h (_PATH_DEVNULL): Define.
(_PATH_DEVZERO): Likewise.
2013-10-15 17:34:23 +00:00
Joel Sherrill
40c63f3ec0
Formatting.
2013-10-15 17:33:47 +00:00
Jeff Johnston
d8914394e3
2013-10-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
...
* testsuite/newlib.wctype/twctype.c (main): Update
iswprint(0xce2) test case.
2013-10-09 18:56:52 +00:00
Steve Ellcey
e828abfaea
2013-10-03 Steve Ellcey <sellcey@mips.com>
...
* libc/machine/mips/memset.c: Remove.
* libc/machine/mips/memset.S: New.
* libc/machine/mips/Makefile.am: Change memset.c to memset.S
* libc/machine/mips/Makefile.in: Regenerate.
2013-10-03 21:51:52 +00:00
Jeff Johnston
c7c1a1ca1b
2013-10-01 Petr Hosek <phosek@chromium.org>
...
* configure.host: Disable new posix_spawn function for all
users of posix dir except Cygwin.
* libc/posix/Makefile.am: Add support for new posix_spawn function.
* libc/posix/Makefile.in: Regenerate.
* libc/posix/posix_spawn.c: New file.
* libc/include/spawn.h: Ditto.
2013-10-01 18:08:46 +00:00
Jeff Johnston
00fd23d50f
2013-09-13 Joey Ye <joey.ye@arm.com>
...
* libc/stdlib/nano-mallocr.c (nano_allopt): Typo fixed to ...
(nano_mallopt): ... this.
2013-09-13 16:51:48 +00:00
Jeff Johnston
44d6d53977
2013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/cdefs.h: Synchronize with latest FreeBSD
version.
* libc/include/stdatomic.h: Likewise.
2013-09-12 22:05:43 +00:00
Yaakov Selkowitz
45070312d4
* libc/include/search.h (__compar_fn_t): Add typedef.
...
(tdelete, tfind, tsearch): Use it.
* libc/include/stdlib.h (__compar_fn_t): Add typedef.
(bsearch, qsort): Use it.
2013-09-08 07:11:33 +00:00
Corinna Vinschen
cbd871ad41
* libc/stdlib/__atexit.c (__register_exitproc): NULL-ify
...
_on_exit_args_ptr when creating a new _atexit structure while
_REENT_SMALL is defined.
2013-08-19 09:03:42 +00:00
Corinna Vinschen
56d5fc7cda
* libc/configure.in (--enable-newlib-wchar-orient): Remove.
...
* libc/configure: Regenerated.
* libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Remove.
* libc/stdio/Makefile.in: Regenerated.
2013-08-12 11:31:53 +00:00
Corinna Vinschen
454b880298
* libc/sys/arm/crt0.S: Remove 'start'.
2013-08-12 11:28:28 +00:00
Joel Sherrill
c8c245c2d4
2013-08-08 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/string/strncat.c: Fix typo in documentation.
2013-08-08 15:17:09 +00:00
Corinna Vinschen
f34670b338
* libc/include/stdio_ext.h (__fbufsize): Define as inline function for
...
gcc, as macro otherwise.
(__freading): Ditto.
(__fwriting): Ditto.
(__freadable): Ditto.
(__fwriteable): Ditto.
(__flbf): Ditto.
(__fpending): Ditto.
2013-08-02 07:52:09 +00:00
Corinna Vinschen
b143d094ee
* libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c,
...
libc/sys/linux/net/getnameinfo.c: Add restrict keyword to getnameinfo()
and getaddrinfo() to increase standards compliance and match glibc.
* libc/include/string.h, libc/string/memccpy.c, libc/string/memcpy.c,
libc/string/stpcpy.c, libc/string/stpncpy.c, libc/string/strcat.c,
libc/string/strncat.c, libc/string/strncpy.c, libc/string/strtok.c,
libc/string/strtok_r.c, libc/string/strxfrm.c
libc/machine/microblaze/strcpy.c, libc/machine/xscale/memcpy.c,
libc/machine/cris/memcpy.c: Add __restrict to prototype to
increase standards compliance.
2013-07-23 07:05:31 +00:00
Corinna Vinschen
320a1e7412
* libc/sys/arm/syscalls.c (do_AngelSWI): Delete.
...
* libc/sys/arm/libcfuncs.c (do_AngelSWI): Delete.
* libc/sys/arm/swi.h: Copy over from libgloss.
2013-07-19 09:57:51 +00:00
Jeff Johnston
d1b5846f29
2013-07-17 Janis Johnson <janisjo@codesourcery.com>
...
* libc/machine/powerpc/configure.in: Remove extra_sources; fix
extra_objs for powerpc*-*altivec.
* libc/machine/powerpc/Makefile.am: Define EXTRA_lib_a_SOURCES.
* libc/machine/powerpc/configure: Regenerated.
* libc/machine/powerpc/Makefile.in: Regenerated.
2013-07-17 16:38:04 +00:00
Corinna Vinschen
6041792ec6
* configure.host: Change to microblaze*.
...
* libc/include/machine/ieeefp.h: Add __MICROBLAZEEL__.
* libc/machine/microblaze/mb_endian.h: New file.
* newlib/libc/machine/microblaze/strcmp.c: Add little endian support.
* newlib/libc/machine/microblaze/strcpy.c: Likewise.
* newlib/libc/machine/microblaze/strlen.c: Likewise.
* configure.in: Change to microblaze*.
* configure: Regenerate.
* microblaze/xilinx.ld: Remove OUTPUT_FORMAT.
2013-07-16 07:48:53 +00:00
Jeff Johnston
f9a17f68c4
2013-07-09 Sabrina Ni <sabrina@andestech.com>
...
* libc/machine/nds32/Makefile.am (lib_a_SOURCES): Add abort.c, memcpy.S,
memset.S, strcmp.S, and strcpy.S.
* libc/machine/nds32/Makefile.in: Regenerated.
* libc/machine/nds32/{abort.c, memcpy.S, memset.S, strcmp.S, strcpy.S}: New.
2013-07-09 19:19:35 +00:00
Jeff Johnston
dc0cb474bb
2013-07-09 Sabrina Ni <sabrina@andestech.com>
...
* configure.host (machine_dir, syscall_dir, newlib_cflags):
Add settings for nds32*.
* libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN):
Ditto.
* libc/include/machine/setjmp.h (JBLEN): Ditto.
* libc/machine/configure.in: Add nds32 subdir.
* libc/machine/configure: Regenerated.
* libc/machine/nds32/Makefile.am: New.
* libc/machine/nds32/Makefile.in: New (autogenerated).
* libc/machine/nds32/aclocal.m4: New (autogenerated).
* libc/machine/nds32/configure.in: New.
* libc/machine/nds32/configure: New (autogenerated).
* libc/machine/nds32/setjmp.S: New.
2013-07-09 19:06:47 +00:00
Corinna Vinschen
9b51cd8c6b
* libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
2013-07-09 13:14:31 +00:00
Corinna Vinschen
5dad9defd0
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
2013-07-09 13:07:16 +00:00
Yaakov Selkowitz
ddbe02c418
* libc/include/sys/types.h (u_char): Add redefinition guard.
...
(u_short, u_int, u_long, caddr_t, daddr_t): Ditto.
2013-07-05 21:46:10 +00:00
Jeff Johnston
e2ac49d3d7
2013-07-02 Joey Ye <joey.ye@arm.com>
...
Lite exit support.
* README: Add information about lite-exit.
* acconfig.h (_LITE_EXIT): New macro.
* configure.in (enable-lite-exit): New option.
(_LITE_EXIT): Define new macro.
* configure: Regenerated.
* newlib.hin (_LITE_EXIT): New macro.
* libc/stdlib/__atexit.c [_LITE_EXIT]: Add dummy explicit
reference to __call_exitprocs.
* libc/stdlib/cxa_atexit.c [_LITE_EXIT]: Make __register_exitproc a
weak reference.
* libc/stdlib/exit.c (exit)[_LITE_EXIT]: Remove TWS and weakly reference
__call_exitprocs.
2013-07-02 21:30:57 +00:00
Jeff Johnston
a838011d07
2013-07-02 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/reent.h: Fix typo in comment.
2013-07-02 19:26:20 +00:00
Will Newton
5073668c61
memcpy-armv7a.S: Improve performance with misaligned buffers.
...
Adjust the conditions for entering the aligned copy loop to
improve performance on mutually misaligned buffer copies.
2013-07-01 Will Newton <will.newton@linaro.org>
* libc/machine/arm/memcpy-armv7a.S: Adjust entry to
aligned loop to improve misaligned copy performance.
2013-07-01 09:58:34 +00:00
Jeff Johnston
27ad840ea5
2013-06-26 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/stdio.h: Specify std streams always in terms
of _REENT.
* libc/include/wchar.h: Ditto.
* libc/include/sys/reent.h: Remove _RENT_ONLY check around
setting of _REENT macro.
2013-06-26 21:34:16 +00:00
Yaakov Selkowitz
e3928ce48c
* libc/include/string.h (rawmemchr): Declare.
...
* libc/string/Makefile.am (ELIX_4_SOURCES): Add rawmemchr.c.
(CHEWOUT_FILES): Add rawmemchr.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/rawmemchr.c: New file.
2013-06-24 15:11:24 +00:00
Corinna Vinschen
837a83bf1c
* libc/reent/reent.c (_reclaim_reent): Free also _misc and
...
_signal_buf.
2013-06-24 11:34:03 +00:00
Corinna Vinschen
99943e12c8
* libc/include/sys/reent.h (_ATEXIT_INIT_PTR): Remove.
...
(_REENT_INIT_ATEXIT_PTR): Remove.
(_REENT_INIT_PTR): Reduce code size if _REENT_SMALL.
2013-06-24 09:28:32 +00:00
Will Newton
c8af057907
strlen-armv7.S: Import latest strlen cortex-strings code.
...
Import the latest version of strlen from the Linaro cortex-strings
package. This version is faster across a variety of block size and
alignments on ARMv7.
newlib/ChangeLog:
2013-06-21 Will Newton <will.newton@linaro.org>
* libc/machine/arm/strlen-armv7.S: Import latest strlen
code from Linaro cortex-strings.
2013-06-21 09:10:37 +00:00
Will Newton
a1a7a74e6b
newlib/MAINTAINERS: Add myself to Write After Approval.
...
2013-06-21 Will Newton <will.newton@linaro.org>
* MAINTAINERS: Add Will Newton to Write After Approval.
2013-06-21 08:17:38 +00:00
Corinna Vinschen
25855a0139
Fix ChangeLog entry
2013-06-19 16:43:12 +00:00
Corinna Vinschen
82c19d335a
* acconfig.h (_UNBUF_STREAM_OPT): Undefine.
...
* newlib.hin (_UNBUF_STREAM_OPT): Undefine.
* configure.in (--enable-newlib-unbuf-stream-opt): New option.
* configure: Regenerate.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on
unbuffered stream files.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise.
* README: Add description about the option.
* newlib.hin (_UNBUF_STREAM_OPT): Undefine.
* configure.in (--enable-newlib-unbuf-stream-opt): New option.
* configure: Regenerate.
* libc/stdio/vfprintf.c (_VFPRINTF_R): Don't do optimization on
unbuffered stream files.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Likewise.
* README: Add description about the option.
2013-06-19 15:58:50 +00:00
Corinna Vinschen
04f8f69cb7
* libc/posix/readdir_r.c: Fix potential read past dirp->dd_buf.
2013-06-19 15:54:20 +00:00
Corinna Vinschen
38f5296847
* README: Add description for NEWLIB's feature customizing
...
configuration options.
2013-06-13 11:43:44 +00:00
Corinna Vinschen
e9c0122ec0
* libc/stdlib/gdtoa-gethex.c (__hexdig): Constify.
...
(hexdig_init): Remove.
(__hexdig_fun): New function.
hexdig_init, added __hexdig_fun
(gethex): Call __get_hexdig macro rather than hexdig.
* libc/stdlib/gdtoa-hexnan.c (hexnan): Constify fpi argument.
Call __get_hexdig macro rather than hexdig.
* libc/stdlib/ldtoa.c: Throughout constify functions arguments where
required by constifying the following arrays.
(ezero): Constify.
(eone): Constify.
(ermsg): Constify.
(etens): Constify.
(emtens): Constify.
(nan113): Constify.
(nan64): Constify.
(nan53): Constify.
(nan24): Constify.
* libc/stdlib/mprec.h (__get_hexdig): Define.
(gethex): Constify args in declaration where appropriate.
(hexnan): Ditto.
(hexdig_init): Remove declaration.
(__hexdig_fun): Declare.
* libc/stdlib/strtod.c (fpi): Constify.
(fpinan): Constify.
2013-06-10 15:27:43 +00:00
Corinna Vinschen
7eed26ae5b
Fix typos
2013-06-07 14:21:53 +00:00
Corinna Vinschen
af9f65e0c4
* libc/include/cdefs.h (__has_extension): New define.
...
(__has_feature): Likewise.
(__has_include): Likewise.
(__has_builtin): Likewise.
* libc/include/stdatomic.h: New.
2013-06-07 09:14:39 +00:00
Corinna Vinschen
925e1c8157
* libc/machine/arm/strcmp.S: Use local labels.
2013-06-05 09:41:21 +00:00
Richard Earnshaw
ca1dd3a9b5
2013-06-03 Joey Ye <joey.ye@arm.com>
...
* libc/machine/arm/Makefile.am (MEMCPY_DEP): New define.
($(lpfx)memcpy.o, $(lpfx)memcpy.obj): Depend on MEMCPY_DEP.
* libc/machine/arm/Makefile.in: Regenerated.
* newlib/libc/machine/arm/memcpy-stub.c: Exclude armv7-m/armv7e-m.
* newlib/libc/machine/arm/memcpy-armv7m.S: New.
* newlib/libc/machine/arm/memcpy.S: Replace with wrapper code. Old
code moved to ...
* newlib/libc/machine/arm/memcpy-armv7a.S: ... here. Remove
redundant architecture check.
2013-06-03 14:02:10 +00:00
Jeff Johnston
d15bce48e7
2013-05-30 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/machine/powerpc/times.c: Moved to libgloss/rs6000.
* libc/machine/powerpc/Makefile.am: Remove times.c.
* libc/machine/powerpc/Makefile.in: Regenerated.
2013-05-30 22:44:41 +00:00
Corinna Vinschen
a83263b981
* configure.in (--enable-newlib-nano-malloc): New option.
...
* configure: Regenerated.
* libc/configure.in (--enable-newlib-nano-malloc): New option.
* libc/configure: Regenerated.
* libc/stdlib/Makefile.am (NEWLIB_NANO_MALLOC): Use.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/nano-mallocr.c: New file, implementing nano
version malloc family functions.
2013-05-29 12:37:59 +00:00
Richard Earnshaw
ef05ad03f2
* libc/macine/arm/strcpy.S: Explicitly set build attributes when
...
building for thumb1 targets.
2013-05-28 12:43:48 +00:00
Corinna Vinschen
cc88e009ed
* libc/ctype/isalnum.c: Correct domain of definition to SUSv4 wording.
...
* libc/ctype/isalpha.c: Ditto.
* libc/ctype/isblank.c: Ditto.
* libc/ctype/iscntrl.c: Ditto.
* libc/ctype/isdigit.c: Ditto.
* libc/ctype/islower.c: Ditto.
* libc/ctype/isprint.c: Ditto.
* libc/ctype/ispunct.c: Ditto.
* libc/ctype/isxdigit.c: Ditto.
2013-05-23 14:46:51 +00:00
Corinna Vinschen
742fb38c56
* libc/include/sys/cdefs.h (_Static_assert): Accommodate gcc >= 4.6.
2013-05-22 17:53:07 +00:00
Corinna Vinschen
99e87649c7
* libc/reent/reent.c (_wrapup_reent): Remove.
2013-05-16 12:29:28 +00:00
DJ Delorie
accd7a7cf7
Missed MAINTAINERS entry from previous commit.
2013-05-13 21:40:50 +00:00
DJ Delorie
2f2a304234
[newlib]
...
* configure.host (msp430): Add.
* libc/include/machine/ieeefp.h: Add MSP430 support.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/sys/config.h: Likewise.
* libc/machine/configure.in (msp430): Add.
* libc/machine/configure: Regenerate.
* libc/machine/msp430: New directory.
[libgloss]
* configure.in (msp430*-*-elf): Add.
* configure: Regenerate.
* msp430: New directory.
2013-05-13 21:39:51 +00:00
Jeff Johnston
c0d8520eeb
2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
...
* configure.in: Fix help text for disable-newlib-atexit-dynamic-alloc option.
* configure: Regenerated.
2013-05-10 20:14:33 +00:00
Jeff Johnston
1b7ad41e50
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/config.h (_REENT_GLOBAL_ATEXIT): Define for
RTEMS.
* libc/include/sys/reent.h (_reent): Use _REENT_GLOBAL_ATEXIT.
(_global_atexit): Declare if _REENT_GLOBAL_ATEXIT is defined.
* libc/reent/reent.c (_reclaim_reent): Remove atexit cleanup if
_REENT_GLOBAL_ATEXIT is defined.
(_wrapup_reent): Remove atexit handling if _REENT_GLOBAL_ATEXIT
is defined.
* libc/stdlib/__atexit.c (_global_atexit0): Define if
_REENT_GLOBAL_ATEXIT is defined.
* libc/stdlib/__call_atexit.c (_global_atexit): Define if
_REENT_GLOBAL_ATEXIT is defined.
2013-05-08 23:13:51 +00:00
Jeff Johnston
6bd6954bdc
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/reent.h (_ATEXIT_INIT): Define.
(_ATEXIT_INIT_PTR): Likewise.
(_REENT_INIT_ATEXIT): Likewise.
(_REENT_INIT_ATEXIT_PTR): Likewise.
(_GLOBAL_ATEXIT): Likewise.
* libc/stdlib/__atexit.c (_GLOBAL_ATEXIT0): Define.
(__register_exitproc): Use _GLOBAL_ATEXIT and _GLOBAL_ATEXIT0.
* libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.
-
2013-05-07 21:40:10 +00:00
Jeff Johnston
c0e447afd0
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/stdlib/__atexit.c (__atexit_lock): Declare.
* libc/stdlib/__call_atexit.c (__atexit_lock): Define.
2013-05-07 18:24:14 +00:00
Jeff Johnston
c16862d85b
2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
...
* configure.host (machine_dir, sys_dir, syscall_dir, newlib_cflags):
Add settings for nios2*.
* libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN):
Likewise.
* libc/include/machine/setjmp.h (JBLEN, JBTYPE): Likewise.
* libc/machine/configure.in: Add nios2 subdir.
* libc/machine/configure: Regenerated.
* libc/machine/nios2/Makefile.am: New.
* libc/machine/nios2/Makefile.in: New (autogenerated).
* libc/machine/nios2/aclocal.m4: New (copied from mips version).
* libc/machine/nios2/configure.in: New.
* libc/machine/nios2/configure: New (autogenerated).
* libc/machine/nios2/setjmp.s: New.
2013-05-06 18:23:09 +00:00
Jeff Johnston
b334e6660a
2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/stdio/local.h (CHECK_INIT): Evaluate argument only once.
(CHECK_STD_INIT): Likewise.
* libc/stdio/fgetc.c (fgetc): Use local variable for _REENT.
* libc/stdio/fgetwc.c (fwgetc): Likewise.
* libc/stdio/fgetws.c (fgetws): Likewise.
* libc/stdio/fputc.c (fputc): Likewise.
* libc/stdio/fputwc.c (fputwc): Likewise.
* libc/stdio/fputws.c (fputws): Likewise.
* libc/stdio/getc.c (getc): Likewise.
* libc/stdio/getchar.c (_getchar_r): Likewise.
* libc/stdio/putc.c (putc): Likewise.
* libc/stdio/putchar.c (putchar): Likewise.
* libc/stdio/scanf.c (scanf): Likewise.
* libc/stdio/setvbuf.c (setvbuf): Likewise.
* libc/stdio/ungetwc.c (ungetwc): Likewise.
* libc/stdio/vfscanf.c (VFSCANF): Likewise.
* libc/stdio/vfwscanf.c (VFWSCANF): Likewise.
* libc/stdio/viprintf.c (viprintf): Likewise.
* libc/stdio/viscanf.c (viscanf): Likewise.
* libc/stdio/vprintf.c (vprintf): Likewise.
* libc/stdio/vscanf.c (vscanf): Likewise.
* libc/stdio/vwprintf.c (vwprintf): Likewise.
* libc/stdio/vwscanf.c (vwscanf): Likewise.
* libc/stdio/wscanf.c (wscanf): Likewise.
* libc/stdlib/ecvtbuf.c (fcvtbuf): Likewise.
(fcvtbuf): Likewise.
(ecvtbuf): Likewise.
(ecvtbuf): Likewise.
* libc/stdlib/mblen.c (mblen): Likewise.
* libc/stdlib/mbrlen.c (mbrlen): Likewise.
* libc/stdlib/mbrtowc.c (mbrtowc): Likewise.
* libc/stdlib/mbtowc.c (mbtowc): Likewise.
* libc/stdlib/rand.c (srand): Likewise.
(rand): Likewise.
* libc/stdlib/wcrtomb.c (wcrtomb): Likewise.
* libc/stdlib/wctob.c (wctob): Likewise.
* libc/stdlib/wctomb.c (wctomb): Likewise.
* libc/string/strtok.c (strtok): Likewise.
* libc/time/asctime.c (asctime): Likewise.
* libc/time/gmtime.c (gmtime): Likewise.
* libc/time/lcltime.c (lcltime): Likewise.
2013-04-29 21:06:23 +00:00
Jeff Johnston
2a55aa79a9
2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/include/sys/reent.h (_REENT_INIT_PTR): Reduce code size.
2013-04-29 20:56:05 +00:00
Jeff Johnston
4b7586ff43
2013-04-29 Freddie Chopin <freddie_chopin@op.pl>
...
* libc/libc.texinfo: Fix @ references and change ifinfo to be
ifnottexinfo.
* libm/libm.texinfo: Ditto.
2013-04-29 20:02:34 +00:00
Joel Sherrill
7881a70fad
2013-04-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): New define.
* libc/stdio/findfp.c (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Use define.
2013-04-25 15:29:19 +00:00
Corinna Vinschen
6fb85adeac
* libc/stdlib/strtod.c: Manual update to latest algorithm from NetBSD.
2013-04-24 10:21:16 +00:00
Corinna Vinschen
1875ee55d3
Port newlib to x86_64-pc-cygwin.
...
* libc/include/sys/features.h: Redefine compilation environment
definitions for Cygwin to cover 64 bit Cygwin.
* libc/ctype/ctype_.c (_ctype_): Fix definition for 64 bit Cygwin.
* libc/include/machine/setjmp.h: Change definition of _JBLEN to allow
different values for 32 bit and 64 bit Cygwin.
* libc/include/reent.h (stat64): Define as stat under Cygwin, instead
of as __stat64. Undef stat64 if not building Newlib.
* libc/include/sys/stat.h (stat64): Define as stat under Cygwin.
2013-04-23 09:42:25 +00:00
Corinna Vinschen
9770af188f
* libc/include/sys/cdefs.h: Align with latest FreeBSD file header.
...
* libc/include/sys/features.h (__GNUC_PREREQ__): Define.
2013-04-22 10:28:05 +00:00
Corinna Vinschen
ffd672bec7
* newlib/libc/search/hash.c: Revert patch from 2012-08-08.
2013-04-19 09:13:27 +00:00
Corinna Vinschen
7eb805f68d
* libc/sys/rtems/sys/queue.h: Delete file.
...
* libc/include/sys/cdefs.h (__containerof): New define.
(__DEQUALIFY): Likewise.
* libc/include/sys/queue.h (TRACEBUF_INITIALIZER): Likewise.
(TRACEBUF): Likewise.
(LIST_FOREACH_SAFE): Likewise.
(LIST_PREV): Likewise.
(LIST_SWAP): Likewise.
(QMD_LIST_CHECK_HEAD): Likewise.
(QMD_LIST_CHECK_NEXT): Likewise.
(QMD_LIST_CHECK_PREV): Likewise.
(QMD_SAVELINK): Likewise.
(QMD_TAILQ_CHECK_HEAD): Likewise.
(QMD_TAILQ_CHECK_NEXT): Likewise.
(QMD_TAILQ_CHECK_PREV): Likewise.
(QMD_TAILQ_CHECK_TAIL): Likewise.
(QMD_TRACE_ELEM): Likewise.
(QMD_TRACE_HEAD): Likewise.
(SLIST_FOREACH_PREVPTR): Likewise.
(SLIST_FOREACH_SAFE): Likewise.
(SLIST_REMOVE_AFTER): Likewise.
(SLIST_SWAP): Likewise.
(STAILQ_FOREACH_SAFE): Likewise.
(STAILQ_REMOVE_AFTER): Likewise.
(STAILQ_SWAP): Likewise.
(TAILQ_FOREACH_REVERSE_SAFE): Likewise.
(TAILQ_FOREACH_SAFE): Likewise.
(TAILQ_SWAP): Likewise.
(TRASHIT): Likewise.
(SLIST_REMOVE): Use SLIST_REMOVE_AFTER().
(STAILQ_LAST): Use __containerof().
(STAILQ_REMOVE): Use STAILQ_REMOVE_AFTER().
2013-04-16 10:25:16 +00:00
Jeff Johnston
62f41c2b1c
2013-04-12 Will Newton <will.newton@linaro.org>
...
* libc/machine/arm/memcpy-stub.c: Use generic memcpy if unaligned
access is not enabled.
* libc/machine/arm/memcpy.S: Faster memcpy implementation for
Cortex A15 cores using NEON and VFP if available.
2013-04-12 22:12:29 +00:00
Corinna Vinschen
f7a4b388b0
* acconfig.h (_WCHAR_ORIENT): Undef
...
* newlib.hin (_WCHAR_ORIENT): Undef
* configure.in (--enable-newlib-wchar-orient): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-wchar-orient): New option.
* libc/configure: Regenerated.
* libc/stdio/Makefile.am (NEWLIB_WIDE_ORIENT): Use.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control
the definition. Add alternative definition.
* libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT
to control the wide char output.
2013-04-12 12:05:31 +00:00
Corinna Vinschen
9b7759ae75
* libc/include/stdlib.h (strtof, strtoll, strtoull, strtold): Also
...
prototype if C++11 or later.
2013-04-11 10:23:05 +00:00
Jeff Johnston
602cec7f1e
2013-04-10 Bin Cheng <bin.cheng@arm.com>
...
* acconfig.h (_FSEEK_OPTIMIZATION): Undef
* newlib.hin (_FSEEK_OPTIMIZATION): Undef
* configure.in (--disable-newlib-fseek-optimization): New option.
* configure: Regenerated.
* libc/stdio/fflush.c (__sflush_r): Use _FSEEK_OPTIMIZATION to
control fseek optimization.
* libc/stdio/fseeko.c (_fseeko_r): Ditto.
* libc/stdio/makebuf.c (__smakebuf_r): Ditto.
* libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
2013-04-10 18:47:46 +00:00
Matthew Gretton-Dann
d57416f03d
* libc/stdio/vfieeefp.h (ldieee): Fix typo.
2013-04-08 09:34:35 +00:00
Corinna Vinschen
2e463c77de
* libc/posix/scandir.c (DIRSIZ): Use offsetof instead of magic
...
number.
2013-04-02 11:38:12 +00:00
Corinna Vinschen
409c27f834
* acconfig.h (_FVWRITE_IN_STREAMIO): Undefine.
...
* newlib.hin (_FVWRITE_IN_STREAMIO): Undefine.
* configure.in (--disable-newlib-fvwrite-in-streamio): New option.
* configure: Regenerated.
* libc/stdio/fputs.c (_fputs_r): Use _FVWRITE_IN_STREAMIO to
control __sfvwrite_r. Add alternative implementation.
* libc/stdio/fputws.c (_fputws_r): Ditto.
* libc/stdio/fwrite.c (_fwrite_r): Ditto.
* libc/stdio/puts.c (_puts_r): Ditto.
* libc/stdio/vfprintf.c (__ssputs_r, __sfputs_r): New function.
(_VFPRINTF_R): Use _FVWRITE_IN_STREAMIO to control vector buffer.
(__SPRINT): Use _FVWRITE_IN_STREAMIO to control macro definition.
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use _FVWRITE_IN_STREAMIO
to control vector buffer.
2013-03-27 09:38:39 +00:00
Joel Sherrill
1ebc8da242
2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* libc/stdio/local.h (_STDIO_WITH_THREAD_CANCELLATION_SUPPORT):
New define.
* libc/stdio/fclose.c: Use
_STDIO_WITH_THREAD_CANCELLATION_SUPPORT.
* libc/stdio/freopen.c: Likewise.
* libc/stdio64/freopen64.c: Likewise.
2013-03-26 16:07:55 +00:00
Corinna Vinschen
01aff1ea37
* newlib/libc/stdio/findfp.c (glue_with_file): New.
...
(__sfmoreglue): Use glue_with_file to avoid alignment problems.
2013-03-15 13:19:29 +00:00
Corinna Vinschen
2d8f1ea62a
* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of
...
sigjmp_buf size if _JBTYPE is defined.
2013-02-28 16:42:21 +00:00
Corinna Vinschen
c2e3ff288d
* libc/include/malloc.h (struct mallinfo): Convert type of all members
...
to size_t to match all targets.
2013-02-26 14:25:13 +00:00
Corinna Vinschen
7080b36417
* libc/include/sys/_types.h (_ssize_t): Define as signed equivalent of
...
size_t with GCC.
2013-02-21 12:27:11 +00:00
Corinna Vinschen
aa102a6a57
* libc/machine/mips/memcpy.S: Fix USE_PREFETCH check.
2013-02-19 07:31:04 +00:00
Nick Clifton
92825fd954
* crt0.S: Add recognition of the e3v5 architecture variant.
2013-02-01 08:29:04 +00:00
Joel Sherrill
6c3f590cd9
2013-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* libc/include/pthread.h: Add PTHREAD_RWLOCK_INITIALIZER.
Fix typo on PTHREAD_COJND_INITIALIZER.
2013-01-22 21:20:08 +00:00
Marcus Shawcroft
450fe1bfa3
2013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>
...
* libc/machine/aarch64/strncmp.S: Correct arithmetic for
argument N values close to the maximum representable
value in an unsigned 64 bit value.
2013-01-17 14:53:32 +00:00
Marcus Shawcroft
78f66de6ce
2013-01-17 Marcus Shawcroft <marcus.shawcroft@linaro.org>
...
* libc/machine/aarch64/strnlen.S: Correct arithmetic for
argument N values close to the maximum representable
value in an unsigned 64 bit value.
2013-01-17 14:52:37 +00:00
Nick Clifton
7d88a8d373
* libc/sys/sysnecv850/crt0.S (_start): Enable FPU for the
...
V850e2v3.
* v850/crt0.S (_start): Enable FPU for the V850e2v3.
2013-01-15 15:41:31 +00:00
Corinna Vinschen
38305196bf
* libc/include/string.h: Fix preprocessor expressions using
...
_XOPEN_SOURCE.
2013-01-12 10:55:09 +00:00
Corinna Vinschen
3920a99a22
* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Add code to correctly handle
...
's' format specifier on not _MB_CAPABLE targets. Fix a formatting
glitch in _MB_CAPABLE enabled code. Add a missing 'L' specifier.
2013-01-11 20:05:41 +00:00
Marcus Shawcroft
211f1ec717
2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>
...
* libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add
memcmp-stub.c and memcmp.S
* libc/machine/aarch64/Makefile.in: Regenerated.
* libc/machine/aarch64/memcmp-stub.c: New file.
* libc/machine/aarch64/memcmp.S: New file.
2013-01-10 13:02:19 +00:00
Marcus Shawcroft
ba8f05bcf5
2013-01-10 Marcus Shawcroft <marcus.shawcroft@linaro.org>
...
* libc/machine/aarch64/Makefile.am (lib_a_SOURCES): Add
strnlen-stub.c and strnlen.S
* libc/machine/aarch64/Makefile.in: Regenerated.
* libc/machine/aarch64/strnlen-stub.c: New file.
* libc/machine/aarch64/strnlen.S: New file.
2013-01-10 13:00:40 +00:00