Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
AgeCommit message (Collapse)Author
2015-06-01Update the assembler code to support old ARM architectures.Hale Wang
* libc/machine/arm/aeabi_memmove-arm.S (__aeabi_memmove): Update the assembler implementation. * libc/machine/arm/aeabi_memmove-thumb.S (__aeabi_memmove): Ditto. * libc/machine/arm/aeabi_memmove-thumb2.S (__aeabi_memmove): Ditto. * libc/machine/arm/aeabi_memset-arm.S (__aeabi_memset): Ditto. * libc/machine/arm/aeabi_memset-thumb.S (__aeabi_memset): Ditto. * libc/machine/arm/aeabi_memset-thumb2.S (__aeabi_memset): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-06-01aarch64: fabs and sqrt implementation with inline asmSzabolcs Nagy
* libm/machine/aarch64/e_sqrt.c: New file. * libm/machine/aarch64/ef_sqrt.c: New file. * libm/machine/aarch64/s_fabs.c: New file. * libm/machine/aarch64/sf_fabs.c: New file. * libm/machine/aarch64/Makefile.in: Add new source files. * libm/machine/aarch64/Makefile.am: Regenerate. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-06-01Correct argz_replace behaviour when memory is exhausted.David Stacey
* libc/argz/argz_replace.c (argz_replace): Correct behaviour when memory is exhausted. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-05-28Fix comment in sys/wait.hcygwin-2.0Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-05-27Fix potential memory leak in argz_replaceDavid Stacey
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-05-27Avoid unneeded truncation to "int"newlib-snapshot-20150526DJ Delorie
* libm/math/e_sqrt.c (__ieee754_sqrt): Don't truncate constant to "int".
2015-05-27Update signbit functions to work on targets where integers are only 16-bits.Nick Clifton
* libm/common/s_signbit.c (__signbitf): Fix for 16-bit targets. (__signbitd): Likewise.
2015-05-02Revert to exposing sys/select.h from sys/time.h on CygwinCorinna Vinschen
* libc/include/sys/time.h: Include sys/select.h on Cygwin. Explain why. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-29Improve check for int32_t being long or intCorinna Vinschen
* libc/include/sys/config.h: Move evaluation of _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG from here... * libc/include/sys/_intsup.h: ...to here. Rename to _INTPTR_EQ_LONG and _INTPTR_EQ_LONGLONG to refer to signed base type. Add test for base type of int32_t and set _INT32_EQ_LONG accordingly. * libc/include/stdint.h: Change checks for __have_long32 to checks for _INT32_EQ_LONG. * libc/include/inttypes.h: Ditto. Accommodate aforementioned name change. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Fix basename prototype collision string.h vs libgen.hCorinna Vinschen
* libc/include/libgen.h (basename): Drop defining _BASENAME_DEFINED. Always define macro basename. Add comment to explain why. * libc/include/string.h (basename): Check for basename instead of _BASENAME_DEFINED. Drop __GNUC__ branch, always use basename macro. Change comment to explain why. Add nonnull function attribute. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23For the RX port, avoid using string instructions when ↵Nick Clifton
__RX_DISALLOW_STRING_INSNS__ is defined. * rx/crt0.S (_start): If string instructions are not allowed, avoid using SMOVF. * libc/machine/rx/memchr.S: Add non-string insn using version. * libc/machine/rx/memcpy.S: Likewise. * libc/machine/rx/memmove.S: Likewise. * libc/machine/rx/mempcpy.S: Likewise. * libc/machine/rx/strcat.S: Likewise. * libc/machine/rx/strcmp.S: Likewise. * libc/machine/rx/strcpy.S: Likewise. * libc/machine/rx/strlen.S: Likewise. * libc/machine/rx/strncat.S: Likewise. * libc/machine/rx/strncmp.S: Likewise. * libc/machine/rx/strncpy.S: Likewise.
2015-04-23Add parens around MIN/MAX values in stdint.h.Corinna Vinschen
* libc/include/stdint.h: Throughout add parens around MIN/MAX values. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Add <sys/_stdint.h> for FreeBSD compatibilitySebastian Huber
* libc/include/sys/_stdint.h: New file. * libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>. (uint8_t): Likewise. (int16_t): Likewise. (uint16_t): Likewise. (int32_t): Likewise. (uint32_t): Likewise. (int64_t): Likewise. (uint64_t): Likewise. (intptr_t): Likewise. (uintptr_t): Likewise. * libc/include/sys/types.h: Include <sys/_stdint.h>. * libc/sys/rtems/machine/_types.h: Remove <stdint.h> include. * libc/sys/time.h>: Replace __uint32_t with uint32_t and __uint64_t with uint64_t. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Make stack_t typedef generally availableJon TURNEY
* libc/include/sys/signal.h (stack_t): Make typedef generally available. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-04-23Fix UTF-16 surrogate handling in wctomb and friends.Corinna Vinschen
* libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a lone high surrogate. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Avoid excessive locking and calling tzset in time functions.Corinna Vinschen
* libc/time/lcltime_r.c (localtime_r): Call _tzset_unlocked inside TZ lock. * libc/time/mktime.c (mktime): Ditto. * libc/time/strftime.c (strftime, wcsftime): Ditto. Guard against calling _tzset_unlocked more than once (baring recursion). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Add _tzset_unlocked and _tzset_unlocked_rCorinna Vinschen
newlib: * libc/time/local.h (_tzset_unlocked_r): Add prototype. (_tzset_unlocked): Ditto. * libc/time/tzset.c (_tzset_unlocked): New function, call _tzset_unlocked_r. (tzset): Lock and call _tzset_unlocked_r. * libc/time/tzset_r (_tzset_unlocked_r): Remove locking and rename from _tzset_r. (_tzset_r): Lock and call _tzset_unlocked_r. cygwin: * localtime.cc (tzset_unlocked): Export as _tzset_unlocked. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Move tzset calls to time functions.Craig Howland
* libc/stdlib/setenv_r.c (_setenv_r): Remove tzset() call for TZ definition. * libc/time/lcltime_r.c (localtime_r): Add tzset() call * libc/time/mktime.c (mktime): Ditto. * libc/time/strftime.c (strftime, wcsftime): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23strftime: use tzname if TM_ZONE is NULLYaakov Selkowitz
This avoids a strlen(NULL) crash a few lines later. * libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL. Use _tzname as fallback if TM_ZONE is NULL.
2015-04-23string: add GNU basename(3)Yaakov Selkowitz
* libc/include/libgen.h (_BASENAME_DEFINED): Define. * libc/include/string.h (basename): Declare. * libc/string/Makefile.am (ELIX_4_SOURCES): Add gnu_basename.c. * libc/string/Makefile.in: Regenerate. * libc/string/gnu_basename.c: New file.
2015-04-23Import <sys/tree.h> from FreeBSDSebastian Huber
* libc/include/sys/tree.h: New file.
2015-04-23* newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.Joel Sherrill
2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com> * newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.
2015-04-23Change from configure time to compile time probe for intptr_t definition.Joel Sherrill
2015-03-23 Joel Sherrill <joel.sherrill@oarcorp.com * configure.in: Delete logic to determine _UINTPTR_EQ_ULONGLONG and _UINTPTR_EQ_ULONG at configuration time. *libc/include/sys/config.h: Add logic to determine _UINTPTR_EQ_ULONGLONG and _UINTPTR_EQ_ULONG at compilation time. * libc/include/inttypes.h: Add include of <sys/config.h>. * configure: Regenerated.
2015-04-23 Add ChangeLog entry for last patch to libc/include/sys/time.h.Steve Ellcey
2015-04-23 Replace uint32_t/uint64_t type usage with __uint32_t/__uint64_t.Steve Ellcey
* libc/include/sys/time.h: Replace uint32_t and uint64_t with __uint32_t and __uint64_t.
2015-03-16Fix newlib texinfo source so 'info libc' and 'info libm' workJon TURNEY
If the newlib .info files are installed using install-info, 'info libc' and 'info libm' don't work. This seems to be due to the formatting of the directory entry line not being quite right, so fix that. Also use @direntry texinfo command, rather than writing .info directory entry literally. Also use @dircategory texinfo command to place into 'Newlib' category, rather than ending up in 'Miscellaneous' newlib/ChangeLog: 2015-03-13 Jon TURNEY <jon.turney@dronecode.org.uk> * libc/libc.texinfo: Fix directory entry. * libm/libm.texinfo: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-03-13Drop including cygwin/sys_time.h on Cygwin.Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-13Merge parts of <sys/time.h> from FreeBSDSebastian Huber
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Import libc/sys/rtems/include/semaphore.h from FreeBSD.Sebastian Huber
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11Add and use latest <sys/timespec.h> from FreeBSDSebastian Huber
* libc/include/sys/_timespec.h: Import from FreeBSD. * libc/include/sys/timespec.h: Likewise. * libc/include/time.h: Include <sys/timespec.h>. * libc/include/sys/types.h (timespec): Delete. (itimerspec): Likewise. * libc/include/machine/time.h: Include <sys/_timespec.h>. * libc/include/sys/sched.h: Likewise. * libc/include/sys/signal.h: Likewise. * libc/include/sys/stat.h: Likewise. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11Fix a build problem running the newlib testsuite on targets that only have ↵Nick Clifton
32-bit doubles. * testsuite/newlib.stdio/swprintf.c (main): Change size of value used to initialise 'val' variable so that it will compile on targets with 32-bit doubles.
2015-03-05 * libc/include/stdio.h (FILE): Protect typedef from redefinition.Corinna Vinschen
* libc/include/wchar.h: Ditto.
2015-03-042015-02-25 Gedare Bloom <gedare@rtems.org>Joel Sherrill
* libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.
2015-03-03 * libc/machine/mips/memset.S: Add support for mips32r6/mips64r6.Steve Ellcey
2015-03-03 * libc/machine/mips/memcpy.S: Add support for mips32r6/mips64r6.Steve Ellcey
2015-02-272015-02-26 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey
* libc/machine/mips/memcpy.S: Fix macro indentation and typos in comments.
2015-02-25* libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has anJon TURNEY
effect when _XOPEN_SOURCE is also defined.
2015-02-17 * libc/machine/arm/aeabi_memclr.c: New file to supportCorinna Vinschen
aeabi_memclr. * libc/machine/arm/aeabi_memset.c: New file to support aeabi_memset. * libc/machine/arm/aeabi_memset-soft.S: Ditto. * libc/machine/arm/aeabi_memset-arm.S: Ditto. * libc/machine/arm/aeabi_memset-thumb.S: Ditto. * libc/machine/arm/aeabi_memset-thumb2.S: Ditto. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
2015-02-17 * libc/machine/arm/aeabi_memmove.c: New file to supportCorinna Vinschen
aeabi_memmove. * libc/machine/arm/aeabi_memmove-soft.S: Ditto. * libc/machine/arm/aeabi_memmove-arm.S: Ditto. * libc/machine/arm/aeabi_memmove-thumb.S: Ditto. * libc/machine/arm/aeabi_memmove-thumb2.S: Ditto. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
2015-02-06 * libc/include/complex.h (cabsl): Add prototype.Nick Clifton
(cimagl): Add prototype. (creall): Add prototype. * libc/include/ieeefp.h: Include float.h. (EXT_EXPBITS, EXT_FRACHBITS, EXT_FRACLBITS) (EXT_EXP_INFNAN. EXT_EXP_BIAS, EXT_FRACBITS): Define. (struct ieee_ext, union ieee_ext_u): New types for long double support. * libc/include/math.h (finitel): Add prototype. (hypotl): Add prototype. (sqrtl): Add prototype. * libm/common/Makefile.am (lsrc): Add sl_finite.c. * libm/common/Makefile.in: Regenerate. * libm/common/fdlibm.h (__ieee754_hypotl): Add prototype. * libm/common/hypotl.c (hypotl): Add implementation for when long double is larger than double. * libm/common/sqrtl.c (sqrtl): Likewise. * libm/common/sl_finite.c: New file. Adds implementation of the finitel function. * libm/complex/Makefile.am (lsrc): Define. (libcomplex_la_SOURCES): Add lsrc. (lib_a_SOURCES): Add lsrc. * libm/complex/Makefile.in: Regenerate. * libm/complex/cabs.c: Add documentation of cabsl function. * libm/complex/cimag.c: Add documentation of cimagl function. * libm/complex/creall.c: Add documentation of creall function. * libm/complex/cabsl.c: New file. Adds implementation of the cabsl function. * libm/complex/cimagl.c: New file. Adds implementation of the cimagl function. * libm/complex/creall.c: New file. Adds implementation of the creall function. * libm/math/Makefile.am (lsrc): Define. (libmath_la_SOURCES): Add lsrc. (lib_a_SOURCES): Add lsrc. * libm/math/Makefile.in: Regenerate. * libm/math/el_hypot.c: New file. Adds implementation of the __ieee754_hypotl function.
2015-02-04 * libc/include/wchar.h (wcstold): Drop _LDBL_EQ_DBL requirement forCorinna Vinschen
declaration.
2015-01-29 * libc/stdlib/wcstold.c (wcstold): Add implementation for whenNick Clifton
long double is not the same as double.
2015-01-29 * libc/include/sys/time.h: #include <sys/cdefs.h> for __BSD_VISIBLE.Corinna Vinschen
2015-01-23 Complete action from 2001-12-18:Corinna Vinschen
* libc/machine/i386/f_*: Remove duplicate files.
2015-01-22* libc/sys/sparc64/sys/time.h: #include <sys/types.h> for time_t.Yaakov Selkowitz
2015-01-22 * libc/sys/or1k/mlock.c: Fix dependency on libgloss.Corinna Vinschen
2015-01-21 * COPYING.LIBGLOSS: Add Controls and Data Services copyright.Eric Botcazou
* COPYING.NEWLIB: Likewise. libgloss/ * configure.in: Add Visium support. * configure: Regenerate. * visium/: New directory. newlib/ * configure.host: Add Visium support. * libc/machine/configure.in: Likewise. * libc/machine/configure: Regenerate. * libc/machine/visium/: New directory. * libc/include/machine/setjmp.h (_JBLEN): Define for Visium. * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Likewise. * libc/include/machine/time.h (_CLOCKS_PER_SEC_): Likewise.
2015-01-20 * libc/sys/configure.in: Add OpenRISC.Corinna Vinschen
* libc/sys/configure: Regenerate.
2015-01-20Fix typo in entry headerCorinna Vinschen
2015-01-20Fix datesCorinna Vinschen