Commit Graph

847 Commits

Author SHA1 Message Date
Jeff Johnston 9f1926f2d8 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/stdint.h: Update to match functionality
        of generic newlib stdint.h.
2005-09-20 22:36:07 +00:00
Jeff Johnston 0ce4fcefed 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdint.h (__EXP): Rename to __STDINT_EXP
        and do not #undef the macro after it is used.  Fix typos.
        Also change 64-bit constants to use the __have_long64 and
        __have_longlong64 flags to determine if long or long long
        constants should be used.
        * libc/include/inttypes.h: Include stddef.h to get wchar_t
        type defined.
2005-09-20 21:21:51 +00:00
Jeff Johnston 1706081793 2005-09-20 Shaun Jackman <sjackman@gmail.com>
* libc/include/stdint.h: Fix typo in names of
        LEAST macros.
2005-09-20 19:33:58 +00:00
Jeff Johnston 1e1d1d3d7e 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/include/inttypes.h: Moved to...
        * libc/include/inttypes.h: ...here.
2005-09-20 19:25:57 +00:00
Jeff Johnston cddfc170fd 2005-09-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/rtems/include/stdint.h: Moved to...
        * libc/include/stdint.h: ...here.
2005-09-19 22:02:23 +00:00
Jeff Johnston b10ab72581 2005-09-08 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am: Add include files under bits sub-directory.
        * Makefile.in: Regenerated.
        * libc/sys/linux/argp/argp-fs-xinl.c: Set __OPTIMIZE__ to
        actual value of 1 to be compatible with newer glibc headers.
        * libc/sys/linux/sys/cdefs.h: Fix to be compatible with newer
        glibc headers.
        * libc/sys/linux/sys/dirent.h: Ditto.
        * libc/sys/linux/argp/argp-xinl.c: Ditto.
        * libc/sys/linux/dl/dl-runtime.c: Make sure fixup and
        profile_fixup routines are marked used so they won't be
        optimized away.
        * libc/sys/linux/dl/dl-cache.c: Don't use weak_extern macro
        to mark functions as weak.
        * libc/sys/linux/dl/dl-open.c: Ditto.
        * libc/sys/linux/iconv/gconv_open.c: Fix to obey new gcc4
        rules about lvalues.
        * libc/sys/linux/iconv/gconv_simple.c: Ditto.
        * libc/sys/linux/linuxthreads/bits/libc-lock.h: Don't use
        weak_extern macro to mark functions as weak.  Instead always
        use #pragma weak.
        * iconvdata/jis0208.h: Fix to work with gcc4.
        * libc/sys/linux/dl/dl-load.c: Ditto.
        * libc/sys/linux/dl/dl-reloc.c: Ditto.
        * libc/sys/linux/dl/do-rel.h: Ditto.
        * libc/sys/linux/dl/dynamic-link.h: Ditto.
        * libc/sys/linux/include/ltdl.h: Ditto.
        * libc/sys/linux/machine/i386/dl-machine.h: Ditto.
        * libc/sys/linux/machine/i386/weakalias.h: Ditto.
        * libc/sys/linux/net/ns_ntoa.c: Ditto.
        * libc/sys/linux/bits/initspin.h: New file.
        * libc/sys/linux/bits/libc-lock.h: Ditto.
        * libc/sys/linux/bits/pthreadtypes.h: Ditto.
        * libc/sys/linux/bits/typesizes.h: Ditto.
2005-09-08 22:45:53 +00:00
Jeff Johnston 7b786e4861 2005-09-08 Eric Blake <ebb9@byu.net>
* libc/argz/argz_insert.c (argz_insert): Don't die with EINVAL when
	before is NULL.
2005-09-08 21:07:43 +00:00
Jeff Johnston 32b09d754f 2005-09-08 Brian Dessent <brian@dessent.net>
* sf_lrint.c (lrintf): Mask 'i0' correctly when extracting
        mantissa.
        * s_lrint.c: Ditto.
2005-09-08 21:03:54 +00:00
Jeff Johnston 8f36ef2f33 2005-09-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h: Add prototype for viprintf.
2005-09-02 15:39:29 +00:00
Jeff Johnston cebe43dd76 2005-09-01 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
        any positive power results in 0.
        * libm/mathfp/sf_pow.c (powf): Ditto.
2005-09-01 17:53:02 +00:00
Jeff Johnston 45c8bb8f8c 2005-08-31 Paul Brook <paul@codesourcery.com>
* configure.host: Set have_crt0 to no for Arm targts when not
        providing syscalls.  Set sys_dir=arm unconditionally.
        Default have_crt0 based on sys_dir.
        * configure.in: Use have_crt0.
        * libc/configure.in: Ditto.
        * libc/sys/configure.in: Ditto.
        * configure: Regenerate.
        * libc/configure: Regenerate.
        * libc/sys/configure: Regenerate.
        * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c.
        Only build other files when providing syscalls.
        * libc/sys/arm/Makefile.in: Regenerate.
        * libc/sys/arm/aeabi_atexit.c: New file.
