summaryrefslogtreecommitdiffstats
path: root/newlib
Commit message (Collapse)AuthorAgeFilesLines
* 2006-08-30 Paul Brook <paul@codesourcery.com>Paul Brook2006-08-301-3/+27
| | | | | | | | | | | | | | | | | libgloss/ * arm/Makefile.in: Change armv7m linker script generation. Add armv7m.spec. Build armv7m-crt0.o. * arm/arm.sc: New file. * arm/armv7m.specs: New file. * arm/crt0.S: Add armv7m code. * arm/elf-lm3s10x.ld: Remove. * arm/elf-lm3s301.ld: Remove. * arm/elf-lm3s31x.ld: Remove. * arm/swi.h (do_AngelSWI): Add definition. * arm/syscalls.c: Merge lazy semihosting initialization from newlib. newlib/ * libc/sys/arm/crt0.S: Add armv7m rom startup code.
* 2006-08-29 Paul Brook <paul@codesourcery.com>Paul Brook2006-08-292-10/+2
| | | | | | newlib/ * libc/sys/arm/_fault_isr.c (_fault_isr): Compile unconditionally. * libc/sys/arm/_nmi_isr.c (_nmi_isr): Ditto.
* 2006-08-29 Paul Brook <paul@codesourcery.com>Paul Brook2006-08-296-136/+92
| | | | | | | | | | | | newlib/ * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Remove. * configure.in: Remove --disable-newlib-atexit-dynamic-alloc. * libc/stdlib/__atexit.c (__register_exitproc): Use weak reference to malloc. Only allocate dynamically if it is present. * libc/stdlib/__call_atexit.c (__call_exitprocs): Use weak reference to free. * configure: Regenerate. * newlib.hin: Regenerate.
* 2006-08-29 Paul Brook <paul@codesourcery.com>Paul Brook2006-08-291-0/+4
| | | | | newlib/ * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
* 2006-08-22 Paul Brook <paul@codesourcery.com>Paul Brook2006-08-221-4/+10
| | | | | | newlib/ * libc/sys/arm/syscalls.c (initialise_monitor_handles): Fix multithreaded locking.
* Add additional ARM_RDI_MONITOR callsSandra Loosemore2006-06-091-4/+50
|
* Issue #667Mark Mitchell2006-05-311-2/+2
| | | | | | * newlib/libc/sys/arm/syscalls.c (findslot): Call initialise_monitor_handles. (remap_handle): Do not call initialise_monitor_handles.
* Add semihosting support for BDM mode on ColdFireSandra Loosemore2006-05-221-0/+4
|
* * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_memclr.c,newlib-csl-sourcerygxx-4_1-5newlib-csl-sourcerygxx-4_1-4Kazu Hirata2006-05-047-3/+66
| | | | | | | | | | aeabi_memcpy.c, aeabi_memmove.c and aeabi_memset.c. * libc/sys/arm/Makefile.in: Regenerate. * libc/sys/arm/aeabi.h: New file. * libc/sys/arm/aeabi_memclr.c: New file. * libc/sys/arm/aeabi_memcpy.c: New file. * libc/sys/arm/aeabi_memmove.c: New file. * libc/sys/arm/aeabi_memset.c: New file.
* 2006-03-23 Mark Mitchell <mark@codesourcery.com>Mark Mitchell2006-03-2310-134/+255
| | | | | | | | | | | | | | | | | | | | | | * libc/sys/arm/Makefile.am (extra_objs): Add _exit.o _nmi_isr.o _fault_isr.o. * libc/sys/arm/Makefile.in: Regenerated. * libc/sys/arm/_exit.c: New file. * libc/sys/arm/_fault_isr.c: Likewise. * libc/sys/arm/_nmi_isr.c: Likewise. * libc/sys/arm/configure.in (--enable-newlib-arm-v7m): New option. * libc/sys/arm/configure: * libc/sys/arm/crt0.S (_start): Do not use semihosting calls in _start when configured for ARM V7M. Do not call initialise_monitor_handles. Indent preprocessor directives. (.isr_vector): New section, on ARM V7M. * libc/sys/arm/swi.h (do_AngelSWI): New function. * syscalls.c (_exit): Remove. (do_AngelSWI): Likewise. (CHECK_INIT): Remove. (remap_handle): Call initialise_monitor_handles. (__arm_monitor_handles_lock): New variable. (initialise_monitor_handles): Make sure to run only once.
* * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef.Mark Mitchell2006-03-217-80/+146
| | | | | | | | | | | * configure.in (--disable-newlib-atexit-dynamic-alloc): New option. * configure: Regenerated. * newlib.hin: Regenerated. * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc if _ATEXIT_DYNAMIC_ALLOC is undefined. * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free if _ATEXIT_DYNAMIC_ALLOC is undefined.
* 2006-03-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-03-172-1/+5
| | | | | * libc/sys/linux/linuxthreads/config.h: Remove definition of UINT32_C.
* 2006-03-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-03-152-2/+9
| | | | | * libc/stdio/wsetup.c (__swsetup): Don't make a buffer for a string I/O file that isn't using the asprintf family.
* 2006-03-07 Eric Blake <ebb9@byu.net>Jeff Johnston2006-03-073-14/+25
| | | | | | | * libc/stdio/freopen.c (_freopen_r) [HAVE_FCNTL]: For NULL filename, allow read-only or write-only FILE atop O_RDWR file descriptor. * libc/stdio64/freopen64.c (_freopen64_r) [HAVE_FCNTL]: Likewise.
* 2006-03-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-03-073-0/+9
| | | | | * libm/common/sf_isinf.c[_DOUBLE_IS_32BITS]: Undef isinf. * libm/common/sf_isnan.c[_DOUBLE_IS_32BITS]: Undef isnan.
* 2006-03-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-03-023-2/+8
| | | | | | * libm/math/math.tex: Fix reference to sisnan.def which is now in common subdirectory. * libm/mathfp/mathfp.tex: Ditto.
* Add missing comment regarding math.h.Jeff Johnston2006-02-281-0/+3
|
* 2006-02-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-02-2723-387/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (MATHOBJS_IN_LIBC): Add s_isinfd, sf_isinff, s_isnand, and sf_isnanf object files. * Makefile.in: Regenerated. * libc/include/ieeefp.h: Undef isnan and isinf to avoid conflict if <math.h> has previously been included. * libc/include/math.h * libm/common/Makefile.am: Add new s_isinfd, s_isnand, sf_isinff, and sf_isnanf files. Also support s_isnan, sf_isnan, s_isinf, and sf_isinf files which have been moved from math/mathfp directories. * libm/common/Makefile.in: Regenerated. * libm/common/s_isinfd.c: New file. * libm/common/s_isnand.c: Ditto. * libm/common/sf_isinff.c: Ditto. * libm/common/sf_isnanf.c: Ditto. * libm/common/s_isinf.c: Moved from libm/math directory. * libm/common/s_isnan.c: Ditto. * libm/common/sf_isinf.c: Ditto. * libm/common/sf_isnan.c: Ditto. * libm/math/Makefile.am: Remove isinf and isnan family functions which have been moved into common directory. * libm/mathfp/Makefile.am: Ditto. * libm/math/Makefile.in: Regenerated. * libm/mathfp/Makefile.in: Ditto. * libm/math/s_isinf.c: Removed. * libm/math/s_isnan.c: Ditto. * libm/math/sf_isinf.c: Ditto. * libm/math/sf_isnan.c: Ditto. * libm/mathfp/s_isinf.c: Ditto. * libm/mathfp/s_isnan.c: Ditto. * libm/mathfp/sf_isinf.c: Ditto. * libm/mathfp/sf_isnan.c: Ditto.
* 2006-02-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-02-203-1/+25
| | | | | | | * libc/stdio/fflush.c (fflush): For an fflush on a read-only stream, turn off fseek/rewind optimization as per POSIX/SUSv3. * libc/stdio/fseek.c (_fseek_r): After a successful unoptimized seek, turn off the __SNPT no-optimization flag.
* 2006-02-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-02-163-1/+10
| | | | | | | * libc/sys/linux/aio.c: Define _GNU_SOURCE so struct aioinit will be defined. * libc/sys/linux/sys/types.h: Move <sys/config.h> ahead of <features.h> to preset special flags.
* * libc/include/sys/time.h (struct timeval): Change member typesCorinna Vinschen2006-02-153-3/+12
| | | | | | | according to SUSv3. * libc/include/sys/types.h (useconds_t): Change to unsigned according to SUSv3. (suseconds_t): Define type.
* 2006-02-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-02-133-5/+19
| | | | | | | | | David Carne <davidcarne@gmail.com> * libc/string/strndup_r.c (_strndup_r): Use strnlen logic instead of strlen to determine number of bytes to copy. * libc/string/strnlen.c (strnlen): Fix so check for max limit occurs before looking at storage location.
* 2006-02-07 Paul Brook <paul@codesourcery.com>Jeff Johnston2006-02-077-16/+75
| | | | | | | | * libc/machine/arm/setjmp.S: Add Thumb-2 support. * libc/sys/arm/crt0.S: Add Thumb-2 startup code. * libc/sys/arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn. * libc/sys/arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define. * libc/sys/arm/trap.S: Disable for Thumb-2.
* 2006-01-31 Leif Ekblad <leif@rdos.net>Jeff Johnston2006-01-3136-1/+12877
| | | | | | | | | | | | | | | | | | | | | | * configure.host: RDOS support added * libc/include/sys/config.h: Ditto. * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files. * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto. * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto. * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto. * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto. * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto. * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto. * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto. * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto. * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto. * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto. * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto. * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto. * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto. * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto. * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto. * libc/sys/rdos/write.c: Ditto.
* 2006-01-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-245-83/+77
| | | | | | | | * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation so as not to define PACKAGE and VERSION in newlib.h. * aclocal.m4: Regenerated. * configure: Ditto. * newlib.hin: Ditto.
* 2006-01-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-2036-119/+263
| | | | | | | | | | | | * acconfig.h: New file to generate newlib.hin from. * newlib.hin: Regenerated. * stamp-h.in: Regenerated. * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be called automatically. * Makefile.in: Regenerated. * acinclude.m4: Add proper comment for hack in previous change. * aclocal.m4 */aclocal.m4: Regenerated. * configure */configure: Regenerated.
* 2006-01-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-11146-892/+1369
| | | | | | | | | | | | | | | | | | * acinclude.m4: Add hack to prevent INSTALL in subdirs from being set to "../". * Makefile.am: Pass INSTALL in AM_MAKEFLAGS. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * iconvdata/aclocal.m4: Ditto. * iconvdata/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto.
* 2006-01-10 Eric Blake <ebb9@byu.net>Jeff Johnston2006-01-103-6/+13
| | | | | * libc/stdio/freopen.c (_freopen_r): Fix use of oflags. * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* 2006-01-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-105-24/+35
| | | | | | | | | * libm/mathfp/s_frexp.c: Check for special values on the original input, not the manipulated output value. * libm/mathfp/sf_frexp.c: Ditto. * libm/mathfp/s_atangent.c: Don't use local value branch when checking for quadrant. * libm/mathfp/sf_atangent.c: Ditto.
* 2006-01-09 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-093-2/+7
| | | | | * libc/stdio/freopen.c: Switch to use isatty instead of _isatty. * libc/stdio64/freopen64.c: Ditto.
* 2006-01-09 Eric Blake <ebb9@byu.net>Jeff Johnston2006-01-093-14/+115
| | | | | * libc/stdio/freopen.c (_freopen_r): Accept NULL filename. * libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* 2006-01-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-062-2/+10
| | | | | * libc/sys/linux/include/getopt.h: Add macros needed by new version of getopt.c in libc/stdlib.
* 2006-01-04 Gregory Pietsch <gpietsch@comcast.net>Jeff Johnston2006-01-043-107/+538
| | | | | | * libc/stdlib/getopt.c: Replaced with version that adds getopt_long and getopt_long_only support. * libc/include/getopt.h: New file.
* 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-12-16150-159/+190
| | | | | | | | | | | | | | | | | * NEWS: Update with 1.14.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.14.0. * aclocal.m4: Regenerated. * configure: Ditto. * 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_1.14.
* 2005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-12-162-4/+9
| | | | | * libc/sys/linux/sys/stat.h: Change *stat64 prototypes to take a pointer to struct stat64 rather than struct stat.
* 2005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-12-163-12/+19
| | | | | | | * libc/include/stdint.h: Prefer long over int for int32_t. Use __have_long32 to set up int32_t. * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx" (Sync with stdint.h).
* * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. FixCorinna Vinschen2005-12-142-4/+7
| | | | typo in O_NDELAY comment.
* 2005-12-13 Nathan Sidwell <nathan@codesourcery.com>Jeff Johnston2005-12-135-4/+11
| | | | | | | * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__. * libc/include/machine/setjmp.h (__mt__): Likewise. * libc/machine/mt/setjmp.S: Rename ms1 reference to mt. * libc/machine/configure.in: Ditto.
* Rename ms1 to mt, part 1Nathan Sidwell2005-12-122-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. * configure.in: Replace ms1 arch with mt. * configure: Rebuilt. * bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt. (cpu_mt.lo, elf32-mt.lo): Update target and dependency names. * bfd/Makefile.in: Rebuilt. * bfd/config.bfd: Replace ms1 arch with mt. * bfd/configure.in: Replace ms1 files with mt files. * bfd/configure: Rebuilt. * bfd/elf32-mt.c: Renamed from elf32-ms1.c. Update include files. * bfd/cpu-mt.c: Renamed from cpu-ms1.c. * cpu/mt.cpu: Rename from ms1.cpu. * cpu/mt.opc: Rename from ms1.opc. * binutils/Makefile.am: Replace ms1 files with mt files. * binutils/Makefile.in: Rebuilt. * binutils/readelf.c (elf/mt.h): Adjust #include. * gas/configure.in: Replace ms1 arch with mt arch. * gas/configure: Rebuilt. * gas/configure.tgt: Replace ms1 arch with mt arch. * gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files. * gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files. * gas/doc/Makefile.in: Rebuilt. * gas/testsuite/gas/mt: Renamed from ms1 dir. Update file names as needed. * gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch. * gdb/configure.tgt: Replace ms1 arch with mt arch. * gdb/config/mt: Renamed from ms1 dir. Update file names as needed. * gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file. * include/elf/mt.h: Renamed from ms1.h * ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files. (eelf32mt.c): Update target name and dependencies. * ld/Makefile.in: Rebuilt. * ld/configure.tgt: Replace ms1 arch with mt arch. * ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update comment. * libgloss/configure.in: Replace ms1 arch with mt arch. * libgloss/configure: Rebuilt. * libgloss/mt: Renamed from ms1 dir. * newlib/configure.host: Replace ms1 arch with mt arch. * newlib/libc/machine/mt: Renamed from ms1 dir. * opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1 with mt. * opcodes/Makefile.in: Rebuilt. * opcodes/configure.in: Replace ms1 files with mt files. * opcodes/configure: Rebuilt. * sid/component/cgen-cpu/mt: Renamed from ms1 dir. Update file names as appropriate. * sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt files. * sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
* Rename ms1 files to mt files (part 1 -- renames only)Nathan Sidwell2005-12-126-0/+0
|
* 2005-12-08 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-12-082-9/+5
| | | | | * libc/include/sys/types.h: Remove the ifdef armour around standard POSIX types.
* 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2005-12-062-1/+26
| | | | | | | | * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create, rtems_gxx_key_delete, rtems_gxx_getspecific, rtems_gxx_setspecific, rtems_gxx_mutex_trylock, rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock, rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.
* * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.Christopher Faylor2005-12-052-42/+9
| | | | Declare unsetenv and _unsetenv_r when not cygwin.
* 2005-11-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-11-182-3/+13
| | | | | * libc/time/strptime.c (strptime): Don't abort for %c and %Z. Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.
* * libc/include/ieeefp.h: Add C++ guards.Corinna Vinschen2005-11-182-0/+9
|
* * include/sys/time.h: Move more cygwin stuff to cygwin-specific header.Christopher Faylor2005-11-182-4/+4
|
* * include/time.h: Remove more cygwin-specific stuff.Christopher Faylor2005-11-182-18/+4
|
* * include/time.h: Move cygwin declarations to cygwin-specific header.Christopher Faylor2005-11-183-11/+10
| | | | * include/sys/time.h: Rename cygwin include to "sys_time.h".
* 2005-11-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-11-175-150/+160
| | | | | | | | | * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h in libc/sys/linux/include. * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include. * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h. * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly in libc/sys/linux/dl.
* * libc/include/sys/time.h: For cygwin, use general header rather than specificChristopher Faylor2005-11-112-1/+6
| | | | "sys/select.h".