mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-06-21 12:03:39 -05:00
*** empty log message ***
This commit is contained in:
parent
3ab2dc41e9
commit
ac2bdc1d09
|
|
@ -10,8 +10,8 @@ BINUTILS_VER=2.16.1
|
|||
GCC_VER=4.0.2
|
||||
NEWLIB_VER=1.13.0
|
||||
LIBOGC_VER=20050812
|
||||
LIBGBA_VER=20050914
|
||||
LIBNDS_VER=20050921
|
||||
LIBGBA_VER=20051018
|
||||
LIBNDS_VER=20051018
|
||||
|
||||
BINUTILS="binutils-$BINUTILS_VER.tar.bz2"
|
||||
GCC_CORE="gcc-core-$GCC_VER.tar.bz2"
|
||||
|
|
@ -272,42 +272,42 @@ scriptdir=$(pwd)/$basedir/scripts
|
|||
BUILDSCRIPTDIR=$(pwd)
|
||||
|
||||
echo "Extracting $BINUTILS"
|
||||
#tar -xjvf $SRCDIR/$BINUTILS || { echo "Error extracting "$BINUTILS; exit; }
|
||||
tar -xjvf $SRCDIR/$BINUTILS || { echo "Error extracting "$BINUTILS; exit; }
|
||||
|
||||
echo "Extracting $GCC_CORE"
|
||||
#tar -xjvf $SRCDIR/$GCC_CORE || { echo "Error extracting "$GCC_CORE; exit; }
|
||||
tar -xjvf $SRCDIR/$GCC_CORE || { echo "Error extracting "$GCC_CORE; exit; }
|
||||
|
||||
echo "Extracting $GCC_GPP"
|
||||
#tar -xjvf $SRCDIR/$GCC_GPP || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
tar -xjvf $SRCDIR/$GCC_GPP || { echo "Error extracting "$GCC_GPP; exit; }
|
||||
|
||||
echo "Extracting $NEWLIB"
|
||||
#tar -xzvf $SRCDIR/$NEWLIB || { echo "Error extracting "$NEWLIB; exit; }
|
||||
tar -xzvf $SRCDIR/$NEWLIB || { echo "Error extracting "$NEWLIB; exit; }
|
||||
|
||||
if [ $VERSION -eq 2 ]
|
||||
then
|
||||
echo "Extracting $LIBOGC"
|
||||
# mkdir -p $LIBOGC_SRCDIR
|
||||
# bzip2 -cd $SRCDIR/$LIBOGC | tar -xv -C $LIBOGC_SRCDIR || { echo "Error extracting "$LIBOGC; exit; }
|
||||
mkdir -p $LIBOGC_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBOGC | tar -xv -C $LIBOGC_SRCDIR || { echo "Error extracting "$LIBOGC; exit; }
|
||||
fi
|
||||
|
||||
|
||||
if [ $VERSION -eq 1 ]
|
||||
then
|
||||
echo "Extracting $LIBNDS"
|
||||
# mkdir -p $LIBNDS_SRCDIR
|
||||
# bzip2 -cd $SRCDIR/$LIBNDS | tar -xv -C $LIBNDS_SRCDIR || { echo "Error extracting "$LIBNDS; exit; }
|
||||
mkdir -p $LIBNDS_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBNDS | tar -xv -C $LIBNDS_SRCDIR || { echo "Error extracting "$LIBNDS; exit; }
|
||||
echo "Extracting $LIBGBA"
|
||||
# mkdir -p $LIBGBA_SRCDIR
|
||||
# bzip2 -cd $SRCDIR/$LIBGBA | tar -xv -C $LIBGBA_SRCDIR || { echo "Error extracting "$LIBGBA; exit; }
|
||||
mkdir -p $LIBGBA_SRCDIR
|
||||
bzip2 -cd $SRCDIR/$LIBGBA | tar -xv -C $LIBGBA_SRCDIR || { echo "Error extracting "$LIBGBA; exit; }
|
||||
fi
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# apply patches
|
||||
#---------------------------------------------------------------------------------
|
||||
#patch -p1 -d $BINUTILS_SRCDIR -i $patchdir/binutils-$BINUTILS_VER.patch || { echo "Error patching binutils"; exit; }
|
||||
#patch -p1 -d $GCC_SRCDIR -i $patchdir/gcc-$GCC_VER.patch || { echo "Error patching gcc"; exit; }
|
||||
#patch -p1 -d $NEWLIB_SRCDIR -i $patchdir/newlib-$NEWLIB_VER.patch || { echo "Error patching newlib"; exit; }
|
||||
patch -p1 -d $BINUTILS_SRCDIR -i $patchdir/binutils-$BINUTILS_VER.patch || { echo "Error patching binutils"; exit; }
|
||||
patch -p1 -d $GCC_SRCDIR -i $patchdir/gcc-$GCC_VER.patch || { echo "Error patching gcc"; exit; }
|
||||
patch -p1 -d $NEWLIB_SRCDIR -i $patchdir/newlib-$NEWLIB_VER.patch || { echo "Error patching newlib"; exit; }
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
%rename link old_link
|
||||
%rename link_gcc_c_sequence old_gcc_c_sequence
|
||||
|
||||
*link_gcc_c_sequence:
|
||||
%(old_gcc_c_sequence) --start-group -lsysbase -lc --end-group
|
||||
|
||||
*link:
|
||||
%(old_link) -T ds_cart.ld%s
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
diff -Nbaur --exclude=*.info* binutils-2.16.1/bfd/doc/chew.c binutils-2.16.1-new/bfd/doc/chew.c
|
||||
diff -Nbaur --exclude=*.info* binutils-2.16.1/bfd/doc/chew.c binutils-2.16.1-arm/bfd/doc/chew.c
|
||||
--- binutils-2.16.1/bfd/doc/chew.c Thu Mar 3 11:41:02 2005
|
||||
+++ binutils-2.16.1-new/bfd/doc/chew.c Mon Jun 20 00:14:07 2005
|
||||
+++ binutils-2.16.1-arm/bfd/doc/chew.c Mon Sep 19 03:38:45 2005
|
||||
@@ -91,6 +91,12 @@
|
||||
#define DEF_SIZE 5000
|
||||
#define STACK 50
|
||||
|
|
@ -14,3 +14,49 @@ diff -Nbaur --exclude=*.info* binutils-2.16.1/bfd/doc/chew.c binutils-2.16.1-new
|
|||
int internal_wanted;
|
||||
int internal_mode;
|
||||
|
||||
diff -Nbaur --exclude=*.info* binutils-2.16.1/configure binutils-2.16.1-arm/configure
|
||||
--- binutils-2.16.1/configure Mon Feb 28 14:06:59 2005
|
||||
+++ binutils-2.16.1-arm/configure Wed Sep 21 12:33:11 2005
|
||||
@@ -1034,7 +1034,7 @@
|
||||
|
||||
# Some tools are only suitable for building in a "native" situation.
|
||||
# Remove these if host!=target.
|
||||
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
|
||||
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
|
||||
|
||||
# Similarly, some are only suitable for cross toolchains.
|
||||
# Remove these if host=target.
|
||||
diff -Nbaur --exclude=*.info* binutils-2.16.1/configure.in binutils-2.16.1-arm/configure.in
|
||||
--- binutils-2.16.1/configure.in Sun Jun 12 20:33:06 2005
|
||||
+++ binutils-2.16.1-arm/configure.in Wed Sep 21 12:34:18 2005
|
||||
@@ -242,7 +242,7 @@
|
||||
|
||||
# Some tools are only suitable for building in a "native" situation.
|
||||
# Remove these if host!=target.
|
||||
-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
|
||||
+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
|
||||
|
||||
# Similarly, some are only suitable for cross toolchains.
|
||||
# Remove these if host=target.
|
||||
diff -Nbaur --exclude=*.info* binutils-2.16.1/gas/config/tc-arm.c binutils-2.16.1-arm/gas/config/tc-arm.c
|
||||
--- binutils-2.16.1/gas/config/tc-arm.c Tue May 17 20:51:33 2005
|
||||
+++ binutils-2.16.1-arm/gas/config/tc-arm.c Fri Sep 23 03:58:13 2005
|
||||
@@ -12697,13 +12697,18 @@
|
||||
{"arm926ej-s", ARM_ARCH_V5TEJ, FPU_ARCH_VFP_V2},
|
||||
{"arm946e-r0", ARM_ARCH_V5TExP, FPU_ARCH_VFP_V2},
|
||||
{"arm946e", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
+ {"arm946e-s", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
{"arm966e-r0", ARM_ARCH_V5TExP, FPU_ARCH_VFP_V2},
|
||||
{"arm966e", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
+ {"arm966e-s", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
+ {"arm968e-s", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
{"arm10t", ARM_ARCH_V5T, FPU_ARCH_VFP_V1},
|
||||
+ {"arm10tdmi", ARM_ARCH_V5T, FPU_ARCH_VFP_V1},
|
||||
{"arm10e", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
{"arm1020", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
{"arm1020t", ARM_ARCH_V5T, FPU_ARCH_VFP_V1},
|
||||
{"arm1020e", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
+ {"arm1022e", ARM_ARCH_V5TE, FPU_ARCH_VFP_V2},
|
||||
{"arm1026ejs", ARM_ARCH_V5TEJ, FPU_ARCH_VFP_V2},
|
||||
{"arm1026ej-s", ARM_ARCH_V5TEJ, FPU_ARCH_VFP_V2},
|
||||
{"arm1136js", ARM_ARCH_V6, FPU_NONE},
|
||||
|
|
|
|||
|
|
@ -2140,8 +2140,8 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/gettod.c newlib-1.13.0-new/libglos
|
|||
+stub_warning(_gettimeofday)
|
||||
diff -Nbaur newlib-1.13.0/libgloss/libsysbase/iosupport.c newlib-1.13.0-new/libgloss/libsysbase/iosupport.c
|
||||
--- newlib-1.13.0/libgloss/libsysbase/iosupport.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/libgloss/libsysbase/iosupport.c Tue Aug 30 22:31:49 2005
|
||||
@@ -0,0 +1,50 @@
|
||||
+++ newlib-1.13.0-new/libgloss/libsysbase/iosupport.c Fri Sep 16 09:37:03 2005
|
||||
@@ -0,0 +1,91 @@
|
||||
+#include <stdlib.h>
|
||||
+#include <sys/iosupport.h>
|
||||
+
|
||||
|
|
@ -2175,7 +2175,7 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/iosupport.c newlib-1.13.0-new/libg
|
|||
+//---------------------------------------------------------------------------------
|
||||
+const devoptab_t dotab_stdnull = {
|
||||
+//---------------------------------------------------------------------------------
|
||||
+ "stdin",
|
||||
+ "stdnull",
|
||||
+ stdnull_open,
|
||||
+ stdnull_close,
|
||||
+ stdnull_write,
|
||||
|
|
@ -2192,6 +2192,47 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/iosupport.c newlib-1.13.0-new/libg
|
|||
+ &dotab_stdnull, &dotab_stdnull, &dotab_stdnull, &dotab_stdnull,
|
||||
+ &dotab_stdnull, &dotab_stdnull, &dotab_stdnull, &dotab_stdnull
|
||||
+};
|
||||
+
|
||||
+
|
||||
+//---------------------------------------------------------------------------------
|
||||
+int FindDevice(char* name) {
|
||||
+//---------------------------------------------------------------------------------
|
||||
+ int i, namelen, dev = -1;
|
||||
+
|
||||
+ while(i<STD_MAX) {
|
||||
+ if(devoptab_list[i]) {
|
||||
+ namelen = strlen(devoptab_list[i]->name);
|
||||
+ if(strncmp(devoptab_list[i]->name,file,namelen)==0 && file[namelen] == ':' ) {
|
||||
+ dev = i;
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ i++;
|
||||
+ }
|
||||
+
|
||||
+ return dev;
|
||||
+}
|
||||
+
|
||||
+//---------------------------------------------------------------------------------
|
||||
+int AddDevice( const devoptab_t* device) {
|
||||
+//---------------------------------------------------------------------------------
|
||||
+
|
||||
+ int devnum;
|
||||
+
|
||||
+ for ( devnum = 3;devnum <STD_MAX; devnum++ ) {
|
||||
+
|
||||
+ if ( strcmp(devoptab_list[devnum]->name, device->name) ||
|
||||
+ strcmp(devoptab_list[devnum]->name, "stdnull") )
|
||||
+ break;
|
||||
+ }
|
||||
+
|
||||
+ if ( devnum == STD_MAX ) {
|
||||
+ devnum = -1;
|
||||
+ } else {
|
||||
+ devoptab[devnum] = device;
|
||||
+ }
|
||||
+ return devnum;
|
||||
+}
|
||||
diff -Nbaur newlib-1.13.0/libgloss/libsysbase/isatty.c newlib-1.13.0-new/libgloss/libsysbase/isatty.c
|
||||
--- newlib-1.13.0/libgloss/libsysbase/isatty.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/libgloss/libsysbase/isatty.c Tue Aug 30 01:02:43 2005
|
||||
|
|
@ -2295,8 +2336,8 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/malloc_vars.c newlib-1.13.0-new/li
|
|||
+char *fake_heap_start = (char*)0;
|
||||
diff -Nbaur newlib-1.13.0/libgloss/libsysbase/open.c newlib-1.13.0-new/libgloss/libsysbase/open.c
|
||||
--- newlib-1.13.0/libgloss/libsysbase/open.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/libgloss/libsysbase/open.c Fri Sep 9 17:54:44 2005
|
||||
@@ -0,0 +1,57 @@
|
||||
+++ newlib-1.13.0-new/libgloss/libsysbase/open.c Fri Sep 16 03:21:31 2005
|
||||
@@ -0,0 +1,42 @@
|
||||
+#include <_ansi.h>
|
||||
+#include <_syslist.h>
|
||||
+#include <string.h>
|
||||
|
|
@ -2325,30 +2366,15 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/open.c newlib-1.13.0-new/libgloss/
|
|||
+ struct _reent *r = _REENT;
|
||||
+#endif
|
||||
+ int handle;
|
||||
+ int i,dev,fd,namelen;
|
||||
+ char lfile[256];
|
||||
+ int dev,fd;
|
||||
+
|
||||
+ iprintf("%s\n",file);
|
||||
+
|
||||
+ i = 0;
|
||||
+ dev = -1;
|
||||
+ while(i<STD_MAX) {
|
||||
+ if(devoptab_list[i]) {
|
||||
+ namelen = strlen(devoptab_list[i]->name);
|
||||
+ if(strncmp(devoptab_list[i]->name,file,namelen)==0 && file[namelen] == ':' ) {
|
||||
+ dev = i;
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+ i++;
|
||||
+ }
|
||||
+
|
||||
+ if(i>=STD_MAX) return -1;
|
||||
+ dev = FindDevice(file);
|
||||
+
|
||||
+ fd = -1;
|
||||
+ handle = -1;
|
||||
+ if(dev!=-1 && devoptab_list[dev]->open_r) {
|
||||
+ fd = devoptab_list[dev]->open_r(r,lfile,flags,mode);
|
||||
+ fd = devoptab_list[dev]->open_r(r,file,flags,mode);
|
||||
+ if(fd!=-1) handle = _SHIFTL(dev,12,4)|(fd&0x0fff);
|
||||
+ }
|
||||
+
|
||||
|
|
@ -2642,9 +2668,295 @@ diff -Nbaur newlib-1.13.0/libgloss/libsysbase/write.c newlib-1.13.0-new/libgloss
|
|||
+ }
|
||||
+ return ret;
|
||||
+}
|
||||
diff -Nbaur newlib-1.13.0/newlib/libc/include/stdint.h newlib-1.13.0-new/newlib/libc/include/stdint.h
|
||||
--- newlib-1.13.0/newlib/libc/include/stdint.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/include/stdint.h Mon Sep 19 23:33:16 2005
|
||||
@@ -0,0 +1,282 @@
|
||||
+/*
|
||||
+ * Copyright (c) 2004, 2005 by
|
||||
+ * Ralf Corsepius, Ulm/Germany. All rights reserved.
|
||||
+ *
|
||||
+ * Permission to use, copy, modify, and distribute this software
|
||||
+ * is freely granted, provided that this notice is preserved.
|
||||
+ */
|
||||
+
|
||||
+/*
|
||||
+ * @todo - Add fast<N>_t types.
|
||||
+ * @todo - Add support for wint_t types.
|
||||
+ */
|
||||
+
|
||||
+#ifndef _STDINT_H
|
||||
+#define _STDINT_H
|
||||
+
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
+
|
||||
+#if defined(__GNUC__) && (__GNUC__ >= 3 ) \
|
||||
+ && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2 )
|
||||
+#define __EXP(x) __##x##__
|
||||
+#else
|
||||
+#define __EXP(x) x
|
||||
+#include <limits.h>
|
||||
+#endif
|
||||
+
|
||||
+#if __EXP(SCHAR_MAX) == 0x7f
|
||||
+typedef signed char int8_t ;
|
||||
+typedef unsigned char uint8_t ;
|
||||
+#define __int8_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#if __int8_t_defined
|
||||
+typedef signed char int_least8_t;
|
||||
+typedef unsigned char uint_least8_t;
|
||||
+#define __int_least8_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#if __EXP(SHRT_MAX) == 0x7fff
|
||||
+typedef signed short int16_t;
|
||||
+typedef unsigned short uint16_t;
|
||||
+#define __int16_t_defined 1
|
||||
+#elif __EXP(INT_MAX) == 0x7fff
|
||||
+typedef signed int int16_t;
|
||||
+typedef unsigned int uint16_t;
|
||||
+#define __int16_t_defined 1
|
||||
+#elif __EXP(SCHAR_MAX) == 0x7fff
|
||||
+typedef signed char int16_t;
|
||||
+typedef unsigned char uint16_t;
|
||||
+#define __int16_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#if __int16_t_defined
|
||||
+typedef int16_t int_least16_t;
|
||||
+typedef uint16_t uint_least16_t;
|
||||
+#define __int_least16_t_defined 1
|
||||
+
|
||||
+#ifndef __int_least8_t_defined
|
||||
+typedef int16_t int_least8_t;
|
||||
+typedef uint16_t uint_least8_t;
|
||||
+#define __int_least8_t_defined 1
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if __EXP(INT_MAX) == 0x7fffffffL
|
||||
+typedef signed int int32_t;
|
||||
+typedef unsigned int uint32_t;
|
||||
+#define __int32_t_defined 1
|
||||
+#elif __EXP(LONG_MAX) == 0x7fffffffL
|
||||
+typedef signed long int32_t;
|
||||
+typedef unsigned long uint32_t;
|
||||
+#define __int32_t_defined 1
|
||||
+#define __have_long32 1
|
||||
+#elif __EXP(SHRT_MAX) == 0x7fffffffL
|
||||
+typedef signed short int32_t;
|
||||
+typedef unsigned short uint32_t;
|
||||
+#define __int32_t_defined 1
|
||||
+#elif __EXP(SCHAR_MAX) == 0x7fffffffL
|
||||
+typedef signed char int32_t;
|
||||
+typedef unsigned char uint32_t;
|
||||
+#define __int32_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#if __int32_t_defined
|
||||
+typedef int32_t int_least32_t;
|
||||
+typedef uint32_t uint_least32_t;
|
||||
+#define __int_least32_t_defined 1
|
||||
+
|
||||
+#ifndef __int_least8_t_defined
|
||||
+typedef int32_t int_least8_t;
|
||||
+typedef uint32_t uint_least8_t;
|
||||
+#define __int_least8_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __int_least16_t_defined
|
||||
+typedef int32_t int_least16_t;
|
||||
+typedef uint32_t uint_least16_t;
|
||||
+#define __int_least16_t_defined 1
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if __EXP(LONG_MAX) > 0x7fffffff
|
||||
+typedef signed long int64_t;
|
||||
+typedef unsigned long uint64_t;
|
||||
+#define __int64_t_defined 1
|
||||
+#define __have_long64 1
|
||||
+#elif defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff)
|
||||
+typedef signed long long int64_t;
|
||||
+typedef unsigned long long uint64_t;
|
||||
+#define __int64_t_defined 1
|
||||
+#define __have_longlong64 1
|
||||
+#elif defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff)
|
||||
+typedef signed long long int64_t;
|
||||
+typedef unsigned long long uint64_t;
|
||||
+#define __int64_t_defined 1
|
||||
+#define __have_longlong64 1
|
||||
+#elif __EXP(INT_MAX) > 0x7fffffff
|
||||
+typedef signed int int64_t;
|
||||
+typedef unsigned int uint64_t;
|
||||
+#define __int64_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#if __int64_t_defined
|
||||
+typedef int64_t int_least64_t;
|
||||
+typedef uint64_t uint_least64_t;
|
||||
+#define __int_least64_t_defined 1
|
||||
+
|
||||
+#ifndef __int_least8_t_defined
|
||||
+typedef int64_t int_least8_t;
|
||||
+typedef uint64_t uint_least8_t;
|
||||
+#define __int_least8_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __int_least16_t_defined
|
||||
+typedef int64_t int_least16_t;
|
||||
+typedef uint64_t uint_least16_t;
|
||||
+#define __int_least16_t_defined 1
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __int_least32_t_defined
|
||||
+typedef int64_t int_least32_t;
|
||||
+typedef uint64_t uint_least32_t;
|
||||
+#define __int_least32_t_defined 1
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+#if __have_longlong64
|
||||
+typedef signed long long intmax_t;
|
||||
+typedef unsigned long long uintmax_t;
|
||||
+#else
|
||||
+typedef signed long intmax_t;
|
||||
+typedef unsigned long uintmax_t;
|
||||
+#endif
|
||||
+
|
||||
+/*
|
||||
+ * GCC doesn't provide an propriate macro for [u]intptr_t
|
||||
+ * For now, use __PTRDIFF_TYPE__
|
||||
+ */
|
||||
+#if defined(__PTRDIFF_TYPE__)
|
||||
+typedef signed __PTRDIFF_TYPE__ intptr_t;
|
||||
+typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
|
||||
+#else
|
||||
+/*
|
||||
+ * Fallback to hardcoded values,
|
||||
+ * should be valid on cpu's with 32bit int/32bit void*
|
||||
+ */
|
||||
+typedef signed long intptr_t;
|
||||
+typedef unsigned long uintptr_t;
|
||||
+#endif
|
||||
+
|
||||
+/* Limits of Specified-Width Integer Types */
|
||||
+
|
||||
+#if __int8_t_defined
|
||||
+#define INT8_MIN -128
|
||||
+#define INT8_MAX 127
|
||||
+#define UINT8_MAX 255
|
||||
+#endif
|
||||
+
|
||||
+#if __int_least8_t_defined
|
||||
+#define INTLEAST8_MIN -128
|
||||
+#define INTLEAST8_MAX 127
|
||||
+#define UINTLEAST8_MAX 255
|
||||
+#else
|
||||
+#error required type int_least8_t missing
|
||||
+#endif
|
||||
+
|
||||
+#if __int16_t_defined
|
||||
+#define INT16_MIN -32768
|
||||
+#define INT16_MAX 32767
|
||||
+#define UINT16_MAX 65535
|
||||
+#endif
|
||||
+
|
||||
+#if __int_least16_t_defined
|
||||
+#define INTLEAST16_MIN -32768
|
||||
+#define INTLEAST16_MAX 32767
|
||||
+#define UINTLEAST16_MAX 65535
|
||||
+#else
|
||||
+#error required type int_least16_t missing
|
||||
+#endif
|
||||
+
|
||||
+#if __int32_t_defined
|
||||
+#define INT32_MIN -2147483648
|
||||
+#define INT32_MAX 2147483647
|
||||
+#define UINT32_MAX 4294967295
|
||||
+#endif
|
||||
+
|
||||
+#if __int_least32_t_defined
|
||||
+#define INTLEAST32_MIN -2147483648
|
||||
+#define INTLEAST32_MAX 2147483647
|
||||
+#define UINTLEAST32_MAX 4294967295
|
||||
+#else
|
||||
+#error required type int_least32_t missing
|
||||
+#endif
|
||||
+
|
||||
+#if __int64_t_defined
|
||||
+#define INT64_MIN -9223372036854775808
|
||||
+#define INT64_MAX 9223372036854775807
|
||||
+#define UINT64_MAX 18446744073709551615
|
||||
+#endif
|
||||
+
|
||||
+#if __int_least64_t_defined
|
||||
+#define INTLEAST64_MIN -9223372036854775808
|
||||
+#define INTLEAST64_MAX 9223372036854775807
|
||||
+#define UINTLEAST64_MAX 18446744073709551615
|
||||
+#endif
|
||||
+
|
||||
+/* This must match size_t in stddef.h, currently long unsigned int */
|
||||
+#define SIZE_MIN (-__EXP(LONG_MAX) - 1L)
|
||||
+#define SIZE_MAX __EXP(LONG_MAX)
|
||||
+
|
||||
+/* This must match sig_atomic_t in <signal.h> (currently int) */
|
||||
+#define SIG_ATOMIC_MIN (-__EXP(INT_MAX) - 1)
|
||||
+#define SIG_ATOMIC_MAX __EXP(INT_MAX)
|
||||
+
|
||||
+/* This must match ptrdiff_t in <stddef.h> (currently long int) */
|
||||
+#define PTRDIFF_MIN (-__EXP(LONG_MAX) - 1L)
|
||||
+#define PTHDIFF_MAX __EXT(LONG_MAX)
|
||||
+
|
||||
+#undef __EXP
|
||||
+
|
||||
+/** Macros for minimum-width integer constant expressions */
|
||||
+#define INT8_C(x) x
|
||||
+#define UINT8_C(x) x##U
|
||||
+
|
||||
+#define INT16_C(x) x
|
||||
+#define UINT16_C(x) x##U
|
||||
+
|
||||
+#if __have_long32
|
||||
+#define INT32_C(x) x##L
|
||||
+#define UINT32_C(x) x##UL
|
||||
+#else
|
||||
+#define INT32_C(x) x
|
||||
+#define UINT32_C(x) x##U
|
||||
+#endif
|
||||
+
|
||||
+#if __int64_t_defined
|
||||
+#if __have_longlong64
|
||||
+#define INT64_C(x) x##LL
|
||||
+#define UINT64_C(x) x##ULL
|
||||
+#else
|
||||
+#define INT64_C(x) x##L
|
||||
+#define UINT64_C(x) x##UL
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
+/** Macros for greatest-width integer constant expression */
|
||||
+#if __have_longlong64
|
||||
+#define INTMAX_C(x) x##LL
|
||||
+#define UINTMAX_C(x) x##ULL
|
||||
+#else
|
||||
+#define INTMAX_C(x) x##L
|
||||
+#define UINTMAX_C(x) x##UL
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
+#endif /* _STDINT_H */
|
||||
diff -Nbaur newlib-1.13.0/newlib/libc/include/stdio.h newlib-1.13.0-new/newlib/libc/include/stdio.h
|
||||
--- newlib-1.13.0/newlib/libc/include/stdio.h Wed Nov 24 00:45:40 2004
|
||||
+++ newlib-1.13.0-new/newlib/libc/include/stdio.h Sat Sep 3 19:55:57 2005
|
||||
+++ newlib-1.13.0-new/newlib/libc/include/stdio.h Wed Sep 14 04:49:02 2005
|
||||
@@ -244,6 +244,7 @@
|
||||
int _EXFUN(vfiscanf, (FILE *, const char *, __VALIST));
|
||||
int _EXFUN(vfscanf, (FILE *, const char *, __VALIST));
|
||||
|
|
@ -2655,8 +2967,8 @@ diff -Nbaur newlib-1.13.0/newlib/libc/include/stdio.h newlib-1.13.0-new/newlib/l
|
|||
int _EXFUN(vsscanf, (const char *, const char *, __VALIST));
|
||||
diff -Nbaur newlib-1.13.0/newlib/libc/include/sys/iosupport.h newlib-1.13.0-new/newlib/libc/include/sys/iosupport.h
|
||||
--- newlib-1.13.0/newlib/libc/include/sys/iosupport.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/include/sys/iosupport.h Tue Aug 30 13:04:54 2005
|
||||
@@ -0,0 +1,32 @@
|
||||
+++ newlib-1.13.0-new/newlib/libc/include/sys/iosupport.h Fri Sep 16 03:20:57 2005
|
||||
@@ -0,0 +1,33 @@
|
||||
+#ifndef __iosupp_h__
|
||||
+#define __iosupp_h__
|
||||
+
|
||||
|
|
@ -2687,5 +2999,6 @@ diff -Nbaur newlib-1.13.0/newlib/libc/include/sys/iosupport.h newlib-1.13.0-new/
|
|||
+extern const devoptab_t *devoptab_list[];
|
||||
+
|
||||
+int AddDevice( const devoptab_t* device);
|
||||
+int FindDevice(char* name);
|
||||
+
|
||||
+#endif
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user