2005-08-31 20:39:43 +00:00
Christopher Faylor dbeee890d4 * libc/include/string.h: Revert previous change. 2005-08-26 04:33:02 +00:00
Christopher Faylor 377d3ea0e2 * libc/include/string.h: For Cygwin, Define strerror_r as per ISO C. 2005-08-25 23:02:24 +00:00
Jeff Johnston 4797a77c28 2005-08-22 Shaun Jackman <sjackman@gmail.com>
* libc/include/_syslist.h: If HAVE_OPENDIR is not defined,
        define _opendir as opendir, _readdir as readdir, and
        _closedir as closedir so that the implementations in
        libc/posix will be used.
2005-08-22 21:13:35 +00:00
DJ Delorie 2e73582e29 * MAINTAINERS (CPU Ports): Add CPU port maintainer section. 2005-08-10 21:16:14 +00:00
Jeff Johnston 234cf97f85 2005-08-10 Stephen Huw Clarke <stephen.clarke@st.com>
* libm/common/sf_fmax.c: Fix to properly handle NaNs.
        * libm/common/s_max.c: Ditto.
        * libm/common/sf_fmin.c: Ditto.
        * libm/common/s_min.c: Ditto.
2005-08-10 21:02:28 +00:00
Jeff Johnston 56448afa06 2005-08-10 DJ Delorie <dj@redhat.com>
* configure.host: Add m32c support.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/include/sys/config.h: Likewise.
        * libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
        * libc/machine/m32c/aclocal.m4: New file.
        * libc/machine/m32c/configure: Ditto.
        * libc/machine/m32c/configure.in: Ditto.
        * libc/machine/m32c/Makefile.am: Ditto.
        * libc/machine/m32c/Makefile.in: Ditto.
        * libc/machine/m32c/setjmp.S: Ditto.
2005-08-10 20:35:13 +00:00
Jeff Johnston 0c5c6c234f 2005-08-02 Bob Wilson <bob.wilson@acm.org>
* libm/math/ef_hypot.c (__ieee754_hypotf): Add missing exponent bias
         to the value for 2^126.
2005-08-02 19:44:44 +00:00
Hans-Peter Nilsson 12499c7a5d * libc/machine/cris/libcdtor.c (defaultors): Mark artificially as
used.
2005-07-26 20:37:13 +00:00
Jeff Johnston 395a327d17 2005-07-20 Bob Wilson <bob.wilson@acm.org>
Darin Petkov <darin@tensilica.com>

       * libm/math/ef_atan2.c (pi, pi_lo): Use round-to-nearest value of pi.
2005-07-20 16:20:24 +00:00
Jeff Johnston 108d7dd833 2005-07-19 Paul Brook <paul@codesourcery.com>
* libc/sys/arm/crt0.S: Ensure doubleword stack alignment.
2005-07-19 15:14:16 +00:00
Jeff Johnston b776efc599 2005-07-18 Joseph S. Myers <joseph@codesourcery.com>
* testsuite/lib/checkoutput.exp (newlib_check_output): Use test
        names after PASS and FAIL which do not depend on source directory
        name or on whether test passed or failed.
        * testsuite/lib/passfail.exp (newlib_pass_fail): Likewise.
2005-07-18 19:07:49 +00:00
Jeff Johnston 88540e248e 2005-07-08 Ola Hugosson <Ola.Hugosson@anoto.com>
* libc/string/wcsspn.c (wcsspn): Add missing increment of q.
2005-07-08 18:28:46 +00:00
Jeff Johnston 85d621900c Fix date of last entry. 2005-07-07 17:29:35 +00:00
Jeff Johnston b32adfc5cf *** empty log message *** 2005-07-07 17:29:13 +00:00
Aldy Hernandez dee9edd9ed * configure.host: Added entry for ms1*.
* libc/include/machine/ieeefp.h: Handle ms1.
        * libc/include/machine/setjmp.h (_JBLEN): Define for ms1.
        * libc/machine/ms1/aclocal.m4: New.
        * libc/machine/ms1/configure: New.
        * libc/machine/ms1/configure.in: New.
        * libc/machine/ms1/Makefile.am: New.
        * libc/machine/ms1/Makefile.in: New.
        * libc/machine/ms1/setjmp.S: New.
2005-07-06 13:14:10 +00:00
Jeff Johnston cec1d3b414 2005-07-04 Mark Mitchell <mark@codesourcery.com>
* Makefile.am (site.exp): Set tmpdir.
        * Makefile.in: Regenerated.
        * testsuite/lib/checkoutput.exp (newlib_check_output): Put
        executables in $tmpdir.
        * testsuite/lib/flags.exp (libgloss_link_flags): Use the original
        libgloss version if not running in the build directory.
        * testsuite/lib/newlib.exp (newlib_init): Put testglue.o in
        $tmpdir.
        * testsuite/lib/passfail.exp (newlib_pass_fail): Put executables
        in $tmpdir.
2005-07-05 00:11:50 +00:00
Jeff Johnston 25d209f13d 2005-06-28 Dave Korn <dave.korn@artimi.com>
* libm/common/s_lrint.c (lrint):  Fix signed-vs-unsigned comparison
        and miscalculation caused by fp representation of zero.
        * libm/common/sf_lrint.c (lrintf):  Likewise.
