From f6b772f1f23daa057cad9124aa2684e28705aa12 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Mon, 14 Apr 2008 01:57:40 +0000 Subject: [PATCH] prep for devkitPPC r15 --- build-devkit.sh | 2 +- .../{gcc-4.2.3.patch => gcc-4.3.0.patch} | 148 ++----- dkppc/patches/newlib-1.15.0.patch | 372 ++++++++++++------ dkppc/scripts/build-gcc.sh | 4 +- 4 files changed, 279 insertions(+), 247 deletions(-) rename dkppc/patches/{gcc-4.2.3.patch => gcc-4.3.0.patch} (64%) diff --git a/build-devkit.sh b/build-devkit.sh index cdb5298..22fa609 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -92,7 +92,7 @@ case "$VERSION" in toolchain=DEVKITARM ;; "2" ) - GCC_VER=4.2.3 + GCC_VER=4.3.0 BINUTILS_VER=2.18.50 NEWLIB_VER=1.15.0 basedir='dkppc' diff --git a/dkppc/patches/gcc-4.2.3.patch b/dkppc/patches/gcc-4.3.0.patch similarity index 64% rename from dkppc/patches/gcc-4.2.3.patch rename to dkppc/patches/gcc-4.3.0.patch index 568b9f9..ca95d61 100644 --- a/dkppc/patches/gcc-4.2.3.patch +++ b/dkppc/patches/gcc-4.3.0.patch @@ -1,6 +1,6 @@ -diff -Nbaur gcc-4.2.3/config.sub gcc-4.2.3-ppc/config.sub ---- gcc-4.2.3/config.sub Mon Oct 16 04:27:17 2006 -+++ gcc-4.2.3-ppc/config.sub Sat Feb 16 23:12:58 2008 +diff -Nbaur gcc-4.3.0/config.sub gcc-4.3.0-ppc/config.sub +--- gcc-4.3.0/config.sub Wed Jan 23 02:37:40 2008 ++++ gcc-4.3.0-ppc/config.sub Sun Apr 13 21:26:32 2008 @@ -230,6 +230,10 @@ basic_machine=m68k-atari os=-mint @@ -12,38 +12,9 @@ diff -Nbaur gcc-4.2.3/config.sub gcc-4.2.3-ppc/config.sub esac # Decode aliases for certain CPU-COMPANY combinations. -diff -Nbaur gcc-4.2.3/gcc/c-incpath.c gcc-4.2.3-ppc/gcc/c-incpath.c ---- gcc-4.2.3/gcc/c-incpath.c Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/c-incpath.c Sat Feb 16 23:12:58 2008 -@@ -340,13 +340,18 @@ - cpp_dir *p; - - #if defined (HAVE_DOS_BASED_FILE_SYSTEM) -- /* Convert all backslashes to slashes. The native CRT stat() -- function does not recognize a directory that ends in a backslash -- (unless it is a drive root dir, such "c:\"). Forward slashes, -- trailing or otherwise, cause no problems for stat(). */ -- char* c; -- for (c = path; *c; c++) -- if (*c == '\\') *c = '/'; -+ /* Remove unnecessary trailing slashes. On some versions of MS -+ Windows, trailing _forward_ slashes cause no problems for stat(). -+ On newer versions, stat() does not recognise a directory that ends -+ in a '\\' or '/', unless it is a drive root dir, such as "c:/", -+ where it is obligatory. */ -+ int pathlen = strlen (path); -+ char* end = path + pathlen - 1; -+ /* Preserve the lead '/' or lead "c:/". */ -+ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1); -+ -+ for (; end > start && IS_DIR_SEPARATOR (*end); end--) -+ *end = 0; - #endif - - p = XNEW (cpp_dir); -diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.h gcc-4.2.3-ppc/gcc/config/rs6000/sysv4.h ---- gcc-4.2.3/gcc/config/rs6000/sysv4.h Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/config/rs6000/sysv4.h Sun Feb 17 06:39:15 2008 +diff -Nbaur gcc-4.3.0/gcc/config/rs6000/sysv4.h gcc-4.3.0-ppc/gcc/config/rs6000/sysv4.h +--- gcc-4.3.0/gcc/config/rs6000/sysv4.h Wed Aug 8 20:33:24 2007 ++++ gcc-4.3.0-ppc/gcc/config/rs6000/sysv4.h Mon Apr 14 00:27:50 2008 @@ -651,7 +651,11 @@ /* Default starting address if specified. */ @@ -105,7 +76,7 @@ diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.h gcc-4.2.3-ppc/gcc/config/rs6000/ mcall-openbsd: %(lib_openbsd) ; \ : %(lib_default) }" --#define LIB_DEFAULT_SPEC "" +-#define LIB_DEFAULT_SPEC "-lc" +#define LIB_DEFAULT_SPEC "--start-group -lsysbase -lc --end-group" /* Override svr4.h definition. */ @@ -124,7 +95,7 @@ diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.h gcc-4.2.3-ppc/gcc/config/rs6000/ +#define LIB_OGC_SPEC "--start-group -lsysbase -lc --end-group" #define STARTFILE_ADS_SPEC "ecrti.o%s crt0.o%s crtbegin.o%s" -+#define STARTFILE_OGC_SPEC "ecrti.o%s crtbegin.o%s" ++#define STARTFILE_OGC_SPEC "ecrti.o%s crtbegin.o%s crtmain.o%s" #define ENDFILE_ADS_SPEC "crtend.o%s ecrtn.o%s" +#define ENDFILE_OGC_SPEC "crtend.o%s ecrtn.o%s" @@ -199,9 +170,9 @@ diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.h gcc-4.2.3-ppc/gcc/config/rs6000/ { "cpp_os_ads", CPP_OS_ADS_SPEC }, \ { "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \ { "cpp_os_mvme", CPP_OS_MVME_SPEC }, \ -diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.opt gcc-4.2.3-ppc/gcc/config/rs6000/sysv4.opt ---- gcc-4.2.3/gcc/config/rs6000/sysv4.opt Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/config/rs6000/sysv4.opt Sun Feb 17 04:05:39 2008 +diff -Nbaur gcc-4.3.0/gcc/config/rs6000/sysv4.opt gcc-4.3.0-ppc/gcc/config/rs6000/sysv4.opt +--- gcc-4.3.0/gcc/config/rs6000/sysv4.opt Tue Nov 27 05:58:21 2007 ++++ gcc-4.3.0-ppc/gcc/config/rs6000/sysv4.opt Sun Apr 13 21:26:32 2008 @@ -107,6 +107,26 @@ Target RejectNegative Link with libads.a, libc.a and crt0.o @@ -229,19 +200,19 @@ diff -Nbaur gcc-4.2.3/gcc/config/rs6000/sysv4.opt gcc-4.2.3-ppc/gcc/config/rs600 myellowknife Target RejectNegative Link with libyk.a, libc.a and crt0.o -diff -Nbaur gcc-4.2.3/gcc/gcc.c gcc-4.2.3-ppc/gcc/gcc.c ---- gcc-4.2.3/gcc/gcc.c Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/gcc.c Sat Feb 16 23:12:58 2008 -@@ -3369,8 +3369,6 @@ +diff -Nbaur gcc-4.3.0/gcc/gcc.c gcc-4.3.0-ppc/gcc/gcc.c +--- gcc-4.3.0/gcc/gcc.c Sun Mar 2 22:55:19 2008 ++++ gcc-4.3.0-ppc/gcc/gcc.c Sun Apr 13 21:30:36 2008 +@@ -3418,8 +3418,6 @@ gcc_libexec_prefix = make_relative_prefix (argv[0], standard_bindir_prefix, standard_libexec_prefix); - if (gcc_exec_prefix) -- putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL)); +- xputenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL)); } else { -@@ -6213,10 +6211,21 @@ +@@ -6264,10 +6262,21 @@ /* We need to check standard_exec_prefix/just_machine_suffix/specs for any override of as, ld and libraries. */ @@ -263,9 +234,9 @@ diff -Nbaur gcc-4.2.3/gcc/gcc.c gcc-4.2.3-ppc/gcc/gcc.c strcat (specs_file, just_machine_suffix); strcat (specs_file, "specs"); if (access (specs_file, R_OK) == 0) -diff -Nbaur gcc-4.2.3/gcc/prefix.c gcc-4.2.3-ppc/gcc/prefix.c ---- gcc-4.2.3/gcc/prefix.c Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/prefix.c Sat Feb 16 23:12:58 2008 +diff -Nbaur gcc-4.3.0/gcc/prefix.c gcc-4.3.0-ppc/gcc/prefix.c +--- gcc-4.3.0/gcc/prefix.c Mon Sep 3 18:09:20 2007 ++++ gcc-4.3.0-ppc/gcc/prefix.c Sun Apr 13 21:26:32 2008 @@ -245,13 +245,16 @@ The returned string is always malloc-ed, and the caller is responsible for freeing it. */ @@ -292,38 +263,18 @@ diff -Nbaur gcc-4.2.3/gcc/prefix.c gcc-4.2.3-ppc/gcc/prefix.c + + putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL)); } -diff -Nbaur gcc-4.2.3/gcc/stor-layout.c gcc-4.2.3-ppc/gcc/stor-layout.c ---- gcc-4.2.3/gcc/stor-layout.c Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/stor-layout.c Sat Feb 16 23:12:58 2008 -@@ -530,7 +530,15 @@ - #ifdef STRUCTURE_SIZE_BOUNDARY - /* Packed structures don't need to have minimum size. */ - if (! TYPE_PACKED (t)) -- rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY); -+ { -+ unsigned tmp; -+ -+ /* #pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */ -+ tmp = (unsigned) STRUCTURE_SIZE_BOUNDARY; -+ if (maximum_field_alignment != 0) -+ tmp = MIN (tmp, maximum_field_alignment); -+ rli->record_align = MAX (rli->record_align, tmp); -+ } - #endif - - rli->offset = size_zero_node; -diff -Nbaur gcc-4.2.3/gcc/toplev.c gcc-4.2.3-ppc/gcc/toplev.c ---- gcc-4.2.3/gcc/toplev.c Sat Sep 1 16:28:30 2007 -+++ gcc-4.2.3-ppc/gcc/toplev.c Sat Feb 16 23:12:58 2008 -@@ -81,6 +81,7 @@ - #include "value-prof.h" +diff -Nbaur gcc-4.3.0/gcc/toplev.c gcc-4.3.0-ppc/gcc/toplev.c +--- gcc-4.3.0/gcc/toplev.c Tue Feb 5 16:23:10 2008 ++++ gcc-4.3.0-ppc/gcc/toplev.c Sun Apr 13 21:26:32 2008 +@@ -82,6 +82,7 @@ #include "alloc-pool.h" #include "tree-mudflap.h" + #include "tree-pass.h" +#include "prefix.h" #if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO) #include "dwarf2out.h" -@@ -1478,6 +1479,10 @@ +@@ -1622,6 +1623,10 @@ progname = p; xmalloc_set_program_name (progname); @@ -334,50 +285,3 @@ diff -Nbaur gcc-4.2.3/gcc/toplev.c gcc-4.2.3-ppc/gcc/toplev.c hex_init (); -diff -Nbaur gcc-4.2.3/gcc/version.c gcc-4.2.3-ppc/gcc/version.c ---- gcc-4.2.3/gcc/version.c Wed Mar 16 06:04:10 2005 -+++ gcc-4.2.3-ppc/gcc/version.c Sat Feb 16 23:12:58 2008 -@@ -8,7 +8,7 @@ - in parentheses. You may also wish to include a number indicating - the revision of your modified compiler. */ - --#define VERSUFFIX "" -+#define VERSUFFIX " (devkitPPC release 14)" - - /* This is the location of the online document giving instructions for - reporting bugs. If you distribute a modified version of GCC, -@@ -17,7 +17,7 @@ - forward us bugs reported to you, if you determine that they are - not bugs in your modifications.) */ - --const char bug_report_url[] = ""; -+const char bug_report_url[] = ""; - - /* The complete version string, assembled from several pieces. - BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */ -diff -Nbaur gcc-4.2.3/libcpp/files.c gcc-4.2.3-ppc/libcpp/files.c ---- gcc-4.2.3/libcpp/files.c Sat Feb 18 09:25:31 2006 -+++ gcc-4.2.3-ppc/libcpp/files.c Sat Feb 16 23:12:58 2008 -@@ -226,6 +226,22 @@ - close (file->fd); - file->fd = -1; - } -+#if defined(_WIN32) && !defined(__CYGWIN__) -+ else if (errno == EACCES) -+ { -+ /* On most UNIX systems, open succeeds on a directory. Above, -+ we check if we have opened a directory and if so, set errno -+ to ENOENT. However, on Windows, opening a directory -+ fails with EACCESS. We want to return ENOENT in that -+ case too. */ -+ if (stat (file->path, &file->st) == 0 -+ && S_ISDIR (file->st.st_mode)) -+ errno = ENOENT; -+ else -+ /* The call to stat may have reset errno. */ -+ errno = EACCES; -+ } -+#endif - else if (errno == ENOTDIR) - errno = ENOENT; - diff --git a/dkppc/patches/newlib-1.15.0.patch b/dkppc/patches/newlib-1.15.0.patch index e07d177..b031807 100644 --- a/dkppc/patches/newlib-1.15.0.patch +++ b/dkppc/patches/newlib-1.15.0.patch @@ -1,17 +1,18 @@ -diff -NBaur newlib-1.15.0/config.sub newlib-1.15.0-new/config.sub +diff -Nbaur newlib-1.15.0/config.sub newlib-1.15.0-new/config.sub --- newlib-1.15.0/config.sub Mon Dec 11 04:12:46 2006 -+++ newlib-1.15.0-new/config.sub Thu Feb 14 17:41:07 2008 -@@ -230,6 +230,9 @@ ++++ newlib-1.15.0-new/config.sub Tue Mar 4 23:23:47 2008 +@@ -230,6 +230,10 @@ basic_machine=m68k-atari os=-mint ;; + -gekko) + basic_machine=powerpc-eabi + os=-elf-gekko ++ ;; esac # Decode aliases for certain CPU-COMPANY combinations. -diff -NBaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configure +diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configure --- newlib-1.15.0/libgloss/configure Mon Dec 18 21:48:18 2006 +++ newlib-1.15.0-new/libgloss/configure Fri Feb 16 09:13:44 2007 @@ -272,8 +272,10 @@ @@ -25,6 +26,14 @@ diff -NBaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur ac_subdirs_all="$ac_subdirs_all i386" ac_subdirs_all="$ac_subdirs_all m32r" ac_subdirs_all="$ac_subdirs_all m68hc11" +@@ -1287,6 +1289,7 @@ + + + ++ + if test "${enable_shared}" = "yes" ; then + echo "Shared libraries not supported for cross compiling, ignored" + fi @@ -1823,6 +1826,10 @@ @@ -36,7 +45,7 @@ diff -NBaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur case "${target}" in -diff -NBaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/configure.in +diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/configure.in --- newlib-1.15.0/libgloss/configure.in Mon Dec 18 21:48:18 2006 +++ newlib-1.15.0-new/libgloss/configure.in Fri Feb 16 09:13:44 2007 @@ -2,6 +2,7 @@ @@ -55,9 +64,9 @@ diff -NBaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/confi case "${target}" in i[[3456]]86-*-elf* | i[[3456]]86-*-coff*) -diff -NBaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libgloss/libsysbase/Makefile.in +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libgloss/libsysbase/Makefile.in --- newlib-1.15.0/libgloss/libsysbase/Makefile.in Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/Makefile.in Sun Feb 17 14:32:21 2008 ++++ newlib-1.15.0-new/libgloss/libsysbase/Makefile.in Sun Apr 13 18:10:36 2008 @@ -0,0 +1,147 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -130,7 +139,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libg + isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \ + unlink.o wait.o write.o _exit.o malloc_vars.o \ + chdir.o mkdir.o dir.o rename.o build_argv.o statvfs.o \ -+ flock.o syscall_support.o ++ flock.o syscall_support.o handle_manager.o + +# Object files specific to particular targets. +EVALOBJS = ${OBJS} @@ -206,7 +215,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libg + +config.status: configure + $(SHELL) config.status --recheck -diff -NBaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss/libsysbase/_exit.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss/libsysbase/_exit.c --- newlib-1.15.0/libgloss/libsysbase/_exit.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/_exit.c Tue Feb 19 18:59:32 2008 @@ -0,0 +1,19 @@ @@ -229,7 +238,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss + + while(1); +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss/libsysbase/abort.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss/libsysbase/abort.c --- newlib-1.15.0/libgloss/libsysbase/abort.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/abort.c Sun Feb 17 14:32:21 2008 @@ -0,0 +1,8 @@ @@ -241,7 +250,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss + _exit (1); +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgloss/libsysbase/acconfig.h +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgloss/libsysbase/acconfig.h --- newlib-1.15.0/libgloss/libsysbase/acconfig.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/acconfig.h Sun Feb 17 14:32:21 2008 @@ -0,0 +1,29 @@ @@ -274,7 +283,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgl + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -NBaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 --- newlib-1.15.0/libgloss/libsysbase/aclocal.m4 Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 Sun Feb 17 14:32:21 2008 @@ -0,0 +1,344 @@ @@ -622,7 +631,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgl +]) + +m4_include([../acinclude.m4]) -diff -NBaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/libgloss/libsysbase/build_argv.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/libgloss/libsysbase/build_argv.c --- newlib-1.15.0/libgloss/libsysbase/build_argv.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/build_argv.c Sun Feb 17 14:32:22 2008 @@ -0,0 +1,31 @@ @@ -657,7 +666,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/lib + argstruct->argc = argCount; + argstruct->endARGV = &argv[argCount]; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss/libsysbase/chdir.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss/libsysbase/chdir.c --- newlib-1.15.0/libgloss/libsysbase/chdir.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/chdir.c Sun Feb 17 14:32:22 2008 @@ -0,0 +1,175 @@ @@ -836,9 +845,9 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss + + return buf; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss/libsysbase/close.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss/libsysbase/close.c --- newlib-1.15.0/libgloss/libsysbase/close.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/close.c Sun Feb 17 16:34:48 2008 ++++ newlib-1.15.0-new/libgloss/libsysbase/close.c Sun Apr 13 18:13:37 2008 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -846,7 +855,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss +#include +#include + -+#include ++#include "handle_manager.h" + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -867,7 +876,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss + + if(fileDesc!=-1) { + -+ __handle *handle = (__handle *)fileDesc; ++ __handle *handle = __get_handle(fileDesc); + + dev = handle->device; + fd = handle->fileStruct; @@ -875,11 +884,11 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss + if(devoptab_list[dev]->close_r) + ret = devoptab_list[dev]->close_r(ptr,fd); + -+ free(fileDesc); ++ __release_handle(fileDesc); + } + return ret; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libgloss/libsysbase/config.h.in +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libgloss/libsysbase/config.h.in --- newlib-1.15.0/libgloss/libsysbase/config.h.in Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/config.h.in Sun Feb 17 14:32:22 2008 @@ -0,0 +1,25 @@ @@ -908,7 +917,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libg + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -NBaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libgloss/libsysbase/configure +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libgloss/libsysbase/configure --- newlib-1.15.0/libgloss/libsysbase/configure Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/configure Sun Feb 17 14:32:22 2008 @@ -0,0 +1,3553 @@ @@ -4465,7 +4474,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libglo + + + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/libgloss/libsysbase/configure.in +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/libgloss/libsysbase/configure.in --- newlib-1.15.0/libgloss/libsysbase/configure.in Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/configure.in Sun Feb 17 14:32:22 2008 @@ -0,0 +1,208 @@ @@ -4677,7 +4686,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/lib +AC_OUTPUT + + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/libsysbase/dir.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/libsysbase/dir.c --- newlib-1.15.0/libgloss/libsysbase/dir.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/dir.c Sun Feb 17 14:32:22 2008 @@ -0,0 +1,94 @@ @@ -4775,7 +4784,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/l + return ret; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libgloss/libsysbase/environ.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libgloss/libsysbase/environ.c --- newlib-1.15.0/libgloss/libsysbase/environ.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/environ.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,6 @@ @@ -4785,7 +4794,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libglo + +char *__env[1] = { 0 }; +char **environ = __env; -diff -NBaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libgloss/libsysbase/execve.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libgloss/libsysbase/execve.c --- newlib-1.15.0/libgloss/libsysbase/execve.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/execve.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,19 @@ @@ -4808,7 +4817,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libglos + return -1; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/flock.c newlib-1.15.0-new/libgloss/libsysbase/flock.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/flock.c newlib-1.15.0-new/libgloss/libsysbase/flock.c --- newlib-1.15.0/libgloss/libsysbase/flock.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/flock.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,21 @@ @@ -4833,7 +4842,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/flock.c newlib-1.15.0-new/libgloss +{ + __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock); +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/libsysbase/fork.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/libsysbase/fork.c --- newlib-1.15.0/libgloss/libsysbase/fork.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/fork.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,19 @@ @@ -4856,7 +4865,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/ +} + +stub_warning(_fork) -diff -NBaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss/libsysbase/fstat.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss/libsysbase/fstat.c --- newlib-1.15.0/libgloss/libsysbase/fstat.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/fstat.c Sun Feb 17 16:30:33 2008 @@ -0,0 +1,45 @@ @@ -4905,7 +4914,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss + } + return ret; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libgloss/libsysbase/getpid.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libgloss/libsysbase/getpid.c --- newlib-1.15.0/libgloss/libsysbase/getpid.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/getpid.c Sun Feb 17 16:30:43 2008 @@ -0,0 +1,21 @@ @@ -4930,7 +4939,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libglos + return -1; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libgloss/libsysbase/gettod.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libgloss/libsysbase/gettod.c --- newlib-1.15.0/libgloss/libsysbase/gettod.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/gettod.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,25 @@ @@ -4959,7 +4968,72 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libglos +} + +stub_warning(_gettimeofday) -diff -NBaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libgloss/libsysbase/iosupport.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.c newlib-1.15.0-new/libgloss/libsysbase/handle_manager.c +--- newlib-1.15.0/libgloss/libsysbase/handle_manager.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.15.0-new/libgloss/libsysbase/handle_manager.c Sun Apr 13 20:31:51 2008 +@@ -0,0 +1,47 @@ ++#include ++#include ++ ++#include "handle_manager.h" ++ ++#define MAX_HANDLES 1024 ++ ++static __handle* handles[MAX_HANDLES]; ++ ++ ++void __release_handle(int fd) { ++ ++ if ( fd < 3 || fd >= MAX_HANDLES + 3 ) return; ++ ++ fd -= 3; ++ __handle* handle = handles[fd]; ++ if ( NULL != handle ) { ++ free(handle); ++ handles[fd] = NULL; ++ } ++ ++} ++ ++int __alloc_handle(int size) { ++ ++ int i; ++ ++ for ( i = 0; i < MAX_HANDLES; i++ ) { ++ if ( handles[i] == NULL ) break; ++ } ++ ++ if ( i == MAX_HANDLES ) return -1; ++ ++ handles[i] = malloc(size); ++ ++ if ( NULL == handles[i] ) return -1; ++ ++ return i+3; ++} ++ ++__handle *__get_handle(int fd) { ++ ++ if ( fd < 3 || fd > MAX_HANDLES + 3 ) return NULL; ++ ++ return handles[fd-3]; ++ ++} +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.h newlib-1.15.0-new/libgloss/libsysbase/handle_manager.h +--- newlib-1.15.0/libgloss/libsysbase/handle_manager.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.15.0-new/libgloss/libsysbase/handle_manager.h Sun Apr 13 18:25:26 2008 +@@ -0,0 +1,10 @@ ++#ifndef __HANDLE_MANAGER_H__ ++#define __HANDLE_MANAGER_H__ ++ ++#include ++ ++void __release_handle(int fd); ++int __alloc_handle(int size); ++__handle *__get_handle(int fd); ++ ++#endif +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libgloss/libsysbase/iosupport.c --- newlib-1.15.0/libgloss/libsysbase/iosupport.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/iosupport.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,106 @@ @@ -5069,7 +5143,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libg + } + return devnum; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libgloss/libsysbase/isatty.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libgloss/libsysbase/isatty.c --- newlib-1.15.0/libgloss/libsysbase/isatty.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/isatty.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,10 @@ @@ -5083,7 +5157,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libglos +//--------------------------------------------------------------------------------- + return 0; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/libsysbase/kill.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/libsysbase/kill.c --- newlib-1.15.0/libgloss/libsysbase/kill.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/kill.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,23 @@ @@ -5110,7 +5184,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/ + ptr->_errno = ENOSYS; + return -1; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/libsysbase/link.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/libsysbase/link.c --- newlib-1.15.0/libgloss/libsysbase/link.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/link.c Sun Feb 17 16:31:27 2008 @@ -0,0 +1,37 @@ @@ -5151,10 +5225,10 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss/libsysbase/lseek.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss/libsysbase/lseek.c --- newlib-1.15.0/libgloss/libsysbase/lseek.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/lseek.c Sun Feb 17 16:32:05 2008 -@@ -0,0 +1,46 @@ ++++ newlib-1.15.0-new/libgloss/libsysbase/lseek.c Sun Apr 13 18:32:18 2008 +@@ -0,0 +1,53 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> @@ -5190,9 +5264,16 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss + + if(fileDesc!=-1) { + -+ handle = (__handle *)fileDesc; -+ dev = handle->device; -+ fd = (int)handle->fileStruct; ++ if ( fileDesc < 3) { ++ dev = fileDesc; ++ } else { ++ handle = __get_handle(fileDesc); ++ ++ if ( NULL == handle ) return ret; ++ ++ dev = handle->device; ++ fd = (int)handle->fileStruct; ++ } + + if(devoptab_list[dev]->seek_r) + ret = devoptab_list[dev]->seek_r( r, fd, pos, dir); @@ -5201,13 +5282,13 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss + return ret; + +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/malloc_vars.c newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/malloc_vars.c newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c --- newlib-1.15.0/libgloss/libsysbase/malloc_vars.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; -diff -NBaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss/libsysbase/mkdir.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss/libsysbase/mkdir.c --- newlib-1.15.0/libgloss/libsysbase/mkdir.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/mkdir.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,18 @@ @@ -5229,20 +5310,19 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss + + return ret; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/libsysbase/open.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/libsysbase/open.c --- newlib-1.15.0/libgloss/libsysbase/open.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/open.c Sun Feb 17 16:36:44 2008 -@@ -0,0 +1,59 @@ ++++ newlib-1.15.0-new/libgloss/libsysbase/open.c Sun Apr 13 19:58:20 2008 +@@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#include +#include -+#include +#include + -+#include ++#include "handle_manager.h" + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -5262,47 +5342,46 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/ + struct _reent *r = _REENT; +#endif + __handle *handle; -+ int dev,fd; ++ int dev, fd, ret; + + dev = FindDevice(file); + + fd = -1; -+ handle = (__handle *)-1; + if(dev!=-1 && devoptab_list[dev]->open_r) { + -+ handle = (__handle *)malloc( sizeof(__handle) + devoptab_list[dev]->structSize ); ++ fd = __alloc_handle(sizeof(__handle) + devoptab_list[dev]->structSize ); + -+ if ( NULL != handle ) { ++ if ( -1 != fd ) { ++ handle = __get_handle(fd); + handle->device = dev; + handle->fileStruct = ((void *)handle) + sizeof(__handle); + -+ fd = devoptab_list[dev]->open_r(r, handle->fileStruct, file, flags, mode); ++ ret = devoptab_list[dev]->open_r(r, handle->fileStruct, file, flags, mode); + -+ if ( fd == -1 ) { -+ free(handle); -+ handle = (__handle *)-1; ++ if ( ret == -1 ) { ++ __release_handle(fd); ++ fd = -1; + } + } else { + r->_errno = ENOSR; -+ handle = (__handle *)-1; + } + } else { + r->_errno = ENOSYS; + } + -+ return (int)handle; ++ return fd; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/libsysbase/read.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/libsysbase/read.c --- newlib-1.15.0/libgloss/libsysbase/read.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/read.c Sun Feb 17 16:32:03 2008 -@@ -0,0 +1,45 @@ ++++ newlib-1.15.0-new/libgloss/libsysbase/read.c Sun Apr 13 18:29:27 2008 +@@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#include + -+#include ++#include "handle_manager.h" + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -5331,7 +5410,10 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/ + if ( fileDesc < 3) { + dev = fileDesc; + } else { -+ handle = (__handle *)fileDesc; ++ handle = __get_handle(fileDesc); ++ ++ if ( NULL == handle ) return ret; ++ + dev = handle->device; + fd = (int)handle->fileStruct; + } @@ -5341,7 +5423,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libgloss/libsysbase/rename.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libgloss/libsysbase/rename.c --- newlib-1.15.0/libgloss/libsysbase/rename.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/rename.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,25 @@ @@ -5370,7 +5452,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libglos + + return ret; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/libsysbase/sbrk.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/libsysbase/sbrk.c --- newlib-1.15.0/libgloss/libsysbase/sbrk.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/sbrk.c Sun Feb 17 16:32:21 2008 @@ -0,0 +1,26 @@ @@ -5400,7 +5482,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/ + } + +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/libsysbase/stat.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/libsysbase/stat.c --- newlib-1.15.0/libgloss/libsysbase/stat.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/stat.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,39 @@ @@ -5443,7 +5525,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libgloss/libsysbase/statvfs.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libgloss/libsysbase/statvfs.c --- newlib-1.15.0/libgloss/libsysbase/statvfs.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/statvfs.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,23 @@ @@ -5470,7 +5552,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libglo + + return ret; +} -diff -NBaur newlib-1.15.0/libgloss/libsysbase/syscall_support.c newlib-1.15.0-new/libgloss/libsysbase/syscall_support.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/syscall_support.c newlib-1.15.0-new/libgloss/libsysbase/syscall_support.c --- newlib-1.15.0/libgloss/libsysbase/syscall_support.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/syscall_support.c Tue Feb 19 12:49:53 2008 @@ -0,0 +1,65 @@ @@ -5539,7 +5621,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/syscall_support.c newlib-1.15.0-ne + } +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libgloss/libsysbase/unlink.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libgloss/libsysbase/unlink.c --- newlib-1.15.0/libgloss/libsysbase/unlink.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/unlink.c Sun Feb 17 16:33:06 2008 @@ -0,0 +1,33 @@ @@ -5576,7 +5658,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libglos + return ret; +} + -diff -NBaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/libsysbase/wait.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/libsysbase/wait.c --- newlib-1.15.0/libgloss/libsysbase/wait.c Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/wait.c Sun Feb 17 14:32:23 2008 @@ -0,0 +1,19 @@ @@ -5599,7 +5681,7 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/ +} + +stub_warning(_wait) -diff -NBaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libgloss/libsysbase/warning.h +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libgloss/libsysbase/warning.h --- newlib-1.15.0/libgloss/libsysbase/warning.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/libgloss/libsysbase/warning.h Sun Feb 17 14:32:23 2008 @@ -0,0 +1,43 @@ @@ -5646,17 +5728,17 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libglo + "warning: " #name " is not implemented and will always fail") + +#endif /* __WARNING_H__ */ -diff -NBaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss/libsysbase/write.c +diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss/libsysbase/write.c --- newlib-1.15.0/libgloss/libsysbase/write.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/write.c Sun Feb 17 16:33:19 2008 -@@ -0,0 +1,45 @@ ++++ newlib-1.15.0-new/libgloss/libsysbase/write.c Sun Apr 13 20:02:04 2008 +@@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> +#include +#include + -+#include ++#include "handle_manager.h" + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -5686,7 +5768,10 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss + if ( fileDesc < 3) { + dev = fileDesc; + } else { -+ handle = (__handle *)fileDesc; ++ handle = __get_handle(fileDesc); ++ ++ if ( NULL == handle ) return ret; ++ + dev = handle->device; + fd = (int)handle->fileStruct; + } @@ -5695,7 +5780,67 @@ diff -NBaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss + } + return ret; +} -diff -NBaur newlib-1.15.0/newlib/configure.host newlib-1.15.0-new/newlib/configure.host +diff -Nbaur newlib-1.15.0/libgloss/rs6000/Makefile.in newlib-1.15.0-new/libgloss/rs6000/Makefile.in +--- newlib-1.15.0/libgloss/rs6000/Makefile.in Tue Aug 30 17:11:27 2005 ++++ newlib-1.15.0-new/libgloss/rs6000/Makefile.in Mon Apr 14 00:25:45 2008 +@@ -121,6 +121,9 @@ + MBX_TEST = mbx-test + MBX_INSTALL = install-mbx + ++OGC_CRTMAIN = crtmain.o ++OGC_INSTALL = install-ogc ++ + # Host specific makefile fragment comes in here. + @host_makefile_frag@ + +@@ -135,7 +138,7 @@ + ${LINUX_CRT0} ${LINUX_BSP} \ + ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP} \ + ${ADS_CRT0} ${ADS_BSP} \ +- ${MBX_CRT0} ${MBX_BSP} ++ ${MBX_CRT0} ${MBX_BSP} ${OGC_CRTMAIN} + + # + # here's where we build the board support packages for each target +@@ -269,6 +272,8 @@ + + crt0.o: crt0.S + ++crtmain.o: crtmain.S ++ + simulator.o: simulator.S + sim-getrusage.o: sim-getrusage.S + sim-crt0.o: sim-crt0.S +@@ -314,7 +319,7 @@ + rm -f Makefile config.status *~ + + .PHONY: install info install-info clean-info +-install: ${SIM_INSTALL} ${MVME_INSTALL} ${SOLARIS_INSTALL} ${LINUX_INSTALL} ${YELLOWKNIFE_INSTALL} ${ADS_INSTALL} ${MBX_INSTALL} ++install: ${SIM_INSTALL} ${MVME_INSTALL} ${SOLARIS_INSTALL} ${LINUX_INSTALL} ${YELLOWKNIFE_INSTALL} ${ADS_INSTALL} ${MBX_INSTALL} ${OGC_INSTALL} + + install-sim: + set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done +@@ -339,6 +344,9 @@ + install-mbx: + set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done ++ ++install-ogc: ++ set -e; for x in ${OGC_CRTMAIN}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done + + doc: + info: +diff -Nbaur newlib-1.15.0/libgloss/rs6000/crtmain.S newlib-1.15.0-new/libgloss/rs6000/crtmain.S +--- newlib-1.15.0/libgloss/rs6000/crtmain.S Thu Jan 1 00:00:00 1970 ++++ newlib-1.15.0-new/libgloss/rs6000/crtmain.S Mon Apr 14 00:41:46 2008 +@@ -0,0 +1,6 @@ ++.globl __crtmain ++__crtmain: ++ bl __init ++ bl SYS_PreMain ++ bl main ++ b exit +diff -Nbaur newlib-1.15.0/newlib/configure.host newlib-1.15.0-new/newlib/configure.host --- newlib-1.15.0/newlib/configure.host Mon Dec 18 21:49:14 2006 +++ newlib-1.15.0-new/newlib/configure.host Sun Feb 17 09:13:18 2008 @@ -651,6 +651,11 @@ @@ -5710,7 +5855,7 @@ diff -NBaur newlib-1.15.0/newlib/configure.host newlib-1.15.0-new/newlib/configu powerpc*-*-eabi* | \ powerpc*-*-elf* | \ powerpc*-*-linux* | \ -diff -NBaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/libc/include/reent.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/libc/include/reent.h --- newlib-1.15.0/newlib/libc/include/reent.h Wed Aug 27 17:24:57 2003 +++ newlib-1.15.0-new/newlib/libc/include/reent.h Fri Apr 13 02:55:00 2007 @@ -77,7 +77,7 @@ @@ -5722,7 +5867,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/l /* This one is not guaranteed to be available on all targets. */ extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *tp, struct timezone *tzp)); -diff -NBaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/libc/include/stdint.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/libc/include/stdint.h --- newlib-1.15.0/newlib/libc/include/stdint.h Wed Aug 16 22:39:43 2006 +++ newlib-1.15.0-new/newlib/libc/include/stdint.h Tue Jan 8 04:11:30 2008 @@ -79,13 +79,13 @@ @@ -5744,7 +5889,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/ #define __int32_t_defined 1 #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; -diff -NBaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/libc/include/stdio.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/libc/include/stdio.h --- newlib-1.15.0/newlib/libc/include/stdio.h Tue Sep 26 22:22:19 2006 +++ newlib-1.15.0-new/newlib/libc/include/stdio.h Fri Feb 16 09:13:45 2007 @@ -179,6 +179,7 @@ @@ -5763,7 +5908,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/l int _EXFUN(vscanf, (const char *, __VALIST)); int _EXFUN(vsiscanf, (const char *, const char *, __VALIST)); int _EXFUN(vsscanf, (const char *, const char *, __VALIST)); -diff -NBaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib/libc/include/sys/dir.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib/libc/include/sys/dir.h --- newlib-1.15.0/newlib/libc/include/sys/dir.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/newlib/libc/include/sys/dir.h Fri Feb 16 09:13:45 2007 @@ -0,0 +1,32 @@ @@ -5799,7 +5944,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib +#endif + +#endif // _dir_h_ -diff -NBaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h --- newlib-1.15.0/newlib/libc/include/sys/iosupport.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h Tue Feb 19 12:51:19 2008 @@ -0,0 +1,78 @@ @@ -5881,37 +6026,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/ +//--------------------------------------------------------------------------------- +#endif // __iosupp_h__ +//--------------------------------------------------------------------------------- -diff -NBaur newlib-1.15.0/newlib/libc/include/sys/reent.h newlib-1.15.0-new/newlib/libc/include/sys/reent.h ---- newlib-1.15.0/newlib/libc/include/sys/reent.h Tue Sep 26 22:22:19 2006 -+++ newlib-1.15.0-new/newlib/libc/include/sys/reent.h Sat Feb 16 02:55:18 2008 -@@ -153,7 +153,7 @@ - int _r; /* read space left for getc() */ - int _w; /* write space left for putc() */ - short _flags; /* flags, below; this FILE is free if 0 */ -- short _file; /* fileno, if Unix descriptor, else -1 */ -+ int _file; /* fileno, if Unix descriptor, else -1 */ - struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ - int _lbfsize; /* 0 or -_bf._size, for inline putc */ - -@@ -170,7 +170,7 @@ - int _r; /* read space left for getc() */ - int _w; /* write space left for putc() */ - short _flags; /* flags, below; this FILE is free if 0 */ -- short _file; /* fileno, if Unix descriptor, else -1 */ -+ int _file; /* fileno, if Unix descriptor, else -1 */ - struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ - int _lbfsize; /* 0 or -_bf._size, for inline putc */ - -@@ -218,7 +218,7 @@ - int _r; /* read space left for getc() */ - int _w; /* write space left for putc() */ - short _flags; /* flags, below; this FILE is free if 0 */ -- short _file; /* fileno, if Unix descriptor, else -1 */ -+ int _file; /* fileno, if Unix descriptor, else -1 */ - struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ - int _lbfsize; /* 0 or -_bf._size, for inline putc */ - -diff -NBaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h --- newlib-1.15.0/newlib/libc/include/sys/statvfs.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h Fri Oct 26 03:44:59 2007 @@ -0,0 +1,35 @@ @@ -5951,7 +6066,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/ne + +#endif // _SYS_STATVFS_H \ No newline at end of file -diff -NBaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newlib/libc/include/sys/types.h +diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newlib/libc/include/sys/types.h --- newlib-1.15.0/newlib/libc/include/sys/types.h Wed Sep 13 23:09:27 2006 +++ newlib-1.15.0-new/newlib/libc/include/sys/types.h Mon Aug 27 11:10:04 2007 @@ -130,7 +130,7 @@ @@ -5982,7 +6097,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newl #include -diff -NBaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/libc/locale/locale.c +diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/libc/locale/locale.c --- newlib-1.15.0/newlib/libc/locale/locale.c Fri Apr 23 22:44:21 2004 +++ newlib-1.15.0-new/newlib/libc/locale/locale.c Sat Nov 3 18:13:01 2007 @@ -95,7 +95,7 @@ @@ -6027,7 +6142,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/l } if (category == LC_CTYPE) -diff -NBaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/lock.h +diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/lock.h --- newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/lock.h Fri Feb 15 00:50:23 2008 @@ -0,0 +1,53 @@ @@ -6084,7 +6199,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.15.0-n +extern int __libc_lock_release(int*); + +#endif /* __SYS_LOCK_H__ */ -diff -NBaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/stdio.h +diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/stdio.h --- newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h Thu Jan 1 00:00:00 1970 +++ newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/stdio.h Fri Feb 15 00:50:58 2008 @@ -0,0 +1,25 @@ @@ -6113,7 +6228,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.15.0- + +#endif /* _NEWLIB_STDIO_H */ + -diff -NBaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/misc/init.c +diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/misc/init.c --- newlib-1.15.0/newlib/libc/misc/init.c Fri Jan 7 18:04:39 2005 +++ newlib-1.15.0-new/newlib/libc/misc/init.c Mon Jul 30 19:49:28 2007 @@ -57,4 +57,8 @@ @@ -6125,7 +6240,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/ +#error why am I not defined + #endif -diff -NBaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c +diff -Nbaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c --- newlib-1.15.0/newlib/libc/stdio/vfprintf.c Tue Nov 14 21:29:26 2006 +++ newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c Tue Oct 16 07:13:40 2007 @@ -1000,10 +1000,17 @@ @@ -6148,7 +6263,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/ else if (ch == 'S' || (flags & LONGINT)) { mbstate_t ps; _CONST wchar_t *wcp; -diff -NBaur newlib-1.15.0/newlib/libc/stdlib/mlock.c newlib-1.15.0-new/newlib/libc/stdlib/mlock.c +diff -Nbaur newlib-1.15.0/newlib/libc/stdlib/mlock.c newlib-1.15.0-new/newlib/libc/stdlib/mlock.c --- newlib-1.15.0/newlib/libc/stdlib/mlock.c Fri Oct 28 22:21:07 2005 +++ newlib-1.15.0-new/newlib/libc/stdlib/mlock.c Sat Feb 16 01:12:43 2008 @@ -39,6 +39,7 @@ @@ -6166,7 +6281,18 @@ diff -NBaur newlib-1.15.0/newlib/libc/stdlib/mlock.c newlib-1.15.0-new/newlib/li - +*/ #endif -diff -NBaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newlib/libc/syscalls/syslink.c +diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am +--- newlib-1.15.0/newlib/libc/syscalls/Makefile.am Mon May 1 23:01:07 2006 ++++ newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am Fri Feb 16 09:13:45 2007 +@@ -21,7 +21,6 @@ + sysunlink.c \ + syswrite.c + +- + ## Weed out EL/IX level 3 interfaces if necessary + if ELIX_LEVEL_1 + ELIX_SOURCES = +diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newlib/libc/syscalls/syslink.c --- newlib-1.15.0/newlib/libc/syscalls/syslink.c Tue Jun 3 20:48:08 2003 +++ newlib-1.15.0-new/newlib/libc/syscalls/syslink.c Fri Feb 16 09:13:45 2007 @@ -4,8 +4,8 @@ @@ -6180,7 +6306,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newli { #ifdef REENTRANT_SYSCALLS_PROVIDED return _link_r (_REENT, old, new); -diff -NBaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c +diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c --- newlib-1.15.0/newlib/libc/syscalls/sysunlink.c Tue Jun 3 20:48:08 2003 +++ newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c Fri Feb 16 09:13:45 2007 @@ -4,7 +4,7 @@ @@ -6192,7 +6318,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/new { #ifdef REENTRANT_SYSCALLS_PROVIDED return _unlink_r (_REENT, file); -diff -NBaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/libc/time/asctime_r.c +diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/libc/time/asctime_r.c --- newlib-1.15.0/newlib/libc/time/asctime_r.c Wed May 10 18:58:29 2000 +++ newlib-1.15.0-new/newlib/libc/time/asctime_r.c Sun Feb 10 06:48:03 2008 @@ -18,7 +18,7 @@ @@ -6204,7 +6330,7 @@ diff -NBaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/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.15.0/newlib/libc/time/strftime.c newlib-1.15.0-new/newlib/libc/time/strftime.c +diff -Nbaur newlib-1.15.0/newlib/libc/time/strftime.c newlib-1.15.0-new/newlib/libc/time/strftime.c --- newlib-1.15.0/newlib/libc/time/strftime.c Fri Feb 25 22:31:21 2005 +++ newlib-1.15.0-new/newlib/libc/time/strftime.c Sun Feb 10 06:50:43 2008 @@ -424,7 +424,7 @@ diff --git a/dkppc/scripts/build-gcc.sh b/dkppc/scripts/build-gcc.sh index 6a7a59b..cad2ed2 100644 --- a/dkppc/scripts/build-gcc.sh +++ b/dkppc/scripts/build-gcc.sh @@ -84,10 +84,12 @@ then --without-headers\ --disable-nls --disable-shared --enable-threads --disable-multilib \ --disable-win32-registry\ - --disable-libstdcxx-pch \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libstdcxx-pch \ --target=$target \ --with-newlib \ --prefix=$prefix\ + --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 15" \ 2>&1 | tee gcc_configure.log touch configured-gcc fi