From 8791aae0acb6b3fac0a8b2f24af9373d89378caa Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sat, 20 Feb 2010 07:42:44 +0000 Subject: [PATCH] updates for devkitARM r28 --- build-devkit.sh | 6 +- .../{gcc-4.4.2.patch => gcc-4.4.3.patch} | 36 +- .../{gdb-7.0.patch => gdb-7.0.1.patch} | 12 +- ...ewlib-1.17.0.patch => newlib-1.18.0.patch} | 693 ++++++------------ dkarm-eabi/scripts/build-gcc.sh | 6 +- 5 files changed, 259 insertions(+), 494 deletions(-) rename dkarm-eabi/patches/{gcc-4.4.2.patch => gcc-4.4.3.patch} (82%) rename dkarm-eabi/patches/{gdb-7.0.patch => gdb-7.0.1.patch} (73%) rename dkarm-eabi/patches/{newlib-1.17.0.patch => newlib-1.18.0.patch} (88%) diff --git a/build-devkit.sh b/build-devkit.sh index 7a65e65..00c39af 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -94,10 +94,10 @@ done case "$VERSION" in "1" ) - GCC_VER=4.4.2 + GCC_VER=4.4.3 BINUTILS_VER=2.20 - NEWLIB_VER=1.17.0 - GDB_VER=7.0 + NEWLIB_VER=1.18.0 + GDB_VER=7.0.1 basedir='dkarm-eabi' package=devkitARM builddir=arm-eabi diff --git a/dkarm-eabi/patches/gcc-4.4.2.patch b/dkarm-eabi/patches/gcc-4.4.3.patch similarity index 82% rename from dkarm-eabi/patches/gcc-4.4.2.patch rename to dkarm-eabi/patches/gcc-4.4.3.patch index 32d044a..8e2519f 100644 --- a/dkarm-eabi/patches/gcc-4.4.2.patch +++ b/dkarm-eabi/patches/gcc-4.4.3.patch @@ -1,6 +1,6 @@ -diff -Nbaur gcc-4.4.2/gcc/config/arm/t-arm-elf gcc-4.4.2-arm/gcc/config/arm/t-arm-elf ---- gcc-4.4.2/gcc/config/arm/t-arm-elf 2008-06-12 18:29:47.000000000 +0100 -+++ gcc-4.4.2-arm/gcc/config/arm/t-arm-elf 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/gcc/config/arm/t-arm-elf gcc-4.4.3-arm/gcc/config/arm/t-arm-elf +--- gcc-4.4.3/gcc/config/arm/t-arm-elf 2008-06-12 18:29:47.000000000 +0100 ++++ gcc-4.4.3-arm/gcc/config/arm/t-arm-elf 2010-01-21 14:53:20.000000000 +0000 @@ -18,23 +18,23 @@ MULTILIB_EXCEPTIONS = MULTILIB_MATCHES = @@ -37,18 +37,18 @@ diff -Nbaur gcc-4.4.2/gcc/config/arm/t-arm-elf gcc-4.4.2-arm/gcc/config/arm/t-ar # # MULTILIB_OPTIONS += mhard-float/msoft-float # MULTILIB_DIRNAMES += fpu soft -diff -Nbaur gcc-4.4.2/gcc/config/arm/unknown-elf.h gcc-4.4.2-arm/gcc/config/arm/unknown-elf.h ---- gcc-4.4.2/gcc/config/arm/unknown-elf.h 2009-02-20 15:20:38.000000000 +0000 -+++ gcc-4.4.2-arm/gcc/config/arm/unknown-elf.h 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/gcc/config/arm/unknown-elf.h gcc-4.4.3-arm/gcc/config/arm/unknown-elf.h +--- gcc-4.4.3/gcc/config/arm/unknown-elf.h 2009-02-20 15:20:38.000000000 +0000 ++++ gcc-4.4.3-arm/gcc/config/arm/unknown-elf.h 2010-01-21 14:53:20.000000000 +0000 @@ -97,4 +97,4 @@ udivmoddi4, which will depend on the exception unwind routines, which will depend on abort, which is defined in libc. */ #undef LINK_GCC_C_SEQUENCE_SPEC -#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group" +#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group" -diff -Nbaur gcc-4.4.2/gcc/gcc.c gcc-4.4.2-arm/gcc/gcc.c ---- gcc-4.4.2/gcc/gcc.c 2009-03-17 21:25:59.000000000 +0000 -+++ gcc-4.4.2-arm/gcc/gcc.c 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/gcc/gcc.c gcc-4.4.3-arm/gcc/gcc.c +--- gcc-4.4.3/gcc/gcc.c 2010-01-09 00:05:06.000000000 +0000 ++++ gcc-4.4.3-arm/gcc/gcc.c 2010-01-21 14:53:20.000000000 +0000 @@ -643,6 +643,11 @@ #endif #endif @@ -105,9 +105,9 @@ diff -Nbaur gcc-4.4.2/gcc/gcc.c gcc-4.4.2-arm/gcc/gcc.c strcat (specs_file, just_machine_suffix); strcat (specs_file, "specs"); if (access (specs_file, R_OK) == 0) -diff -Nbaur gcc-4.4.2/gcc/prefix.c gcc-4.4.2-arm/gcc/prefix.c ---- gcc-4.4.2/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100 -+++ gcc-4.4.2-arm/gcc/prefix.c 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/gcc/prefix.c gcc-4.4.3-arm/gcc/prefix.c +--- gcc-4.4.3/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100 ++++ gcc-4.4.3-arm/gcc/prefix.c 2010-01-21 14:53:20.000000000 +0000 @@ -245,13 +245,16 @@ The returned string is always malloc-ed, and the caller is responsible for freeing it. */ @@ -134,9 +134,9 @@ diff -Nbaur gcc-4.4.2/gcc/prefix.c gcc-4.4.2-arm/gcc/prefix.c + + putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL)); } -diff -Nbaur gcc-4.4.2/gcc/toplev.c gcc-4.4.2-arm/gcc/toplev.c ---- gcc-4.4.2/gcc/toplev.c 2009-04-29 05:57:17.000000000 +0100 -+++ gcc-4.4.2-arm/gcc/toplev.c 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/gcc/toplev.c gcc-4.4.3-arm/gcc/toplev.c +--- gcc-4.4.3/gcc/toplev.c 2009-04-29 05:57:17.000000000 +0100 ++++ gcc-4.4.3-arm/gcc/toplev.c 2010-01-21 14:53:20.000000000 +0000 @@ -84,6 +84,7 @@ #include "tree-mudflap.h" #include "tree-pass.h" @@ -156,9 +156,9 @@ diff -Nbaur gcc-4.4.2/gcc/toplev.c gcc-4.4.2-arm/gcc/toplev.c hex_init (); /* Unlock the stdio streams. */ -diff -Nbaur gcc-4.4.2/libcpp/Makefile.in gcc-4.4.2-arm/libcpp/Makefile.in ---- gcc-4.4.2/libcpp/Makefile.in 2009-10-15 08:55:16.000000000 +0100 -+++ gcc-4.4.2-arm/libcpp/Makefile.in 2009-10-19 00:21:22.000000000 +0100 +diff -Nbaur gcc-4.4.3/libcpp/Makefile.in gcc-4.4.3-arm/libcpp/Makefile.in +--- gcc-4.4.3/libcpp/Makefile.in 2010-01-21 10:29:37.000000000 +0000 ++++ gcc-4.4.3-arm/libcpp/Makefile.in 2010-01-21 14:53:20.000000000 +0000 @@ -201,8 +201,7 @@ # Note that we put the dependencies into a .Tpo file, then move them # into place if the compile succeeds. We need this because gcc does diff --git a/dkarm-eabi/patches/gdb-7.0.patch b/dkarm-eabi/patches/gdb-7.0.1.patch similarity index 73% rename from dkarm-eabi/patches/gdb-7.0.patch rename to dkarm-eabi/patches/gdb-7.0.1.patch index 199f330..08e60e0 100644 --- a/dkarm-eabi/patches/gdb-7.0.patch +++ b/dkarm-eabi/patches/gdb-7.0.1.patch @@ -1,6 +1,6 @@ -diff -Nbaur gdb-7.0/gdb/Makefile.in gdb-7.0-new/gdb/Makefile.in ---- gdb-7.0/gdb/Makefile.in 2009-10-02 23:06:10.000000000 +0100 -+++ gdb-7.0-new/gdb/Makefile.in 2009-10-15 16:32:11.000000000 +0100 +diff -Nbaur gdb-7.0.1/gdb/Makefile.in gdb-7.0.1-new/gdb/Makefile.in +--- gdb-7.0.1/gdb/Makefile.in 2009-10-02 23:06:10.000000000 +0100 ++++ gdb-7.0.1-new/gdb/Makefile.in 2010-01-21 15:25:25.000000000 +0000 @@ -2005,10 +2005,10 @@ # Note that we put the dependencies into a .Tpo file, then move them # into place if the compile succeeds. We need this because gcc does @@ -16,9 +16,9 @@ diff -Nbaur gdb-7.0/gdb/Makefile.in gdb-7.0-new/gdb/Makefile.in @GMAKE_TRUE@else @GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \ @GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) -diff -Nbaur gdb-7.0/sim/ppc/Makefile.in gdb-7.0-new/sim/ppc/Makefile.in ---- gdb-7.0/sim/ppc/Makefile.in 2009-09-16 00:26:44.000000000 +0100 -+++ gdb-7.0-new/sim/ppc/Makefile.in 2009-10-15 16:31:25.000000000 +0100 +diff -Nbaur gdb-7.0.1/sim/ppc/Makefile.in gdb-7.0.1-new/sim/ppc/Makefile.in +--- gdb-7.0.1/sim/ppc/Makefile.in 2009-09-16 00:26:44.000000000 +0100 ++++ gdb-7.0.1-new/sim/ppc/Makefile.in 2010-01-21 15:25:25.000000000 +0000 @@ -551,7 +551,7 @@ PACKAGE_OBJ = @sim_pk_obj@ diff --git a/dkarm-eabi/patches/newlib-1.17.0.patch b/dkarm-eabi/patches/newlib-1.18.0.patch similarity index 88% rename from dkarm-eabi/patches/newlib-1.17.0.patch rename to dkarm-eabi/patches/newlib-1.18.0.patch index ff1e95f..09486f5 100644 --- a/dkarm-eabi/patches/newlib-1.17.0.patch +++ b/dkarm-eabi/patches/newlib-1.18.0.patch @@ -1,6 +1,6 @@ -diff -Nbaur newlib-1.17.0/libgloss/arm/crt0.S newlib-1.17.0-arm/libgloss/arm/crt0.S ---- newlib-1.17.0/libgloss/arm/crt0.S 2008-10-06 21:55:19.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/arm/crt0.S 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/arm/crt0.S newlib-1.18.0-arm/libgloss/arm/crt0.S +--- newlib-1.18.0/libgloss/arm/crt0.S 2008-10-06 21:55:19.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/arm/crt0.S 2009-12-21 11:08:45.000000000 +0000 @@ -167,7 +167,7 @@ ldr r3, .Lhwinit cmp r3, #0 @@ -19,48 +19,10 @@ diff -Nbaur newlib-1.17.0/libgloss/arm/crt0.S newlib-1.17.0-arm/libgloss/arm/crt blx r3 #else mov lr, pc -diff -Nbaur newlib-1.17.0/libgloss/arm/linux-syscalls0.S newlib-1.17.0-arm/libgloss/arm/linux-syscalls0.S ---- newlib-1.17.0/libgloss/arm/linux-syscalls0.S 2006-10-03 17:33:50.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/arm/linux-syscalls0.S 2009-10-19 01:48:38.000000000 +0100 -@@ -25,7 +25,7 @@ - GLOBAL(_ ## name); \ - mov r12, r7; \ - mov r7, #SYS_ ## name; \ -- swi; \ -+ swi #0; \ - mov r7, r12; \ - b _set_errno; \ - SIZE(_ ## name) -@@ -34,7 +34,7 @@ - FUNC(_syscall3) - push { r7 } - mov r7, r3 -- swi -+ swi #0 - pop { r7 } - b _set_errno - SIZE(_syscall3) -@@ -51,7 +51,7 @@ - ldr r4, [sp, #12]; \ - ldr r5, [sp, #16]; \ - mov r7, #SYS_ ## name; \ -- swi; \ -+ swi #0; \ - pop { r4 - r5, r7 }; \ - b _set_errno; \ - SIZE(_ ## name) -diff -Nbaur newlib-1.17.0/libgloss/configure newlib-1.17.0-arm/libgloss/configure ---- newlib-1.17.0/libgloss/configure 2008-12-17 23:08:09.000000000 +0000 -+++ newlib-1.17.0-arm/libgloss/configure 2009-10-19 00:31:20.000000000 +0100 -@@ -702,6 +702,7 @@ - CCASFLAGS' - ac_subdirs_all='doc - libnosys -+libsysbase - i386 - m32r - m68hc11 -@@ -1815,6 +1816,7 @@ +diff -Nbaur newlib-1.18.0/libgloss/configure newlib-1.18.0-arm/libgloss/configure +--- newlib-1.18.0/libgloss/configure 2009-12-10 17:07:03.000000000 +0000 ++++ newlib-1.18.0-arm/libgloss/configure 2009-12-21 11:16:51.000000000 +0000 +@@ -1819,6 +1819,7 @@ @@ -68,16 +30,16 @@ diff -Nbaur newlib-1.17.0/libgloss/configure newlib-1.17.0-arm/libgloss/configur if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" fi -@@ -2425,7 +2427,7 @@ +@@ -2568,6 +2569,8 @@ fi --subdirs="$subdirs libnosys" -+subdirs="$subdirs libnosys libsysbase" ++subdirs="$subdirs libsysbase" ++ + DEPDIR="${am__leading_dot}deps" - - case "${target}" in -@@ -3911,7 +3913,8 @@ + ac_config_commands="$ac_config_commands depfiles" +@@ -3910,7 +3913,8 @@ # The final `:' finishes the AND list. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' fi @@ -87,9 +49,9 @@ diff -Nbaur newlib-1.17.0/libgloss/configure newlib-1.17.0-arm/libgloss/configur ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' -diff -Nbaur newlib-1.17.0/libgloss/configure.in newlib-1.17.0-arm/libgloss/configure.in ---- newlib-1.17.0/libgloss/configure.in 2008-12-17 23:08:09.000000000 +0000 -+++ newlib-1.17.0-arm/libgloss/configure.in 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/configure.in newlib-1.18.0-arm/libgloss/configure.in +--- newlib-1.18.0/libgloss/configure.in 2009-12-10 17:07:03.000000000 +0000 ++++ newlib-1.18.0-arm/libgloss/configure.in 2009-12-21 11:13:11.000000000 +0000 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -98,17 +60,17 @@ diff -Nbaur newlib-1.17.0/libgloss/configure.in newlib-1.17.0-arm/libgloss/confi if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" -@@ -28,6 +29,7 @@ +@@ -140,6 +141,7 @@ + if test "${config_libnosys}" = "true"; then + AC_CONFIG_SUBDIRS([libnosys]) fi - - AC_CONFIG_SUBDIRS(libnosys) +AC_CONFIG_SUBDIRS(libsysbase) - case "${target}" in - i[[3456]]86-*-elf* | i[[3456]]86-*-coff*) -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/Makefile.in newlib-1.17.0-arm/libgloss/libsysbase/Makefile.in ---- newlib-1.17.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/Makefile.in 2009-10-19 00:31:20.000000000 +0100 + LIB_AC_PROG_CC + AS=${AS-as} +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/Makefile.in newlib-1.18.0-arm/libgloss/libsysbase/Makefile.in +--- newlib-1.18.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/Makefile.in 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,147 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -257,9 +219,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/Makefile.in newlib-1.17.0-arm/libg + +config.status: configure + $(SHELL) config.status --recheck -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/_exit.c newlib-1.17.0-arm/libgloss/libsysbase/_exit.c ---- newlib-1.17.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/_exit.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/_exit.c newlib-1.18.0-arm/libgloss/libsysbase/_exit.c +--- newlib-1.18.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/_exit.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,19 @@ +/* Stub version of _exit. */ + @@ -280,9 +242,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/_exit.c newlib-1.17.0-arm/libgloss + + while(1); +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/abort.c newlib-1.17.0-arm/libgloss/libsysbase/abort.c ---- newlib-1.17.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/abort.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/abort.c newlib-1.18.0-arm/libgloss/libsysbase/abort.c +--- newlib-1.18.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/abort.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,8 @@ +#include +#include @@ -292,9 +254,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/abort.c newlib-1.17.0-arm/libgloss + _exit (1); +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/acconfig.h newlib-1.17.0-arm/libgloss/libsysbase/acconfig.h ---- newlib-1.17.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/acconfig.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/acconfig.h newlib-1.18.0-arm/libgloss/libsysbase/acconfig.h +--- newlib-1.18.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/acconfig.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -325,9 +287,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/acconfig.h newlib-1.17.0-arm/libgl + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/aclocal.m4 newlib-1.17.0-arm/libgloss/libsysbase/aclocal.m4 ---- newlib-1.17.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/aclocal.m4 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/aclocal.m4 newlib-1.18.0-arm/libgloss/libsysbase/aclocal.m4 +--- newlib-1.18.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/aclocal.m4 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -673,9 +635,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/aclocal.m4 newlib-1.17.0-arm/libgl +]) + +m4_include([../acinclude.m4]) -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/build_argv.c newlib-1.17.0-arm/libgloss/libsysbase/build_argv.c ---- newlib-1.17.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/build_argv.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/build_argv.c newlib-1.18.0-arm/libgloss/libsysbase/build_argv.c +--- newlib-1.18.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/build_argv.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -708,9 +670,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/build_argv.c newlib-1.17.0-arm/lib + argstruct->argc = argCount; + argstruct->endARGV = &argv[argCount]; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/chdir.c newlib-1.17.0-arm/libgloss/libsysbase/chdir.c ---- newlib-1.17.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/chdir.c 2009-11-02 11:27:24.000000000 +0000 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/chdir.c newlib-1.18.0-arm/libgloss/libsysbase/chdir.c +--- newlib-1.18.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/chdir.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,176 @@ +#include +#include @@ -888,9 +850,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/chdir.c newlib-1.17.0-arm/libgloss + + return buf; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/close.c newlib-1.17.0-arm/libgloss/libsysbase/close.c ---- newlib-1.17.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/close.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/close.c newlib-1.18.0-arm/libgloss/libsysbase/close.c +--- newlib-1.18.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/close.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,41 @@ +#include "config.h" +#include <_ansi.h> @@ -933,9 +895,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/close.c newlib-1.17.0-arm/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/config.h.in newlib-1.17.0-arm/libgloss/libsysbase/config.h.in ---- newlib-1.17.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/config.h.in 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/config.h.in newlib-1.18.0-arm/libgloss/libsysbase/config.h.in +--- newlib-1.18.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/config.h.in 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -962,9 +924,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/config.h.in newlib-1.17.0-arm/libg + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure newlib-1.17.0-arm/libgloss/libsysbase/configure ---- newlib-1.17.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/configure 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/configure newlib-1.18.0-arm/libgloss/libsysbase/configure +--- newlib-1.18.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/configure 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,3553 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -4519,9 +4481,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure newlib-1.17.0-arm/libglo + + + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure.in newlib-1.17.0-arm/libgloss/libsysbase/configure.in ---- newlib-1.17.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/configure.in 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/configure.in newlib-1.18.0-arm/libgloss/libsysbase/configure.in +--- newlib-1.18.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/configure.in 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,208 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -4731,9 +4693,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/configure.in newlib-1.17.0-arm/lib +AC_OUTPUT + + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dir.c newlib-1.17.0-arm/libgloss/libsysbase/dir.c ---- newlib-1.17.0/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/dir.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/dir.c newlib-1.18.0-arm/libgloss/libsysbase/dir.c +--- newlib-1.18.0/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/dir.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,94 @@ +#include +#include @@ -4829,9 +4791,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dir.c newlib-1.17.0-arm/libgloss/l + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dirent.c newlib-1.17.0-arm/libgloss/libsysbase/dirent.c ---- newlib-1.17.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/dirent.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/dirent.c newlib-1.18.0-arm/libgloss/libsysbase/dirent.c +--- newlib-1.18.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/dirent.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,157 @@ +#include +#include @@ -4990,9 +4952,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/dirent.c newlib-1.17.0-arm/libglos + + return dirp->position; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/environ.c newlib-1.17.0-arm/libgloss/libsysbase/environ.c ---- newlib-1.17.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/environ.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/environ.c newlib-1.18.0-arm/libgloss/libsysbase/environ.c +--- newlib-1.18.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/environ.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -5000,9 +4962,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/environ.c newlib-1.17.0-arm/libglo + +char *__env[1] = { 0 }; +char **environ = __env; -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/execve.c newlib-1.17.0-arm/libgloss/libsysbase/execve.c ---- newlib-1.17.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/execve.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/execve.c newlib-1.18.0-arm/libgloss/libsysbase/execve.c +--- newlib-1.18.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/execve.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,31 @@ +/* + * Stub version of execve. @@ -5035,9 +4997,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/execve.c newlib-1.17.0-arm/libglos + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/flock.c newlib-1.17.0-arm/libgloss/libsysbase/flock.c ---- newlib-1.17.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/flock.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/flock.c newlib-1.18.0-arm/libgloss/libsysbase/flock.c +--- newlib-1.18.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/flock.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -5060,9 +5022,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/flock.c newlib-1.17.0-arm/libgloss +{ + __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock); +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fork.c newlib-1.17.0-arm/libgloss/libsysbase/fork.c ---- newlib-1.17.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/fork.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/fork.c newlib-1.18.0-arm/libgloss/libsysbase/fork.c +--- newlib-1.18.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/fork.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,25 @@ +/* + * Stub version of fork. @@ -5089,9 +5051,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fork.c newlib-1.17.0-arm/libgloss/ + r->_errno = ENOSYS; + return -1; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fstat.c newlib-1.17.0-arm/libgloss/libsysbase/fstat.c ---- newlib-1.17.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/fstat.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/fstat.c newlib-1.18.0-arm/libgloss/libsysbase/fstat.c +--- newlib-1.18.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/fstat.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5141,9 +5103,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fstat.c newlib-1.17.0-arm/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fsync.c newlib-1.17.0-arm/libgloss/libsysbase/fsync.c ---- newlib-1.17.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/fsync.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/fsync.c newlib-1.18.0-arm/libgloss/libsysbase/fsync.c +--- newlib-1.18.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/fsync.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,36 @@ +#include "config.h" +#include <_ansi.h> @@ -5181,9 +5143,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/fsync.c newlib-1.17.0-arm/libgloss + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/ftruncate.c newlib-1.17.0-arm/libgloss/libsysbase/ftruncate.c ---- newlib-1.17.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/ftruncate.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/ftruncate.c newlib-1.18.0-arm/libgloss/libsysbase/ftruncate.c +--- newlib-1.18.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/ftruncate.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5222,9 +5184,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/ftruncate.c newlib-1.17.0-arm/libg + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/getpid.c newlib-1.17.0-arm/libgloss/libsysbase/getpid.c ---- newlib-1.17.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/getpid.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/getpid.c newlib-1.18.0-arm/libgloss/libsysbase/getpid.c +--- newlib-1.18.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/getpid.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -5247,9 +5209,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/getpid.c newlib-1.17.0-arm/libglos + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/gettod.c newlib-1.17.0-arm/libgloss/libsysbase/gettod.c ---- newlib-1.17.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/gettod.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/gettod.c newlib-1.18.0-arm/libgloss/libsysbase/gettod.c +--- newlib-1.18.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/gettod.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,25 @@ +/* + * Stub version of gettimeofday. @@ -5276,9 +5238,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/gettod.c newlib-1.17.0-arm/libglos +} + +stub_warning(_gettimeofday) -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.c newlib-1.17.0-arm/libgloss/libsysbase/handle_manager.c ---- newlib-1.17.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/handle_manager.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/handle_manager.c newlib-1.18.0-arm/libgloss/libsysbase/handle_manager.c +--- newlib-1.18.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/handle_manager.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,47 @@ +#include +#include @@ -5327,9 +5289,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.c newlib-1.17.0-arm + return handles[fd-3]; + +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.h newlib-1.17.0-arm/libgloss/libsysbase/handle_manager.h ---- newlib-1.17.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/handle_manager.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/handle_manager.h newlib-1.18.0-arm/libgloss/libsysbase/handle_manager.h +--- newlib-1.18.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/handle_manager.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,10 @@ +#ifndef __HANDLE_MANAGER_H__ +#define __HANDLE_MANAGER_H__ @@ -5341,9 +5303,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/handle_manager.h newlib-1.17.0-arm +__handle *__get_handle(int fd); + +#endif -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/iosupport.c newlib-1.17.0-arm/libgloss/libsysbase/iosupport.c ---- newlib-1.17.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/iosupport.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/iosupport.c newlib-1.18.0-arm/libgloss/libsysbase/iosupport.c +--- newlib-1.18.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/iosupport.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,122 @@ +#include +#include @@ -5467,9 +5429,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/iosupport.c newlib-1.17.0-arm/libg + } +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/isatty.c newlib-1.17.0-arm/libgloss/libsysbase/isatty.c ---- newlib-1.17.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/isatty.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/isatty.c newlib-1.18.0-arm/libgloss/libsysbase/isatty.c +--- newlib-1.18.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/isatty.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,20 @@ +#include "config.h" +#include <_ansi.h> @@ -5491,9 +5453,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/isatty.c newlib-1.17.0-arm/libglos +#endif + return 0; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/kill.c newlib-1.17.0-arm/libgloss/libsysbase/kill.c ---- newlib-1.17.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/kill.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/kill.c newlib-1.18.0-arm/libgloss/libsysbase/kill.c +--- newlib-1.18.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/kill.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -5518,9 +5480,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/kill.c newlib-1.17.0-arm/libgloss/ + ptr->_errno = ENOSYS; + return -1; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/link.c newlib-1.17.0-arm/libgloss/libsysbase/link.c ---- newlib-1.17.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/link.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/link.c newlib-1.18.0-arm/libgloss/libsysbase/link.c +--- newlib-1.18.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/link.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5559,9 +5521,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/link.c newlib-1.17.0-arm/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/lseek.c newlib-1.17.0-arm/libgloss/libsysbase/lseek.c ---- newlib-1.17.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/lseek.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/lseek.c newlib-1.18.0-arm/libgloss/libsysbase/lseek.c +--- newlib-1.18.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/lseek.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,55 @@ +#include "config.h" +#include <_ansi.h> @@ -5618,15 +5580,15 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/lseek.c newlib-1.17.0-arm/libgloss + return ret; + +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/malloc_vars.c newlib-1.17.0-arm/libgloss/libsysbase/malloc_vars.c ---- newlib-1.17.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/malloc_vars.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/malloc_vars.c newlib-1.18.0-arm/libgloss/libsysbase/malloc_vars.c +--- newlib-1.18.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/malloc_vars.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/mkdir.c newlib-1.17.0-arm/libgloss/libsysbase/mkdir.c ---- newlib-1.17.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/mkdir.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/mkdir.c newlib-1.18.0-arm/libgloss/libsysbase/mkdir.c +--- newlib-1.18.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/mkdir.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,18 @@ +#include +#include @@ -5646,9 +5608,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/mkdir.c newlib-1.17.0-arm/libgloss + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/open.c newlib-1.17.0-arm/libgloss/libsysbase/open.c ---- newlib-1.17.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/open.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/open.c newlib-1.18.0-arm/libgloss/libsysbase/open.c +--- newlib-1.18.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/open.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -5707,9 +5669,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/open.c newlib-1.17.0-arm/libgloss/ + + return fd; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/read.c newlib-1.17.0-arm/libgloss/libsysbase/read.c ---- newlib-1.17.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/read.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/read.c newlib-1.18.0-arm/libgloss/libsysbase/read.c +--- newlib-1.18.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/read.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5759,9 +5721,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/read.c newlib-1.17.0-arm/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/rename.c newlib-1.17.0-arm/libgloss/libsysbase/rename.c ---- newlib-1.17.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/rename.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/rename.c newlib-1.18.0-arm/libgloss/libsysbase/rename.c +--- newlib-1.18.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/rename.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,39 @@ +#include +#include @@ -5802,9 +5764,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/rename.c newlib-1.17.0-arm/libglos + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/sbrk.c newlib-1.17.0-arm/libgloss/libsysbase/sbrk.c ---- newlib-1.17.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/sbrk.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/sbrk.c newlib-1.18.0-arm/libgloss/libsysbase/sbrk.c +--- newlib-1.18.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/sbrk.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,59 @@ +#include <_ansi.h> +#include @@ -5865,9 +5827,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/sbrk.c newlib-1.17.0-arm/libgloss/ + heap_start += incr; + return (caddr_t) prev_heap_start; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/stat.c newlib-1.17.0-arm/libgloss/libsysbase/stat.c ---- newlib-1.17.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/stat.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/stat.c newlib-1.18.0-arm/libgloss/libsysbase/stat.c +--- newlib-1.18.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/stat.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -5908,9 +5870,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/stat.c newlib-1.17.0-arm/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/statvfs.c newlib-1.17.0-arm/libgloss/libsysbase/statvfs.c ---- newlib-1.17.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/statvfs.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/statvfs.c newlib-1.18.0-arm/libgloss/libsysbase/statvfs.c +--- newlib-1.18.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/statvfs.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,23 @@ +#include +#include @@ -5935,9 +5897,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/statvfs.c newlib-1.17.0-arm/libglo + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/syscall_support.c newlib-1.17.0-arm/libgloss/libsysbase/syscall_support.c ---- newlib-1.17.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/syscall_support.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/syscall_support.c newlib-1.18.0-arm/libgloss/libsysbase/syscall_support.c +--- newlib-1.18.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/syscall_support.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,9 @@ +#include + @@ -5948,9 +5910,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/syscall_support.c newlib-1.17.0-ar + NULL // exit +}; + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/times.c newlib-1.17.0-arm/libgloss/libsysbase/times.c ---- newlib-1.17.0/libgloss/libsysbase/times.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/times.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/times.c newlib-1.18.0-arm/libgloss/libsysbase/times.c +--- newlib-1.18.0/libgloss/libsysbase/times.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/times.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,47 @@ +#include <_ansi.h> +#include <_syslist.h> @@ -6000,9 +5962,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/times.c newlib-1.17.0-arm/libgloss + return ret; +} \ No newline at end of file -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/truncate.c newlib-1.17.0-arm/libgloss/libsysbase/truncate.c ---- newlib-1.17.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/truncate.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/truncate.c newlib-1.18.0-arm/libgloss/libsysbase/truncate.c +--- newlib-1.18.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/truncate.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,59 @@ +#include "config.h" +#include <_ansi.h> @@ -6063,9 +6025,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/truncate.c newlib-1.17.0-arm/libgl + + return ret; +} -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/unlink.c newlib-1.17.0-arm/libgloss/libsysbase/unlink.c ---- newlib-1.17.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/unlink.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/unlink.c newlib-1.18.0-arm/libgloss/libsysbase/unlink.c +--- newlib-1.18.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/unlink.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,33 @@ +#include "config.h" +#include <_ansi.h> @@ -6100,9 +6062,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/unlink.c newlib-1.17.0-arm/libglos + return ret; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/wait.c newlib-1.17.0-arm/libgloss/libsysbase/wait.c ---- newlib-1.17.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/wait.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/wait.c newlib-1.18.0-arm/libgloss/libsysbase/wait.c +--- newlib-1.18.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/wait.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Stub version of wait. @@ -6132,9 +6094,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/wait.c newlib-1.17.0-arm/libgloss/ + return -1; +} + -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/warning.h newlib-1.17.0-arm/libgloss/libsysbase/warning.h ---- newlib-1.17.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/warning.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/warning.h newlib-1.18.0-arm/libgloss/libsysbase/warning.h +--- newlib-1.18.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/warning.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -6179,9 +6141,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/warning.h newlib-1.17.0-arm/libglo + "warning: " #name " is not implemented and will always fail") + +#endif /* __WARNING_H__ */ -diff -Nbaur newlib-1.17.0/libgloss/libsysbase/write.c newlib-1.17.0-arm/libgloss/libsysbase/write.c ---- newlib-1.17.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/libgloss/libsysbase/write.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/libgloss/libsysbase/write.c newlib-1.18.0-arm/libgloss/libsysbase/write.c +--- newlib-1.18.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/libgloss/libsysbase/write.c 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -6231,9 +6193,9 @@ diff -Nbaur newlib-1.17.0/libgloss/libsysbase/write.c newlib-1.17.0-arm/libgloss + } + return ret; +} -diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h newlib-1.17.0-arm/newlib/libc/include/stdint.h ---- newlib-1.17.0/newlib/libc/include/stdint.h 2008-12-10 21:27:58.000000000 +0000 -+++ newlib-1.17.0-arm/newlib/libc/include/stdint.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/stdint.h newlib-1.18.0-arm/newlib/libc/include/stdint.h +--- newlib-1.18.0/newlib/libc/include/stdint.h 2009-04-24 22:55:07.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/stdint.h 2009-12-21 11:08:45.000000000 +0000 @@ -75,14 +75,14 @@ #endif #endif @@ -6254,9 +6216,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h newlib-1.17.0-arm/newlib/ #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; typedef unsigned short uint32_t; -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/_types.h newlib-1.17.0-arm/newlib/libc/include/sys/_types.h ---- newlib-1.17.0/newlib/libc/include/sys/_types.h 2007-09-18 21:05:17.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/_types.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/_types.h newlib-1.18.0-arm/newlib/libc/include/sys/_types.h +--- newlib-1.18.0/newlib/libc/include/sys/_types.h 2007-09-18 21:05:17.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/_types.h 2009-12-21 11:08:45.000000000 +0000 @@ -21,7 +21,7 @@ typedef unsigned long long __dev_t; #else @@ -6266,9 +6228,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/_types.h newlib-1.17.0-arm/new #endif #endif -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dir.h newlib-1.17.0-arm/newlib/libc/include/sys/dir.h ---- newlib-1.17.0/newlib/libc/include/sys/dir.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/dir.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/dir.h newlib-1.18.0-arm/newlib/libc/include/sys/dir.h +--- newlib-1.18.0/newlib/libc/include/sys/dir.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/dir.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,32 @@ +/* + @@ -6302,9 +6264,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dir.h newlib-1.17.0-arm/newlib +#endif + +#endif // _dir_h_ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dirent.h newlib-1.17.0-arm/newlib/libc/include/sys/dirent.h ---- newlib-1.17.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/dirent.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/dirent.h newlib-1.18.0-arm/newlib/libc/include/sys/dirent.h +--- newlib-1.18.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/dirent.h 2009-12-21 11:08:45.000000000 +0000 @@ -4,10 +4,39 @@ not support , we will get this file which uses #error to force an error. */ @@ -6347,9 +6309,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/dirent.h newlib-1.17.0-arm/new + +#endif // _dirent_h_ \ No newline at end of file -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/iosupport.h newlib-1.17.0-arm/newlib/libc/include/sys/iosupport.h ---- newlib-1.17.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/iosupport.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/iosupport.h newlib-1.18.0-arm/newlib/libc/include/sys/iosupport.h +--- newlib-1.18.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/iosupport.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,78 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ @@ -6429,9 +6391,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/iosupport.h newlib-1.17.0-arm/ +//--------------------------------------------------------------------------------- +#endif // __iosupp_h__ +//--------------------------------------------------------------------------------- -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/statvfs.h newlib-1.17.0-arm/newlib/libc/include/sys/statvfs.h ---- newlib-1.17.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/statvfs.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/statvfs.h newlib-1.18.0-arm/newlib/libc/include/sys/statvfs.h +--- newlib-1.18.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/statvfs.h 2009-12-21 11:08:45.000000000 +0000 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -6469,9 +6431,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/statvfs.h newlib-1.17.0-arm/ne + +#endif // _SYS_STATVFS_H \ No newline at end of file -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/syslimits.h newlib-1.17.0-arm/newlib/libc/include/sys/syslimits.h ---- newlib-1.17.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/syslimits.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/syslimits.h newlib-1.18.0-arm/newlib/libc/include/sys/syslimits.h +--- newlib-1.18.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/syslimits.h 2009-12-21 11:08:45.000000000 +0000 @@ -44,7 +44,7 @@ #define LINK_MAX 32767 /* max file link count */ #define MAX_CANON 255 /* max bytes in term canon input line */ @@ -6481,9 +6443,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/syslimits.h newlib-1.17.0-arm/ #define NGROUPS_MAX 16 /* max supplemental group id's */ #ifndef OPEN_MAX #define OPEN_MAX 64 /* max open files per process */ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-arm/newlib/libc/include/sys/types.h ---- newlib-1.17.0/newlib/libc/include/sys/types.h 2008-09-26 17:15:50.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/types.h 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/types.h newlib-1.18.0-arm/newlib/libc/include/sys/types.h +--- newlib-1.18.0/newlib/libc/include/sys/types.h 2009-09-28 17:42:21.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/types.h 2009-12-21 11:08:45.000000000 +0000 @@ -130,7 +130,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -6493,7 +6455,7 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-arm/newl #endif #endif /*__CYGWIN__*/ -@@ -253,6 +253,9 @@ +@@ -258,6 +258,9 @@ typedef unsigned long useconds_t; typedef long suseconds_t; @@ -6503,10 +6465,10 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-arm/newl #include -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/unistd.h newlib-1.17.0-arm/newlib/libc/include/sys/unistd.h ---- newlib-1.17.0/newlib/libc/include/sys/unistd.h 2008-10-17 00:03:40.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/include/sys/unistd.h 2009-10-19 00:31:20.000000000 +0100 -@@ -211,12 +211,10 @@ +diff -Nbaur newlib-1.18.0/newlib/libc/include/sys/unistd.h newlib-1.18.0-arm/newlib/libc/include/sys/unistd.h +--- newlib-1.18.0/newlib/libc/include/sys/unistd.h 2009-12-17 19:43:43.000000000 +0000 ++++ newlib-1.18.0-arm/newlib/libc/include/sys/unistd.h 2009-12-21 11:08:45.000000000 +0000 +@@ -215,12 +215,10 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); #endif @@ -6519,54 +6481,41 @@ diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/unistd.h newlib-1.17.0-arm/new #if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(getdtablesize, (void)); -diff -Nbaur newlib-1.17.0/newlib/libc/locale/locale.c newlib-1.17.0-arm/newlib/libc/locale/locale.c ---- newlib-1.17.0/newlib/libc/locale/locale.c 2004-04-23 22:44:21.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/locale/locale.c 2009-10-19 00:31:20.000000000 +0100 -@@ -95,7 +95,7 @@ - #ifdef __CYGWIN__ - int __declspec(dllexport) __mb_cur_max = 1; - #else --int __mb_cur_max = 1; -+int __mb_cur_max = 6; +diff -Nbaur newlib-1.18.0/newlib/libc/locale/locale.c newlib-1.18.0-arm/newlib/libc/locale/locale.c +--- newlib-1.18.0/newlib/libc/locale/locale.c 2009-10-09 09:25:28.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/locale/locale.c 2010-02-18 21:21:57.000000000 +0000 +@@ -204,6 +204,10 @@ + "LC_MESSAGES", + }; + ++#ifdef __CYGWIN__ ++#define __DEFAULT_UTF8__ ++#endif ++ + /* + * Default locale per POSIX. Can be overridden on a per-target base. + */ +@@ -242,7 +246,7 @@ + #endif - int __nlocale_changed = 0; -@@ -112,8 +112,8 @@ - - char * _EXFUN(__locale_charset,(_VOID)); - --static char *charset = "ISO-8859-1"; --char __lc_ctype[12] = "C"; -+static char *charset = "UTF-8"; -+char __lc_ctype[12] = "C-UTF-8"; - - char * - _DEFUN(_setlocale_r, (p, category, locale), -@@ -131,9 +131,9 @@ - } - return "C"; +-#ifdef __CYGWIN__ ++#ifdef __DEFAULT_UTF8__ + static char lc_ctype_charset[ENCODING_LEN + 1] = "UTF-8"; + static char lc_message_charset[ENCODING_LEN + 1] = "UTF-8"; #else -- static char last_lc_ctype[12] = "C"; -- static char lc_messages[12] = "C"; -- static char last_lc_messages[12] = "C"; -+ static char last_lc_ctype[12] = "C-UTF-8"; -+ static char lc_messages[12] = "C-UTF-8"; -+ static char last_lc_messages[12] = "C-UTF-8"; - - if (locale) - { -@@ -185,7 +185,7 @@ - { - if (strcmp (locale, "C") && strcmp (locale, "")) - return 0; -- locale_name = "C"; /* C is always the default locale */ -+ locale_name = "C-UTF-8"; /* C is always the default locale */ - } - - if (category == LC_CTYPE) -diff -Nbaur newlib-1.17.0/newlib/libc/misc/init.c newlib-1.17.0-arm/newlib/libc/misc/init.c ---- newlib-1.17.0/newlib/libc/misc/init.c 2005-01-07 18:04:39.000000000 +0000 -+++ newlib-1.17.0-arm/newlib/libc/misc/init.c 2009-10-19 00:31:20.000000000 +0100 +@@ -450,7 +454,7 @@ + if (!strcmp (locale, "POSIX")) + strcpy (locale, "C"); + if (!strcmp (locale, "C")) /* Default "C" locale */ +-#ifdef __CYGWIN__ ++#ifdef __DEFAULT_UTF8__ + strcpy (charset, "UTF-8"); + #else + strcpy (charset, "ASCII"); +diff -Nbaur newlib-1.18.0/newlib/libc/misc/init.c newlib-1.18.0-arm/newlib/libc/misc/init.c +--- newlib-1.18.0/newlib/libc/misc/init.c 2009-04-16 20:16:41.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/misc/init.c 2009-12-21 11:08:45.000000000 +0000 @@ -57,4 +57,8 @@ _fini (); @@ -6576,9 +6525,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/misc/init.c newlib-1.17.0-arm/newlib/libc/ +#error why am I not defined + #endif -diff -Nbaur newlib-1.17.0/newlib/libc/reent/gettimeofdayr.c newlib-1.17.0-arm/newlib/libc/reent/gettimeofdayr.c ---- newlib-1.17.0/newlib/libc/reent/gettimeofdayr.c 2007-07-06 17:56:30.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/reent/gettimeofdayr.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/reent/gettimeofdayr.c newlib-1.18.0-arm/newlib/libc/reent/gettimeofdayr.c +--- newlib-1.18.0/newlib/libc/reent/gettimeofdayr.c 2007-07-06 17:56:30.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/reent/gettimeofdayr.c 2009-12-21 11:08:45.000000000 +0000 @@ -59,7 +59,7 @@ Check libc.a to see if its available on yours. */ @@ -6595,9 +6544,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/reent/gettimeofdayr.c newlib-1.17.0-arm/ne - +*/ #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */ -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fopen.c newlib-1.17.0-arm/newlib/libc/stdio/fopen.c ---- newlib-1.17.0/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/stdio/fopen.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/stdio/fopen.c newlib-1.18.0-arm/newlib/libc/stdio/fopen.c +--- newlib-1.18.0/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/stdio/fopen.c 2009-12-21 11:08:45.000000000 +0000 @@ -151,6 +151,9 @@ _flockfile (fp); @@ -6608,9 +6557,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fopen.c newlib-1.17.0-arm/newlib/lib fp->_file = f; fp->_flags = flags; fp->_cookie = (_PTR) fp; -diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fvwrite.c newlib-1.17.0-arm/newlib/libc/stdio/fvwrite.c ---- newlib-1.17.0/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/stdio/fvwrite.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/stdio/fvwrite.c newlib-1.18.0-arm/newlib/libc/stdio/fvwrite.c +--- newlib-1.18.0/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/stdio/fvwrite.c 2009-12-21 11:08:45.000000000 +0000 @@ -98,7 +98,8 @@ do { @@ -6621,9 +6570,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/stdio/fvwrite.c newlib-1.17.0-arm/newlib/l if (w <= 0) goto err; p += w; -diff -Nbaur newlib-1.17.0/newlib/libc/syscalls/Makefile.am newlib-1.17.0-arm/newlib/libc/syscalls/Makefile.am ---- newlib-1.17.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 -+++ newlib-1.17.0-arm/newlib/libc/syscalls/Makefile.am 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/syscalls/Makefile.am newlib-1.18.0-arm/newlib/libc/syscalls/Makefile.am +--- newlib-1.18.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 ++++ newlib-1.18.0-arm/newlib/libc/syscalls/Makefile.am 2009-12-21 11:08:45.000000000 +0000 @@ -20,8 +20,9 @@ sysstat.c \ systimes.c \ @@ -6636,9 +6585,9 @@ diff -Nbaur newlib-1.17.0/newlib/libc/syscalls/Makefile.am newlib-1.17.0-arm/new ## Weed out EL/IX level 3 interfaces if necessary if ELIX_LEVEL_1 -diff -Nbaur newlib-1.17.0/newlib/libc/time/asctime_r.c newlib-1.17.0-arm/newlib/libc/time/asctime_r.c ---- newlib-1.17.0/newlib/libc/time/asctime_r.c 2000-05-10 18:58:29.000000000 +0100 -+++ newlib-1.17.0-arm/newlib/libc/time/asctime_r.c 2009-10-19 00:31:20.000000000 +0100 +diff -Nbaur newlib-1.18.0/newlib/libc/time/asctime_r.c newlib-1.18.0-arm/newlib/libc/time/asctime_r.c +--- newlib-1.18.0/newlib/libc/time/asctime_r.c 2000-05-10 18:58:29.000000000 +0100 ++++ newlib-1.18.0-arm/newlib/libc/time/asctime_r.c 2009-12-21 11:08:45.000000000 +0000 @@ -18,7 +18,7 @@ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; @@ -6648,187 +6597,3 @@ diff -Nbaur newlib-1.17.0/newlib/libc/time/asctime_r.c newlib-1.17.0-arm/newlib/ day_name[tim_p->tm_wday], mon_name[tim_p->tm_mon], tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, -diff -Nbaur newlib-1.17.0/newlib/libc/time/strftime.c newlib-1.17.0-arm/newlib/libc/time/strftime.c ---- newlib-1.17.0/newlib/libc/time/strftime.c 2005-02-25 22:31:21.000000000 +0000 -+++ newlib-1.17.0-arm/newlib/libc/time/strftime.c 2009-10-19 00:31:20.000000000 +0100 -@@ -424,7 +424,7 @@ - int century = tim_p->tm_year >= 0 - ? tim_p->tm_year / 100 + YEAR_BASE / 100 - : abs (tim_p->tm_year + YEAR_BASE) / 100; -- count += snprintf (&s[count], maxsize - count, "%s%.*d", -+ count += sniprintf (&s[count], maxsize - count, "%s%.*d", - neg ? "-" : "", 2 - neg, century); - if (count >= maxsize) - return 0; -@@ -434,7 +434,7 @@ - case 'e': - if (count < maxsize - 2) - { -- sprintf (&s[count], *format == 'd' ? "%.2d" : "%2d", -+ siprintf (&s[count], *format == 'd' ? "%.2d" : "%2d", - tim_p->tm_mday); - count += 2; - } -@@ -446,7 +446,7 @@ - /* %m/%d/%y */ - if (count < maxsize - 8) - { -- sprintf (&s[count], "%.2d/%.2d/%.2d", -+ siprintf (&s[count], "%.2d/%.2d/%.2d", - tim_p->tm_mon + 1, tim_p->tm_mday, - tim_p->tm_year >= 0 ? tim_p->tm_year % 100 - : abs (tim_p->tm_year + YEAR_BASE) % 100); -@@ -478,7 +478,7 @@ - adjust = 1; - else if (adjust > 0 && tim_p->tm_year < -YEAR_BASE) - adjust = -1; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - ((year + adjust) % 100 + 100) % 100); - count += 2; - } -@@ -512,7 +512,7 @@ - year = 0; - ++century; - } -- count += snprintf (&s[count], maxsize - count, "%s%.*d%.2d", -+ count += sniprintf (&s[count], maxsize - count, "%s%.*d%.2d", - neg ? "-" : "", 2 - neg, century, year); - if (count >= maxsize) - return 0; -@@ -522,7 +522,7 @@ - case 'k': - if (count < maxsize - 2) - { -- sprintf (&s[count], *format == 'k' ? "%2d" : "%.2d", -+ siprintf (&s[count], *format == 'k' ? "%2d" : "%.2d", - tim_p->tm_hour); - count += 2; - } -@@ -541,7 +541,7 @@ - } - else - { -- sprintf (&s[count], *format == 'I' ? "%.2d" : "%2d", -+ siprintf (&s[count], *format == 'I' ? "%.2d" : "%2d", - tim_p->tm_hour % 12); - count += 2; - } -@@ -552,7 +552,7 @@ - case 'j': - if (count < maxsize - 3) - { -- sprintf (&s[count], "%.3d", -+ siprintf (&s[count], "%.3d", - tim_p->tm_yday + 1); - count += 3; - } -@@ -562,7 +562,7 @@ - case 'm': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_mon + 1); - count += 2; - } -@@ -572,7 +572,7 @@ - case 'M': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_min); - count += 2; - } -@@ -609,15 +609,15 @@ - } - else - { -- sprintf (&s[count], "%.2d", tim_p->tm_hour % 12); -+ siprintf (&s[count], "%.2d", tim_p->tm_hour % 12); - count += 2; - } - s[count++] = ':'; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_min); - count += 2; - s[count++] = ':'; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_sec); - count += 2; - s[count++] = ' '; -@@ -634,7 +634,7 @@ - case 'R': - if (count < maxsize - 5) - { -- sprintf (&s[count], "%.2d:%.2d", tim_p->tm_hour, tim_p->tm_min); -+ siprintf (&s[count], "%.2d:%.2d", tim_p->tm_hour, tim_p->tm_min); - count += 5; - } - else -@@ -643,7 +643,7 @@ - case 'S': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - tim_p->tm_sec); - count += 2; - } -@@ -660,7 +660,7 @@ - case 'X': - if (count < maxsize - 8) - { -- sprintf (&s[count], "%.2d:%.2d:%.2d", tim_p->tm_hour, -+ siprintf (&s[count], "%.2d:%.2d:%.2d", tim_p->tm_hour, - tim_p->tm_min, tim_p->tm_sec); - count += 8; - } -@@ -681,7 +681,7 @@ - case 'U': - if (count < maxsize - 2) - { -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - (tim_p->tm_yday + 7 - - tim_p->tm_wday) / 7); - count += 2; -@@ -706,7 +706,7 @@ - + (YEAR_BASE - 1 - - (tim_p->tm_year < 0 - ? 0 : 2000))))); -- sprintf (&s[count], "%.2d", week); -+ siprintf (&s[count], "%.2d", week); - count += 2; - } - else -@@ -722,7 +722,7 @@ - if (count < maxsize - 2) - { - int wday = (tim_p->tm_wday) ? tim_p->tm_wday - 1 : 6; -- sprintf (&s[count], "%.2d", -+ siprintf (&s[count], "%.2d", - (tim_p->tm_yday + 7 - wday) / 7); - count += 2; - } -@@ -736,7 +736,7 @@ - the asymmetric range of years. */ - int year = tim_p->tm_year >= 0 ? tim_p->tm_year % 100 - : abs (tim_p->tm_year + YEAR_BASE) % 100; -- sprintf (&s[count], "%.2d", year); -+ siprintf (&s[count], "%.2d", year); - count += 2; - } - else -@@ -766,7 +766,7 @@ - but have to use __tzrule for daylight savings. */ - offset = -tz->__tzrule[tim_p->tm_isdst > 0].offset; - TZ_UNLOCK; -- sprintf (&s[count], "%+03ld%.2ld", offset / SECSPERHOUR, -+ siprintf (&s[count], "%+03ld%.2ld", offset / SECSPERHOUR, - labs (offset / SECSPERMIN) % 60L); - count += 5; - } diff --git a/dkarm-eabi/scripts/build-gcc.sh b/dkarm-eabi/scripts/build-gcc.sh index 2583058..8f910db 100644 --- a/dkarm-eabi/scripts/build-gcc.sh +++ b/dkarm-eabi/scripts/build-gcc.sh @@ -9,8 +9,8 @@ PLATFORM=`uname -s` case $PLATFORM in Darwin ) - cflags="-O -g -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" - ldflags="-arch i386 -arch ppc" + cflags="-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" + ldflags="-mmacosx-version-min=10.4 -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" ;; MINGW32* ) cflags="-D__USE_MINGW_ACCESS" @@ -72,7 +72,7 @@ then --target=$target \ --with-newlib \ --prefix=$prefix\ - --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 27" \ + --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 28" \ || { echo "Error configuring gcc"; exit 1; } touch configured-gcc fi