2005-06-28 17:03:18 +00:00
Jeff Johnston 68cdbb18da 2005-06-16 Christopher Faylor <cgf@timesys.com>
* libc/stdio/vfprintf.c (cvt): Don't rely on pointer aliasing to
        determine characteristics of long double.  Use a union instead.
        * ldtoa.c (_ldtoa_r): Ditto.
        (_ldcheck): Ditto.
        (_strtold): Ditto.
        (union uconv): New union.
2005-06-16 19:14:01 +00:00
Jeff Johnston 15c04fd16e 2005-06-03 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c (MALLOC_COPY): Switch to use memmove
        instead of memcpy.
2005-06-03 18:57:30 +00:00
Jeff Johnston cf55bf5ee8 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
* configure.host (mn10300-*): Add long long I/O support by default.
2005-05-12 22:10:26 +00:00
Jeff Johnston b6e654c498 2005-05-12 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/getpwuid.c: Removed.
        * libc/sys/linux/getpwnam.c: Removed.
        * libc/sys/linux/getpwent.c: New file containing logic
        from files removed above.  This allows overriding of file
        in libc/unix.
        * libc/sys/linux/Makefile.am: Support changes above.
        * libc/sys/linux/Makefile.in: Regenerated.
2005-05-12 22:06:26 +00:00
Jeff Johnston 5456408b84 2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
        when checking for multiple flags.
2005-04-28 18:26:08 +00:00
Hans-Peter Nilsson 1c74754f17 * configure.host <cris-*-* | crisv32-*-*>: Set
default_newlib_io_long_long="yes".
2005-04-18 02:52:21 +00:00
Jeff Johnston 6e75bff67d 2005-04-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/libgen.h: New file.

2005-04-08  Shaun Jackman  <sjackman@gmail.com>

        * libc/unix/Makefile.am: Add support for basename and dirname.
        * libc/unix/Makefile.in: Regenerated.
        * libc/unix/basename.c: New file.
        * libc/unix/dirname.c: New file.
2005-04-08 20:48:40 +00:00
Jeff Johnston 95c136c40a 2005-04-07 Shaun Jackman <sjackman@gmail.com>
* libc/sys/linux/inode.c (lchown): New function.
2005-04-07 23:40:42 +00:00
Jeff Johnston 9ae26f7e2e 2005-04-07 Shaun Jackman <sjackman@gmail.com>
* libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
        ELIX level is defined.
        * libc/unix/Makefile.in: Regenerated.
2005-04-07 23:37:06 +00:00
Jeff Johnston 85da703991 2005-04-05 Dave Korn <dave.korn@artimi.com>
* libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.
2005-04-05 18:38:09 +00:00
Corinna Vinschen fefc73a0c7 * libc/stdlib/strtod.c (_strtod_r): Never change s00. 2005-04-01 09:54:19 +00:00
Jeff Johnston fcfb011798 Fix whitespace with crx entry. 2005-03-23 18:09:57 +00:00
Christopher Faylor e633fde1ba * configure.host: For cygwin, redefine CC with cygwin include directory first
to mimic the behavior of the top-level configury.  Move include directory out
of newlib_cflags.
2005-03-23 17:09:29 +00:00
Jeff Johnston 859c94e8de 2005-03-22 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
        * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
        than errno.
2005-03-22 23:45:43 +00:00
Christopher Faylor 7e3fd32b1c * libc/include/machine/_types.h: Make trivial change to comment to avoid a
spurious warning from gcc.
2005-03-22 18:12:29 +00:00
Jeff Johnston d4eb892018 2005-03-21 Nicholas Wourms <nwourms@netscape.net>
* libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
        since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
        reent.h include.
2005-03-21 22:34:35 +00:00
Jeff Johnston 45030958d3 2005-03-18 Hans-Peter Nilsson <hp@axis.com>
Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/ctype.h: Remove invalid +1 offset from
        ctype macro references to __ctype_ptr.
        (_ctype_): Move declaration outside #ifndef __cplusplus.
2005-03-18 17:18:59 +00:00
Corinna Vinschen 5c9b5ac72d * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
evaluate first parameter only once.
	(siglongjmp): Ditto.
2005-03-18 09:46:30 +00:00
Jeff Johnston dd801fdabd 2005-03-17 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add new check to see if compiler supports
        aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
        * configure: Regenerated.
        * Makefile.in: Ditto.
        * newlib.hin: Add _HAVE_ARRAY_ALIASING.
        * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
        aliasing the _ctype_ array to _ctype_b.
        * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
        _ctype_ as deprecated.
2005-03-17 20:11:23 +00:00
Hans-Peter Nilsson 333eabc6f8 * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
-DCOMPACT_CTYPE.
2005-03-17 02:31:57 +00:00
Jeff Johnston df5a5b3592 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/sys/rtems/include/inttypes.h: New file.
        * libc/sys/rtems/include/stdint.h: Ditto.
2005-03-06 20:51:38 +00:00
Jeff Johnston 9d385fb06d 2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
* libc/string/memcmp.c: Fix to avoid pointer signedness warning.
2005-03-06 20:40:05 +00:00