summaryrefslogtreecommitdiffstats
path: root/newlib
Commit message (Collapse)AuthorAgeFilesLines
* 2012-12-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-20306-6231/+11551
| | | | | | | | | | | | | | | | | | * NEWS: Update with 2.0.0 info. * README: Ditto. * acinclude.m4: Change version number to 2.0.0. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Regenerated. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_2.0
* * libc/stdlib/strtod.c (_strtod_r): Revert change from 2011-05-16.Corinna Vinschen2012-12-192-10/+12
|
* 2012-12-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-182-3/+4
| | | | * libc/include/math.h: Remove the log2f macro.
* 2012-12-18 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2012-12-182-4/+35
| | | | | * libc/include/math.h: Add recognition of values 1 and 2 for FLT_EVAL_METHOD.
* * libc/stdio/puts.c (_puts_r): Fix typo in previous patch. Add localCorinna Vinschen2012-12-182-5/+11
| | | | variable fp for better readability.
* 2012-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-12-172-2/+13
| | | | | * libc/stdio/puts.c: Add fp locking and use _stdout_r macro to refer to the stream rather than stdout.
* 2012-12-14 Yufeng Zhang <yufeng.zhang@arm.com>Jeff Johnston2012-12-142-0/+42
| | | | | * libc/machine/aarch64/machine/_types.h: New file; define _ssize_t as long.
* 2012-12-11 Steve Ellcey <sellcey@mips.com>Jeff Johnston2012-12-116-212/+792
| | | | | | | | * libc/machine/mips/memcpy.c: Remove. * libc/machine/mips/memcpy.S: New. * libc/machine/mips/Makefile.am (lib_a_CCASFLAGS): Add -D_COMPILING_NEWLIB. (lib_a_CFLAGS): Ditto.
* 2012-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>Jeff Johnston2012-12-061-6/+17
| | | | | | | | | | | | | | | | | | | | | | | * configure.host: Define libm_machine_dir value for arm. * libm/machine/configure.in: Add arm to libm machines list. * libm/machine/configure: Regenerate. * libm/machine/arm/Makefile.am: New file. * libm/machine/arm/Makefile.in: Generated. * libm/machine/arm/aclocal.m4: Generated. * libm/machine/arm/configure: Generated. * libm/machine/arm/configure.in: New file. * libm/machine/arm/s_ceil.c: Likewise. * libm/machine/arm/s_floor.c: Likewise. * libm/machine/arm/s_nearbyint.c: Likewise. * libm/machine/arm/s_rint.c: Likewise. * libm/machine/arm/s_round.c: Likewise. * libm/machine/arm/s_trunc.c: Likewise. * libm/machine/arm/sf_ceil.c: Likewise. * libm/machine/arm/sf_floor.c: Likewise. * libm/machine/arm/sf_nearbyint.c: Likewise. * libm/machine/arm/sf_rint.c: Likewise. * libm/machine/arm/sf_round.c: Likewise. * libm/machine/arm/sf_trunc.c: Likewise.
* 2012-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>Jeff Johnston2012-12-0422-2/+7042
| | | | | | | | | | | | | | | | | | | | | | | * configure.host: Define libm_machine_dir value for arm. * libm/machine/configure.in: Add arm to libm machines list. * libm/machine/configure: Regenerate. * libm/machine/arm/Makefile.am: New file. * libm/machine/arm/Makefile.in: Generated. * libm/machine/arm/aclocal.m4: Generated. * libm/machine/arm/configure: Generated. * libm/machine/arm/configure.in: New file. * libm/machine/arm/s_ceil.c: Likewise. * libm/machine/arm/s_floor.c: Likewise. * libm/machine/arm/s_nearbyint.c: Likewise. * libm/machine/arm/s_rint.c: Likewise. * libm/machine/arm/s_round.c: Likewise. * libm/machine/arm/s_trunc.c: Likewise. * libm/machine/arm/sf_ceil.c: Likewise. * libm/machine/arm/sf_floor.c: Likewise. * libm/machine/arm/sf_nearbyint.c: Likewise. * libm/machine/arm/sf_rint.c: Likewise. * libm/machine/arm/sf_round.c: Likewise. * libm/machine/arm/sf_trunc.c: Likewise.
* * libc/machine/arm/strcmp.S (compute_return_value): Fix return value.Corinna Vinschen2012-11-303-1/+52
| | | | * testsuite/newlib.string/strcmp-1.c (main): Add new test cases.
* * libc/include/sys/reent.h (__sFILE): Change type of _offsetCorinna Vinschen2012-11-296-332/+502
| | | | | | | | | | from int to _off_t. * libc/stdio/ftell.c: Use _ftello_r(). * libc/stdio/ftello.c: Copy implementation from previous _ftell_r(). * libc/stdio/fseek.c: Use _fseeko_r(). * libc/stdio/fseeko.c: Copy implementation from previous _fseek_r().
* * libc/include/inttypes.h: Add and use __INTTYPES_EXP().Corinna Vinschen2012-11-262-2/+16
|
* * libm/machine/aarch64/configure.in: Change comment to say libmCorinna Vinschen2012-11-232-1/+6
| | | | instead of libc.
* 2012-11-12 Steve Ellcey <sellcey@mips.com>Steve Ellcey2012-11-123-9/+441
| | | | | | * libc/machine/mips/machine/asm.h: New. * libc/machine/mips/machine/regdef.h: Update register definitions for different ABI's.
* * libc/include/sys/time.h: Avoid guarding other than timeval declaration withChristopher Faylor2012-11-122-20/+25
| | | | _TIMEVAL_DEFINED. Move timeval related macros under _TIMEVAL_DEFINED control.
* * libc/include/locale.h (NULL): Fetch definition via stddef.h.Corinna Vinschen2012-11-018-27/+22
| | | | | | | | | * libc/include/stdio.h (NULL): Ditto. * libc/include/stdlib.h (NULL): Ditto. * libc/include/string.h (NULL): Ditto. * libc/include/wchar.h (NULL): Ditto. * libc/include/rpc/types.h (NULL): Ditto. * libc/include/time.h (NULL): Ditto. Include stddef.h earlier.
* Minor optimization and bug fix for moxie.Anthony Green2012-10-272-1/+5
|
* * libc/include/sys/signal.h (sigset_t): Don't define when buildingCorinna Vinschen2012-10-262-0/+8
| | | | for Cygwin.
* 2012-10-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-10-246-22/+53
| | | | | | | | | | * configure.in: Comment out the --enable-newlib-fp-hw option as the mathfp library is inaccurate and should not be used. * Makefile.am: Add comment regarding the mathfp directory. * configure: Regenerated. * Makefile.in: Ditto. * libm/mathfp/README: New file that details why the mathfp directory is not used.
* * libc/include/string.h (strdup, strndup): Declare if notCorinna Vinschen2012-10-222-0/+14
| | | | __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.
* * libc/include/stdlib.h (strtof, strtoll, strtoull, strtold):PrototypeCorinna Vinschen2012-10-222-0/+17
| | | | if not __STRICT_ANSI__ or stdc version C99 or greater.
* * libc/sys/mmixware/sbrk.c (_sbrk): Drop unused extern declarationHans-Peter Nilsson2012-10-212-2/+23
| | | | of "end". Mark allocated memory by applying PRELD.
* * libc/stdlib/getopt.c (getopt_internal): Align handling of colon toCorinna Vinschen2012-10-162-5/+33
| | | | | SUSv4 requirements. (__getopt_long_r): Fix formatting.
* * libc/stdio/vfprintf.c (__sbprintf): Fix comment.Corinna Vinschen2012-10-162-2/+6
|
* * libc/include/assert.h (static_assert): Define.Corinna Vinschen2012-10-162-0/+8
|
* * libc/include/sys/features.h (__GNUC_PREREQ): Define. UseCorinna Vinschen2012-10-1610-19/+41
| | | | | | | throughout in place of explicit GNUC version checks. * libc/include/_ansi.h (_NOINLINE): Define. (_NOINLINE_STATIC): Define. * libc/stdio/vfprintf.c (__sbprintf): Define _NOINLINE_STATIC.
* * libc/posix/wordfree.c (wordfree): The wrong words are freedCorinna Vinschen2012-10-094-32/+73
| | | | | | | | when WRDE_DOOFFS is in use. Restructure the code so that the memory needed to be freed is instead kept in an internal linked list... * libc/posix/wordexp2.h: ...as defined here... * libc/posix/wordexp.c (wordexp): ...and build this internal linked list here, avoiding wasteful strdup calls in the process.
* * libc/posix/wordexp.c (wordexp): Return WRDE_NOSPACE on resourceCorinna Vinschen2012-10-092-27/+72
| | | | allocation failure. Cleanup leftover resources when failing.
* * libc/posix/wordexp.c (wordexp): Handle expanded words longerCorinna Vinschen2012-10-092-7/+25
| | | | than 500 bytes.
* * libc/posix/wordexp.c (wordexp): Don't leak file streams.Corinna Vinschen2012-10-092-2/+6
|
* * libc/machine/rl78/setjmp.S: Convert from CPP macros to GASDJ Delorie2012-10-032-34/+54
| | | | | | | | macros, to avoid dependence on the line separation character. * rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros to GAS macros, to avoid dependence on the line separation character.
* * libc/sys/sysnecv850/sbrk.c (_sbrk): Change heap_start to be anDJ Delorie2012-10-022-2/+8
| | | | | | | | array of undefined size, to avoid problems when compiled with -msda=4. * v850/sbrk.c (_sbrk): Change heap_start to be an array of undefined size, to avoid problems when compiled with -msda=4.
* 2012-10-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2012-10-013-5/+10
| | | | | * README: replace sources.redhat.com with sourceware.org. * HOWTO: Ditto.
* 2012-09-26 Ian Bolton <ian.bolton@arm.com>Jeff Johnston2012-09-2647-8/+13683
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Jim MacArthur <jim.macarthur@arm.com> Marcus Shawcroft <marcus.shawcroft@arm.com> Nigel Stephens <nigel.stephens@arm.com> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Richard Earnshaw <rearnsha@arm.com> Sofiane Naci <sofiane.naci@arm.com> Tejas Belagod <tejas.belagod@arm.com> Yufeng Zhang <yufeng.zhang@arm.com> * configure.host: Add AArch64. * libc/include/machine/ieeefp.h: Add AArch64. * libc/include/machine/setjmp.h: Add AArch64. * libc/include/machine/time.h: Add AArch64. * libc/include/sys/config.h: Add AArch64. * libc/machine/aarch64/Makefile.am: New file. * libc/machine/aarch64/Makefile.in: Generated. * libc/machine/aarch64/aclocal.m4: Generated. * libc/machine/aarch64/configure: Generated. * libc/machine/aarch64/configure.in: New file. * libc/machine/aarch64/setjmp.S: New file. * libc/machine/configure.in: Add AArch64. * libc/machine/configure: Re-generated. * libm/machine/aarch64/Makefile.am: New file. * libm/machine/aarch64/Makefile.in: Generated. * libm/machine/aarch64/aclocal.m4: Generated. * libm/machine/aarch64/configure: Generated. * libm/machine/aarch64/configure.in: New file. * libm/machine/aarch64/s_ceil.c: New file. * libm/machine/aarch64/s_floor.c: New file. * libm/machine/aarch64/s_fma.c: New file. * libm/machine/aarch64/s_fmax.c: New file. * libm/machine/aarch64/s_fmin.c: New file. * libm/machine/aarch64/s_llrint.c: New file. * libm/machine/aarch64/s_llround.c: New file. * libm/machine/aarch64/s_lrint.c: New file. * libm/machine/aarch64/s_lround.c: New file. * libm/machine/aarch64/s_nearbyint.c: New file. * libm/machine/aarch64/s_rint.c: New file. * libm/machine/aarch64/s_round.c: New file. * libm/machine/aarch64/s_trunc.c: New file. * libm/machine/aarch64/sf_ceil.c: New file. * libm/machine/aarch64/sf_floor.c: New file. * libm/machine/aarch64/sf_fma.c: New file. * libm/machine/aarch64/sf_fmax.c: New file. * libm/machine/aarch64/sf_fmin.c: New file. * libm/machine/aarch64/sf_llrint.c: New file. * libm/machine/aarch64/sf_llround.c: New file. * libm/machine/aarch64/sf_lrint.c: New file. * libm/machine/aarch64/sf_lround.c: New file. * libm/machine/aarch64/sf_nearbyint.c: New file. * libm/machine/aarch64/sf_rint.c: New file. * libm/machine/aarch64/sf_round.c: New file. * libm/machine/aarch64/sf_trunc.c: New file. * libm/machine/configure.in: Add AArch64. * libm/machine/configure: Re-generated.
* 2012-09-26 Michael Hope <michael.hope@linaro.org>Jeff Johnston2012-09-262-2/+6
| | | | * doc/makedoc.c (dup_): Rename to avoid colliding with dup(2).
* bi-endian support for moxie.Anthony Green2012-09-132-0/+9
|
* * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems whichChristopher Faylor2012-08-232-0/+7
| | | | do not provide it.
* * libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode flags toChristopher Faylor2012-08-212-16/+33
| | | | | just loop over more allowed flags. Support glibc 'e' flag on systems defining _GLIBC_EXTENSION. Support C11 'x' flag.
* * libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning.Corinna Vinschen2012-08-105-5/+14
| | | | | | | * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid compiler warning. * libc/stdio/fgets.c (_fgets_r): Ditto. * libc/time/strftime.c (strftime): Ditto.
* Fix dateCorinna Vinschen2012-08-101-1/+1
|
* * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state toCorinna Vinschen2012-08-102-2/+7
| | | | allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
* * libc/posix/engine.c(dissect): Guard diagnostic pragma for rightCorinna Vinschen2012-08-083-2/+14
| | | | | | | versions of GCC only. * libc/string/strcasestr.c: Ditto. Fix typo in previous ChangeLog entry.
* Throughout, run newlib with -Wall -Werror option and fix bugs andCorinna Vinschen2012-08-0843-74/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiler warnings found this way. * libc/stdio/freopen.c (_freopen_r): Fix bug setting _flags. * libc/include/stdio.h (_rename): Define when building newlib. * libc/include/sys/signal.h (_kill): Ditto. * libc/include/sys/stat.h (_mkdir): Ditto. * libc/include/sys/time.h (_gettimeofday): Ditto. * libc/include/sys/times.h (_times): Ditto. * libc/include/sys/wait.h (_wait): Ditto. * libc/locale/lmessages.c (empty): Don't define for Cygwin. * libc/locale/lmonetary.c (cnv): Ditto. * libc/locale/nl_langinfo.c (nl_langinfo): Ditto for variable s. * libc/posix/collate.c: Throughout cast to avoid compiler warning. * libc/posix/engine.c (matcher): Initialize dp to avoid compiler warning. * libc/posix/glob.c: Disable on Cygwin. Explain why. * libc/posix/regcomp.c: Fix "uninitialized" compiler warnings. (dissect): Deliberately silence gcc compiler warning. Add comment to explain why. * libc/posix/wordexp.c (wordexp): Remove num_bytes variable since result is never used. * libc/posix/popen.c (popen): Ditto for variable last. * libc/reent/mkdirr.c: Include sys/stat.h. * libc/reent/renamer.c: Include stdio.h. * libc/search/hash.c: Throughout use underscored variants of the stat function family. (init_hash): Add missing definition for the __USE_INTERNAL_STAT64 case. * libc/search/hash_bigkey.c (__big_insert): Add parenthesis to avoid compiler warning. * libc/search/hash_page.c (overflow_page): Initalize freep to NULL to avoid compiler warning. * libc/stdio/asiprintf.c (_asiprintf_r): Cast unsigned char * to char * to avoid compiler warning. (asiprintf): Ditto. * libc/stdio/asprintf.c (_asprintf_r): Ditto. (asprintf): Ditto. * libc/stdio/vasiprintf.c (_vasiprintf_r): Ditto. * libc/stdio/vasprintf.c (_vasprintf_r): Ditto. * libc/stdio/mktemp.c (_gettemp): Cast to unsigned char in call to isdigit to avoid compiler warning. * libc/stdio/vfprintf.c (_VFPRINTF_R): Initialize variables used for grouping to avoid compiler warning. Only define and set nseps and nrepeats if they are really used. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Ditto. Only define state if it is really used. * libc/stdio/vfscanf.c (u_char): Revert to be defined as unsigned char. (__SVFSCANF_R): Cast fmt in call to __mbtowc. * libc/stdlib/mbtowc_r.c (JIS_state_table): Disable when building Cygwin. (JIS_action_table): Ditto. * libc/stdlib/wctomb_r.c (__utf8_wctomb): Add parenthesis to avoid compiler warning. * libc/string/strcasestr.c: Deliberately silence gcc compiler warning. Add comment to explain why. * libc/time/strptime.c (strptime): Cast to unsigned char in calls to isspace to avoid compiler warning. * libm/math/e_atan2.c (__ieee754_atan2): Add parenthesis to avoid compiler warning. * libm/math/e_exp.c (__ieee754_exp): Initialize k to 0 to avoid compiler warning. Drop setting it to 0 later. * libm/math/ef_exp.c (__ieee754_expf): Ditto. * libm/math/e_pow.c (__ieee754_pow): Add braces to avoid compiler warning. * libm/math/ef_pow.c (__ieee754_powf): Ditto. * libm/math/er_lgamma.c (__ieee754_lgamma_r): Initialize nadj to 0 to avoid compiler warning. * libm/math/erf_lgamma.c (__ieee754_lgammaf_r): Ditto. * libm/math/e_rem_pio2.c (__ieee754_rem_pio2): Ditto for variable z. * libm/common/sf_round.c (roundf): Remove signbit variable since result is never used.
* * libc/stdlib/mprec.h (Storeinc): Add parenthesis to avoid compilerCorinna Vinschen2012-08-072-1/+6
| | | | warning.
* * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specificKevin Buettner2012-07-302-1/+6
| | | | start up code for v850e2 and v850e2v3 too.
* readdir: drop bogus codeEric Blake2012-07-202-6/+5
| | | | | * libc/posix/readdir.c (readdir): Drop bogus attempt to catch bogus pointers.
* 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-182-3/+8
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Use signed int for __v850__, __851__.
* 2012-07-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-172-1/+6
| | | | * libc/search/hcreate_r.c (hdestroy_r): #ifdef 0 unused vars ie, idx.
* 2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2012-07-162-0/+7
| | | | * libc/posix/telldir.c: Conditionally build dd_hash_lock.