mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-21 01:44:16 -05:00
Compare commits
16 Commits
devkitARM_
...
devkitPPC_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
251c7cbbf1 | ||
|
|
2b7e5215fc | ||
|
|
540dbb84c6 | ||
|
|
90fb45065c | ||
|
|
771225f45a | ||
|
|
fdb7c8a6d2 | ||
|
|
5649ec2a1f | ||
|
|
6e92980fd1 | ||
|
|
3673dced6d | ||
|
|
6999db3f10 | ||
|
|
ae793d657a | ||
|
|
c375da789d | ||
|
|
b8c7c915bc | ||
|
|
c108162819 | ||
|
|
e952463476 | ||
|
|
1444dc91df |
@@ -1,8 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
#!/bin/bash
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# devkitARM release 56
|
# devkitARM release 55
|
||||||
# devkitPPC release 38
|
# devkitPPC release 39
|
||||||
# devkitA64 release 17
|
# devkitA64 release 17
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -59,13 +58,6 @@ if [ ! -z "$CROSSBUILD" ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
|
||||||
# Sane defaults for building toolchain
|
|
||||||
#---------------------------------------------------------------------------------
|
|
||||||
export CFLAGS="-O2 -pipe"
|
|
||||||
export CXXFLAGS="$CFLAGS"
|
|
||||||
unset LDFLAGS
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Look for automated configuration file to bypass prompts
|
# Look for automated configuration file to bypass prompts
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
@@ -162,7 +154,7 @@ case $PLATFORM in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
MINGW32* )
|
MINGW32* )
|
||||||
cppflags="-D__USE_MINGW_ACCESS"
|
cppflags="-D__USE_MINGW_ACCESS -D__USE_MINGW_ANSI_STDIO=1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -238,8 +230,10 @@ fi
|
|||||||
|
|
||||||
cd $BUILDSCRIPTDIR
|
cd $BUILDSCRIPTDIR
|
||||||
|
|
||||||
|
if [ "$BUILD_DKPRO_NO_STRIP_BINARIES" != "1" ]; then
|
||||||
echo "stripping installed binaries"
|
echo "stripping installed binaries"
|
||||||
. ./strip_bins.sh
|
. ./strip_bins.sh
|
||||||
|
fi
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Clean up temporary files and source directories
|
# Clean up temporary files and source directories
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ then
|
|||||||
--with-newlib=yes \
|
--with-newlib=yes \
|
||||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||||
--prefix=$prefix \
|
--prefix=$prefix \
|
||||||
--enable-lto $plugin_ld\
|
--enable-lto \
|
||||||
--with-system-zlib \
|
|
||||||
--disable-tm-clone-registry \
|
--disable-tm-clone-registry \
|
||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--with-bugurl="https://github.com/devkitPro/buildscripts/issues" --with-pkgversion="devkitA64 release 17" \
|
--with-bugurl="https://github.com/devkitPro/buildscripts/issues" --with-pkgversion="devkitA64 release 17" \
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
diff -NBaur binutils-2.34/opcodes/ppc-opc.c binutils-2.34-ppc/opcodes/ppc-opc.c
|
|
||||||
--- binutils-2.34/opcodes/ppc-opc.c 2020-01-18 13:55:49.000000000 +0000
|
|
||||||
+++ binutils-2.34-ppc/opcodes/ppc-opc.c 2020-05-22 10:47:37.900308413 +0000
|
|
||||||
@@ -3747,7 +3747,7 @@
|
|
||||||
#define MFDEC2 (PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE \
|
|
||||||
| PPC_OPCODE_TITAN)
|
|
||||||
#define BOOKE PPC_OPCODE_BOOKE
|
|
||||||
-#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_PPCPS | PPC_OPCODE_EFS
|
|
||||||
+#define NO371 PPC_OPCODE_BOOKE | PPC_OPCODE_EFS
|
|
||||||
#define PPCE300 PPC_OPCODE_E300
|
|
||||||
#define PPCSPE PPC_OPCODE_SPE
|
|
||||||
#define PPCSPE2 PPC_OPCODE_SPE2
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
diff -NBaur binutils-2.31.1/opcodes/ppc-opc.c binutils-2.31.1-ppc/opcodes/ppc-opc.c
|
diff -NBaur binutils-2.36.1/opcodes/ppc-opc.c binutils-2.36.1-ppc/opcodes/ppc-opc.c
|
||||||
--- binutils-2.31.1/opcodes/ppc-opc.c 2018-06-24 19:38:58.000000000 +0100
|
--- binutils-2.36.1/opcodes/ppc-opc.c 2021-01-09 10:47:34.000000000 +0000
|
||||||
+++ binutils-2.31.1-ppc/opcodes/ppc-opc.c 2018-11-01 10:59:42.814553627 +0000
|
+++ binutils-2.36.1-ppc/opcodes/ppc-opc.c 2021-02-14 19:41:09.350749949 +0000
|
||||||
@@ -3501,7 +3501,7 @@
|
@@ -4225,7 +4225,7 @@
|
||||||
#define MFDEC2 (PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE \
|
#define MFDEC2 (PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE \
|
||||||
| PPC_OPCODE_TITAN)
|
| PPC_OPCODE_TITAN)
|
||||||
#define BOOKE PPC_OPCODE_BOOKE
|
#define BOOKE PPC_OPCODE_BOOKE
|
||||||
@@ -11,49 +11,23 @@ index 4b937306ad0..bfd0375bd60 100644
|
|||||||
lynx) thread_header=config/gthr-lynx.h ;;
|
lynx) thread_header=config/gthr-lynx.h ;;
|
||||||
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
||||||
diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c
|
diff --git a/gcc/config/i386/host-mingw32.c b/gcc/config/i386/host-mingw32.c
|
||||||
index 250fef59b55..36b2239aa5d 100644
|
index 360a280b23a..2c03947999a 100644
|
||||||
--- a/gcc/config/i386/host-mingw32.c
|
--- a/gcc/config/i386/host-mingw32.c
|
||||||
+++ b/gcc/config/i386/host-mingw32.c
|
+++ b/gcc/config/i386/host-mingw32.c
|
||||||
@@ -44,9 +44,6 @@ static size_t mingw32_gt_pch_alloc_granularity (void);
|
@@ -45,7 +45,11 @@ static size_t mingw32_gt_pch_alloc_granularity (void);
|
||||||
|
|
||||||
static inline void w32_error(const char*, const char*, int, const char*);
|
static inline void w32_error(const char*, const char*, int, const char*);
|
||||||
|
|
||||||
-/* FIXME: Is this big enough? */
|
/* FIXME: Is this big enough? */
|
||||||
-static const size_t pch_VA_max_size = 128 * 1024 * 1024;
|
+#if __MINGW64__
|
||||||
-
|
+static const size_t pch_VA_max_size = UINT64_C(64 * 1024 * 1024 * 1024);
|
||||||
|
+#else
|
||||||
|
static const size_t pch_VA_max_size = 128 * 1024 * 1024;
|
||||||
|
+#endif
|
||||||
|
|
||||||
/* Granularity for reserving address space. */
|
/* Granularity for reserving address space. */
|
||||||
static size_t va_granularity = 0x10000;
|
static size_t va_granularity = 0x10000;
|
||||||
|
|
||||||
@@ -88,9 +85,6 @@ static void *
|
|
||||||
mingw32_gt_pch_get_address (size_t size, int)
|
|
||||||
{
|
|
||||||
void* res;
|
|
||||||
- size = (size + va_granularity - 1) & ~(va_granularity - 1);
|
|
||||||
- if (size > pch_VA_max_size)
|
|
||||||
- return NULL;
|
|
||||||
|
|
||||||
/* FIXME: We let system determine base by setting first arg to NULL.
|
|
||||||
Allocating at top of available address space avoids unnecessary
|
|
||||||
@@ -100,7 +94,7 @@ mingw32_gt_pch_get_address (size_t size, int)
|
|
||||||
If we allocate at bottom we need to reserve the address as early
|
|
||||||
as possible and at the same point in each invocation. */
|
|
||||||
|
|
||||||
- res = VirtualAlloc (NULL, pch_VA_max_size,
|
|
||||||
+ res = VirtualAlloc (NULL, size,
|
|
||||||
MEM_RESERVE | MEM_TOP_DOWN,
|
|
||||||
PAGE_NOACCESS);
|
|
||||||
if (!res)
|
|
||||||
@@ -150,7 +144,7 @@ mingw32_gt_pch_use_address (void *addr, size_t size, int fd,
|
|
||||||
|
|
||||||
/* Offset must be also be a multiple of allocation granularity for
|
|
||||||
this to work. We can't change the offset. */
|
|
||||||
- if ((offset & (va_granularity - 1)) != 0 || size > pch_VA_max_size)
|
|
||||||
+ if ((offset & (va_granularity - 1)) != 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/gcc/config/newlib-stdint.h b/gcc/config/newlib-stdint.h
|
diff --git a/gcc/config/newlib-stdint.h b/gcc/config/newlib-stdint.h
|
||||||
index 2e086f16de9..1c27c6467bc 100644
|
index 65d1fa2cd1f..51991aab75c 100644
|
||||||
--- a/gcc/config/newlib-stdint.h
|
--- a/gcc/config/newlib-stdint.h
|
||||||
+++ b/gcc/config/newlib-stdint.h
|
+++ b/gcc/config/newlib-stdint.h
|
||||||
@@ -25,7 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
@@ -25,7 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
@@ -66,7 +40,7 @@ index 2e086f16de9..1c27c6467bc 100644
|
|||||||
|
|
||||||
#define SIG_ATOMIC_TYPE "int"
|
#define SIG_ATOMIC_TYPE "int"
|
||||||
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
|
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
|
||||||
index 132ca20fd7d..119ee5bbc8c 100644
|
index 164d359b724..4785fcf6e73 100644
|
||||||
--- a/gcc/config/rs6000/rs6000.h
|
--- a/gcc/config/rs6000/rs6000.h
|
||||||
+++ b/gcc/config/rs6000/rs6000.h
|
+++ b/gcc/config/rs6000/rs6000.h
|
||||||
@@ -196,6 +196,7 @@ ASM_OPT_ANY
|
@@ -196,6 +196,7 @@ ASM_OPT_ANY
|
||||||
@@ -87,7 +61,7 @@ index 132ca20fd7d..119ee5bbc8c 100644
|
|||||||
#ifndef CC1_CPU_SPEC
|
#ifndef CC1_CPU_SPEC
|
||||||
#ifdef HAVE_LOCAL_CPU_DETECT
|
#ifdef HAVE_LOCAL_CPU_DETECT
|
||||||
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
|
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
|
||||||
index 9ade72114e9..cede792d3a7 100644
|
index 510abe169c5..988e82007b0 100644
|
||||||
--- a/gcc/config/rs6000/sysv4.h
|
--- a/gcc/config/rs6000/sysv4.h
|
||||||
+++ b/gcc/config/rs6000/sysv4.h
|
+++ b/gcc/config/rs6000/sysv4.h
|
||||||
@@ -590,7 +590,11 @@ GNU_USER_TARGET_CC1_SPEC
|
@@ -590,7 +590,11 @@ GNU_USER_TARGET_CC1_SPEC
|
||||||
@@ -245,7 +219,7 @@ index 9ade72114e9..cede792d3a7 100644
|
|||||||
{ "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
|
{ "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
|
||||||
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
|
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
|
||||||
diff --git a/gcc/config/rs6000/sysv4.opt b/gcc/config/rs6000/sysv4.opt
|
diff --git a/gcc/config/rs6000/sysv4.opt b/gcc/config/rs6000/sysv4.opt
|
||||||
index b49ba261f3c..4eda763dfca 100644
|
index 7ab55c49940..763709e907e 100644
|
||||||
--- a/gcc/config/rs6000/sysv4.opt
|
--- a/gcc/config/rs6000/sysv4.opt
|
||||||
+++ b/gcc/config/rs6000/sysv4.opt
|
+++ b/gcc/config/rs6000/sysv4.opt
|
||||||
@@ -124,6 +124,26 @@ mads
|
@@ -124,6 +124,26 @@ mads
|
||||||
@@ -276,10 +250,10 @@ index b49ba261f3c..4eda763dfca 100644
|
|||||||
Target RejectNegative
|
Target RejectNegative
|
||||||
Link with libyk.a, libc.a and crt0.o.
|
Link with libyk.a, libc.a and crt0.o.
|
||||||
diff --git a/gcc/configure b/gcc/configure
|
diff --git a/gcc/configure b/gcc/configure
|
||||||
index eb6061c1631..4c6e993ca3a 100755
|
index e8ecb3b0297..10ebe252c12 100755
|
||||||
--- a/gcc/configure
|
--- a/gcc/configure
|
||||||
+++ b/gcc/configure
|
+++ b/gcc/configure
|
||||||
@@ -12208,7 +12208,7 @@ case ${enable_threads} in
|
@@ -12593,7 +12593,7 @@ case ${enable_threads} in
|
||||||
# default
|
# default
|
||||||
target_thread_file='single'
|
target_thread_file='single'
|
||||||
;;
|
;;
|
||||||
@@ -289,10 +263,10 @@ index eb6061c1631..4c6e993ca3a 100755
|
|||||||
target_thread_file=${enable_threads}
|
target_thread_file=${enable_threads}
|
||||||
;;
|
;;
|
||||||
diff --git a/gcc/configure.ac b/gcc/configure.ac
|
diff --git a/gcc/configure.ac b/gcc/configure.ac
|
||||||
index 715fcba0482..779743b69ee 100644
|
index 96a6f62b0d3..c5dd3465634 100644
|
||||||
--- a/gcc/configure.ac
|
--- a/gcc/configure.ac
|
||||||
+++ b/gcc/configure.ac
|
+++ b/gcc/configure.ac
|
||||||
@@ -1800,7 +1800,7 @@ case ${enable_threads} in
|
@@ -1925,7 +1925,7 @@ case ${enable_threads} in
|
||||||
# default
|
# default
|
||||||
target_thread_file='single'
|
target_thread_file='single'
|
||||||
;;
|
;;
|
||||||
@@ -302,7 +276,7 @@ index 715fcba0482..779743b69ee 100644
|
|||||||
target_thread_file=${enable_threads}
|
target_thread_file=${enable_threads}
|
||||||
;;
|
;;
|
||||||
diff --git a/libgcc/config/rs6000/crtrestvr.S b/libgcc/config/rs6000/crtrestvr.S
|
diff --git a/libgcc/config/rs6000/crtrestvr.S b/libgcc/config/rs6000/crtrestvr.S
|
||||||
index 260fe4d1af6..664808cd19c 100644
|
index b372409dd42..708ba039963 100644
|
||||||
--- a/libgcc/config/rs6000/crtrestvr.S
|
--- a/libgcc/config/rs6000/crtrestvr.S
|
||||||
+++ b/libgcc/config/rs6000/crtrestvr.S
|
+++ b/libgcc/config/rs6000/crtrestvr.S
|
||||||
@@ -24,7 +24,7 @@
|
@@ -24,7 +24,7 @@
|
||||||
@@ -320,7 +294,7 @@ index 260fe4d1af6..664808cd19c 100644
|
|||||||
#endif
|
#endif
|
||||||
+#endif
|
+#endif
|
||||||
diff --git a/libgcc/config/rs6000/crtsavevr.S b/libgcc/config/rs6000/crtsavevr.S
|
diff --git a/libgcc/config/rs6000/crtsavevr.S b/libgcc/config/rs6000/crtsavevr.S
|
||||||
index 7e1d5c5df98..2c62480d165 100644
|
index 48a4d65eed4..6835ea69279 100644
|
||||||
--- a/libgcc/config/rs6000/crtsavevr.S
|
--- a/libgcc/config/rs6000/crtsavevr.S
|
||||||
+++ b/libgcc/config/rs6000/crtsavevr.S
|
+++ b/libgcc/config/rs6000/crtsavevr.S
|
||||||
@@ -24,7 +24,7 @@
|
@@ -24,7 +24,7 @@
|
||||||
@@ -866,10 +840,10 @@ index fb812d3801f..7f6669d530f 100644
|
|||||||
|
|
||||||
# This can't end up in shared libgcc
|
# This can't end up in shared libgcc
|
||||||
diff --git a/libgcc/configure b/libgcc/configure
|
diff --git a/libgcc/configure b/libgcc/configure
|
||||||
index 26bf75789e0..1f663d2cfb0 100755
|
index dd3afb2c957..abc5466abdc 100755
|
||||||
--- a/libgcc/configure
|
--- a/libgcc/configure
|
||||||
+++ b/libgcc/configure
|
+++ b/libgcc/configure
|
||||||
@@ -5640,6 +5640,7 @@ tm_file="${tm_file_}"
|
@@ -5642,6 +5642,7 @@ tm_file="${tm_file_}"
|
||||||
case $target_thread_file in
|
case $target_thread_file in
|
||||||
aix) thread_header=config/rs6000/gthr-aix.h ;;
|
aix) thread_header=config/rs6000/gthr-aix.h ;;
|
||||||
dce) thread_header=config/pa/gthr-dce.h ;;
|
dce) thread_header=config/pa/gthr-dce.h ;;
|
||||||
@@ -878,7 +852,7 @@ index 26bf75789e0..1f663d2cfb0 100755
|
|||||||
lynx) thread_header=config/gthr-lynx.h ;;
|
lynx) thread_header=config/gthr-lynx.h ;;
|
||||||
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
||||||
diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
|
diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c
|
||||||
index 3f769a1c660..e005d8304b7 100644
|
index 675930db043..bdfd6f6b0bb 100644
|
||||||
--- a/libgcc/crtstuff.c
|
--- a/libgcc/crtstuff.c
|
||||||
+++ b/libgcc/crtstuff.c
|
+++ b/libgcc/crtstuff.c
|
||||||
@@ -325,7 +325,7 @@ register_tm_clones (void)
|
@@ -325,7 +325,7 @@ register_tm_clones (void)
|
||||||
@@ -891,10 +865,10 @@ index 3f769a1c660..e005d8304b7 100644
|
|||||||
in every shared-object; in a main program its value is zero. The
|
in every shared-object; in a main program its value is zero. The
|
||||||
object should in any case be protected. This means the instance
|
object should in any case be protected. This means the instance
|
||||||
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
|
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
|
||||||
index 9f9c5a2419a..c9bb6c548be 100755
|
index 326a279c54f..d2cb9d18294 100755
|
||||||
--- a/libstdc++-v3/configure
|
--- a/libstdc++-v3/configure
|
||||||
+++ b/libstdc++-v3/configure
|
+++ b/libstdc++-v3/configure
|
||||||
@@ -15637,6 +15637,7 @@ $as_echo "$target_thread_file" >&6; }
|
@@ -15698,6 +15698,7 @@ $as_echo "$target_thread_file" >&6; }
|
||||||
case $target_thread_file in
|
case $target_thread_file in
|
||||||
aix) thread_header=config/rs6000/gthr-aix.h ;;
|
aix) thread_header=config/rs6000/gthr-aix.h ;;
|
||||||
dce) thread_header=config/pa/gthr-dce.h ;;
|
dce) thread_header=config/pa/gthr-dce.h ;;
|
||||||
@@ -902,3 +876,43 @@ index 9f9c5a2419a..c9bb6c548be 100755
|
|||||||
gcn) thread_header=config/gcn/gthr-gcn.h ;;
|
gcn) thread_header=config/gcn/gthr-gcn.h ;;
|
||||||
lynx) thread_header=config/gthr-lynx.h ;;
|
lynx) thread_header=config/gthr-lynx.h ;;
|
||||||
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
mipssde) thread_header=config/mips/gthr-mipssde.h ;;
|
||||||
|
diff --git a/libstdc++-v3/include/c_compatibility/fenv.h b/libstdc++-v3/include/c_compatibility/fenv.h
|
||||||
|
index 0413e3b7c25..ff5f8bbe1a1 100644
|
||||||
|
--- a/libstdc++-v3/include/c_compatibility/fenv.h
|
||||||
|
+++ b/libstdc++-v3/include/c_compatibility/fenv.h
|
||||||
|
@@ -26,6 +26,10 @@
|
||||||
|
* This is a Standard C++ Library header.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
|
||||||
|
+# include_next <fenv.h>
|
||||||
|
+#else
|
||||||
|
+
|
||||||
|
#ifndef _GLIBCXX_FENV_H
|
||||||
|
#define _GLIBCXX_FENV_H 1
|
||||||
|
|
||||||
|
@@ -79,3 +83,5 @@ namespace std
|
||||||
|
#endif // C++11
|
||||||
|
|
||||||
|
#endif // _GLIBCXX_FENV_H
|
||||||
|
+
|
||||||
|
+#endif // __cplusplus
|
||||||
|
diff --git a/libstdc++-v3/include/c_global/cfenv b/libstdc++-v3/include/c_global/cfenv
|
||||||
|
index 0b0ec35a837..d24cb1a3c81 100644
|
||||||
|
--- a/libstdc++-v3/include/c_global/cfenv
|
||||||
|
+++ b/libstdc++-v3/include/c_global/cfenv
|
||||||
|
@@ -37,9 +37,11 @@
|
||||||
|
|
||||||
|
#include <bits/c++config.h>
|
||||||
|
|
||||||
|
-#if _GLIBCXX_HAVE_FENV_H
|
||||||
|
-# include <fenv.h>
|
||||||
|
-#endif
|
||||||
|
+// Need to ensure this finds the C library's <fenv.h> not a libstdc++
|
||||||
|
+// wrapper that might already be installed later in the include search path.
|
||||||
|
+#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
|
||||||
|
+#include_next <fenv.h>
|
||||||
|
+#undef _GLIBCXX_INCLUDE_NEXT_C_HEADERS
|
||||||
|
|
||||||
|
#ifdef _GLIBCXX_USE_C99_FENV_TR1
|
||||||
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
diff -NBaur gdb-8.2.1/gdb/dtrace-probe.c gdb-8.2.1-apple/gdb/dtrace-probe.c
|
|
||||||
--- gdb-8.2.1/gdb/dtrace-probe.c 2018-12-23 05:51:54.000000000 +0000
|
|
||||||
+++ gdb-8.2.1-apple/gdb/dtrace-probe.c 2019-02-19 17:30:16.449175937 +0000
|
|
||||||
@@ -100,7 +100,7 @@
|
|
||||||
|
|
||||||
/* DTrace static_probe_ops. */
|
|
||||||
|
|
||||||
-const dtrace_static_probe_ops dtrace_static_probe_ops;
|
|
||||||
+const dtrace_static_probe_ops dtrace_static_probe_ops = {};
|
|
||||||
|
|
||||||
/* The following structure represents a dtrace probe. */
|
|
||||||
|
|
||||||
diff -NBaur gdb-8.2.1/gdb/probe.c gdb-8.2.1-apple/gdb/probe.c
|
|
||||||
--- gdb-8.2.1/gdb/probe.c 2018-12-23 05:51:54.000000000 +0000
|
|
||||||
+++ gdb-8.2.1-apple/gdb/probe.c 2019-02-19 17:31:05.266578008 +0000
|
|
||||||
@@ -60,7 +60,7 @@
|
|
||||||
|
|
||||||
/* Static operations associated with a generic probe. */
|
|
||||||
|
|
||||||
-const any_static_probe_ops any_static_probe_ops;
|
|
||||||
+const any_static_probe_ops any_static_probe_ops = {};
|
|
||||||
|
|
||||||
/* A helper for parse_probes that decodes a probe specification in
|
|
||||||
SEARCH_PSPACE. It appends matching SALs to RESULT. */
|
|
||||||
diff -NBaur gdb-8.2.1/gdb/record-btrace.c gdb-8.2.1-apple/gdb/record-btrace.c
|
|
||||||
--- gdb-8.2.1/gdb/record-btrace.c 2018-12-23 05:51:54.000000000 +0000
|
|
||||||
+++ gdb-8.2.1-apple/gdb/record-btrace.c 2019-02-19 17:31:33.301731324 +0000
|
|
||||||
@@ -144,7 +144,7 @@
|
|
||||||
|
|
||||||
/* Token associated with a new-thread observer enabling branch tracing
|
|
||||||
for the new thread. */
|
|
||||||
-static const gdb::observers::token record_btrace_thread_observer_token;
|
|
||||||
+static const gdb::observers::token record_btrace_thread_observer_token = {};
|
|
||||||
|
|
||||||
/* Memory access types used in set/show record btrace replay-memory-access. */
|
|
||||||
static const char replay_memory_access_read_only[] = "read-only";
|
|
||||||
diff -NBaur gdb-8.2.1/gdb/stap-probe.c gdb-8.2.1-apple/gdb/stap-probe.c
|
|
||||||
--- gdb-8.2.1/gdb/stap-probe.c 2018-12-23 05:51:54.000000000 +0000
|
|
||||||
+++ gdb-8.2.1-apple/gdb/stap-probe.c 2019-02-19 17:29:35.744567941 +0000
|
|
||||||
@@ -119,7 +119,7 @@
|
|
||||||
|
|
||||||
/* SystemTap static_probe_ops. */
|
|
||||||
|
|
||||||
-const stap_static_probe_ops stap_static_probe_ops;
|
|
||||||
+const stap_static_probe_ops stap_static_probe_ops = {};
|
|
||||||
|
|
||||||
class stap_probe : public probe
|
|
||||||
{
|
|
||||||
diff -NBaur gdb-8.2.1/gdb/tui/tui-hooks.c gdb-8.2.1-apple/gdb/tui/tui-hooks.c
|
|
||||||
--- gdb-8.2.1/gdb/tui/tui-hooks.c 2018-12-23 05:51:54.000000000 +0000
|
|
||||||
+++ gdb-8.2.1-apple/gdb/tui/tui-hooks.c 2019-02-19 17:28:53.178460364 +0000
|
|
||||||
@@ -205,7 +205,7 @@
|
|
||||||
|
|
||||||
/* Token associated with observers registered while TUI hooks are
|
|
||||||
installed. */
|
|
||||||
-static const gdb::observers::token tui_observers_token;
|
|
||||||
+static const gdb::observers::token tui_observers_token = {};
|
|
||||||
|
|
||||||
/* Attach or detach a single observer, according to ATTACH. */
|
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
diff --git a/libgloss/configure b/libgloss/configure
|
diff --git a/libgloss/configure b/libgloss/configure
|
||||||
index 0d2918cee..bccfb07b4 100755
|
index 816b9c4b8..b79edb6c8 100755
|
||||||
--- a/libgloss/configure
|
--- a/libgloss/configure
|
||||||
+++ b/libgloss/configure
|
+++ b/libgloss/configure
|
||||||
@@ -2604,6 +2604,8 @@ if test "${config_libnosys}" = "true"; then
|
@@ -2609,6 +2609,8 @@ if test "${config_libnosys}" = "true"; then
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ index 0d2918cee..bccfb07b4 100755
|
|||||||
|
|
||||||
ac_config_commands="$ac_config_commands depfiles"
|
ac_config_commands="$ac_config_commands depfiles"
|
||||||
diff --git a/libgloss/configure.in b/libgloss/configure.in
|
diff --git a/libgloss/configure.in b/libgloss/configure.in
|
||||||
index f38d5298e..db6b33ab8 100644
|
index 4111724e1..dfd632c20 100644
|
||||||
--- a/libgloss/configure.in
|
--- a/libgloss/configure.in
|
||||||
+++ b/libgloss/configure.in
|
+++ b/libgloss/configure.in
|
||||||
@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
@@ -2,6 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
||||||
@@ -33,7 +33,7 @@ index f38d5298e..db6b33ab8 100644
|
|||||||
case "${target}" in
|
case "${target}" in
|
||||||
aarch64*-*-*)
|
aarch64*-*-*)
|
||||||
AC_CONFIG_SUBDIRS(aarch64)
|
AC_CONFIG_SUBDIRS(aarch64)
|
||||||
@@ -194,6 +198,10 @@ if test "${config_libnosys}" = "true"; then
|
@@ -197,6 +201,10 @@ if test "${config_libnosys}" = "true"; then
|
||||||
AC_CONFIG_SUBDIRS([libnosys])
|
AC_CONFIG_SUBDIRS([libnosys])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -7372,15 +7372,16 @@ index 000000000..bd25d775d
|
|||||||
+ exit ( main(__system_argv->argc,__system_argv->argv) );
|
+ exit ( main(__system_argv->argc,__system_argv->argv) );
|
||||||
+}
|
+}
|
||||||
diff --git a/newlib/configure.host b/newlib/configure.host
|
diff --git a/newlib/configure.host b/newlib/configure.host
|
||||||
index a84c0c80a..0921e00be 100644
|
index 1ddbb6c76..ef4cbe6c3 100644
|
||||||
--- a/newlib/configure.host
|
--- a/newlib/configure.host
|
||||||
+++ b/newlib/configure.host
|
+++ b/newlib/configure.host
|
||||||
@@ -853,7 +853,12 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
|
@@ -864,7 +864,13 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
|
||||||
default_newlib_io_long_long="yes"
|
default_newlib_io_long_long="yes"
|
||||||
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
|
||||||
;;
|
;;
|
||||||
- powerpc*-*-eabi* | \
|
- powerpc*-*-eabi* | \
|
||||||
+ powerpc*-*-eabi*)
|
+ powerpc*-*-eabi*)
|
||||||
|
+ default_newlib_io_c99_formats="yes"
|
||||||
+ default_newlib_io_long_long="yes"
|
+ default_newlib_io_long_long="yes"
|
||||||
+ newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -D__DEFAULT_UTF8__"
|
+ newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED -D__DEFAULT_UTF8__"
|
||||||
+ newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections"
|
+ newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections"
|
||||||
@@ -7389,6 +7390,32 @@ index a84c0c80a..0921e00be 100644
|
|||||||
powerpc*-*-elf* | \
|
powerpc*-*-elf* | \
|
||||||
powerpc*-*-linux* | \
|
powerpc*-*-linux* | \
|
||||||
powerpc*-*-rtem* | \
|
powerpc*-*-rtem* | \
|
||||||
|
diff --git a/newlib/libc/ctype/jp2uc.c b/newlib/libc/ctype/jp2uc.c
|
||||||
|
index 5e30f09be..1ea357f92 100644
|
||||||
|
--- a/newlib/libc/ctype/jp2uc.c
|
||||||
|
+++ b/newlib/libc/ctype/jp2uc.c
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
#ifdef _MB_CAPABLE
|
||||||
|
/* Under Cygwin, the incoming wide character is already given in UTF due
|
||||||
|
to the requirements of the underlying OS. */
|
||||||
|
-#ifndef __CYGWIN__
|
||||||
|
+#if !defined(__CYGWIN__) && !defined(__DEVKITA64__)
|
||||||
|
|
||||||
|
#include <_ansi.h>
|
||||||
|
#include <string.h>
|
||||||
|
diff --git a/newlib/libc/ctype/local.h b/newlib/libc/ctype/local.h
|
||||||
|
index 5c293c83d..75ccf89f5 100644
|
||||||
|
--- a/newlib/libc/ctype/local.h
|
||||||
|
+++ b/newlib/libc/ctype/local.h
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
* for towupper and towlower, the result must be back-transformed
|
||||||
|
into the respective locale encoding; currently NOT IMPLEMENTED
|
||||||
|
*/
|
||||||
|
-#ifdef __CYGWIN__
|
||||||
|
+#if defined(__CYGWIN__) || defined(__DEVKITA64__)
|
||||||
|
/* Under Cygwin, wchar_t (or its extension wint_t) is Unicode */
|
||||||
|
#define _jp2uc(c) (c)
|
||||||
|
#define _jp2uc_l(c, l) (c)
|
||||||
diff --git a/newlib/libc/include/sys/dirent.h b/newlib/libc/include/sys/dirent.h
|
diff --git a/newlib/libc/include/sys/dirent.h b/newlib/libc/include/sys/dirent.h
|
||||||
index a3fb5c02c..adb8e1083 100644
|
index a3fb5c02c..adb8e1083 100644
|
||||||
--- a/newlib/libc/include/sys/dirent.h
|
--- a/newlib/libc/include/sys/dirent.h
|
||||||
@@ -7668,10 +7695,10 @@ index 000000000..380329d34
|
|||||||
+#endif // _SYS_STATVFS_H
|
+#endif // _SYS_STATVFS_H
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff --git a/newlib/libc/include/sys/syslimits.h b/newlib/libc/include/sys/syslimits.h
|
diff --git a/newlib/libc/include/sys/syslimits.h b/newlib/libc/include/sys/syslimits.h
|
||||||
index ba9dbd667..93ed11a42 100644
|
index c872d2018..9ccdbc51a 100644
|
||||||
--- a/newlib/libc/include/sys/syslimits.h
|
--- a/newlib/libc/include/sys/syslimits.h
|
||||||
+++ b/newlib/libc/include/sys/syslimits.h
|
+++ b/newlib/libc/include/sys/syslimits.h
|
||||||
@@ -44,12 +44,12 @@
|
@@ -40,12 +40,12 @@
|
||||||
#define LINK_MAX 32767 /* max file link count */
|
#define LINK_MAX 32767 /* max file link count */
|
||||||
#define MAX_CANON 255 /* max bytes in term canon input line */
|
#define MAX_CANON 255 /* max bytes in term canon input line */
|
||||||
#define MAX_INPUT 255 /* max bytes in terminal input */
|
#define MAX_INPUT 255 /* max bytes in terminal input */
|
||||||
@@ -7713,7 +7740,7 @@ index 5e937f103..635a7a6b8 100644
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
|
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
|
||||||
index 4c343e462..835b3a712 100644
|
index 968642745..82f68c809 100644
|
||||||
--- a/newlib/libc/locale/locale.c
|
--- a/newlib/libc/locale/locale.c
|
||||||
+++ b/newlib/libc/locale/locale.c
|
+++ b/newlib/libc/locale/locale.c
|
||||||
@@ -166,15 +166,18 @@ No supporting OS subroutines are required.
|
@@ -166,15 +166,18 @@ No supporting OS subroutines are required.
|
||||||
@@ -7807,7 +7834,7 @@ index 4c343e462..835b3a712 100644
|
|||||||
#else /* __HAVE_LOCALE_INFO__ */
|
#else /* __HAVE_LOCALE_INFO__ */
|
||||||
{
|
{
|
||||||
{ NULL, NULL }, /* LC_ALL */
|
{ NULL, NULL }, /* LC_ALL */
|
||||||
@@ -990,6 +1015,7 @@ __locale_ctype_ptr_l (struct __locale_t *locale)
|
@@ -991,6 +1016,7 @@ __locale_ctype_ptr_l (struct __locale_t *locale)
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
__locale_ctype_ptr (void)
|
__locale_ctype_ptr (void)
|
||||||
@@ -8082,7 +8109,7 @@ index aa22a0e3a..93e672b6a 100644
|
|||||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-scanf.o `test -f 'scanf.c' || echo '$(srcdir)/'`scanf.c
|
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-scanf.o `test -f 'scanf.c' || echo '$(srcdir)/'`scanf.c
|
||||||
|
|
||||||
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
|
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
|
||||||
index 022992b8d..bdf4c7bb0 100644
|
index 1ac551fed..d293b7b0e 100644
|
||||||
--- a/newlib/libc/stdio/fopen.c
|
--- a/newlib/libc/stdio/fopen.c
|
||||||
+++ b/newlib/libc/stdio/fopen.c
|
+++ b/newlib/libc/stdio/fopen.c
|
||||||
@@ -139,6 +139,9 @@ _fopen_r (struct _reent *ptr,
|
@@ -139,6 +139,9 @@ _fopen_r (struct _reent *ptr,
|
||||||
@@ -8096,7 +8123,7 @@ index 022992b8d..bdf4c7bb0 100644
|
|||||||
fp->_flags = flags;
|
fp->_flags = flags;
|
||||||
fp->_cookie = (void *) fp;
|
fp->_cookie = (void *) fp;
|
||||||
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
|
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
|
||||||
index b358d2b4a..78bb0df30 100644
|
index df8321461..eee4181cd 100644
|
||||||
--- a/newlib/libc/stdio/fread.c
|
--- a/newlib/libc/stdio/fread.c
|
||||||
+++ b/newlib/libc/stdio/fread.c
|
+++ b/newlib/libc/stdio/fread.c
|
||||||
@@ -187,7 +187,6 @@ _fread_r (struct _reent * ptr,
|
@@ -187,7 +187,6 @@ _fread_r (struct _reent * ptr,
|
||||||
@@ -8148,37 +8175,18 @@ index b358d2b4a..78bb0df30 100644
|
|||||||
/* no more input: return partial result */
|
/* no more input: return partial result */
|
||||||
#ifdef __SCLE
|
#ifdef __SCLE
|
||||||
diff --git a/newlib/libc/stdlib/aligned_alloc.c b/newlib/libc/stdlib/aligned_alloc.c
|
diff --git a/newlib/libc/stdlib/aligned_alloc.c b/newlib/libc/stdlib/aligned_alloc.c
|
||||||
index 88413ce86..24029a6f7 100644
|
index feb22c24b..3dae0c9a9 100644
|
||||||
--- a/newlib/libc/stdlib/aligned_alloc.c
|
--- a/newlib/libc/stdlib/aligned_alloc.c
|
||||||
+++ b/newlib/libc/stdlib/aligned_alloc.c
|
+++ b/newlib/libc/stdlib/aligned_alloc.c
|
||||||
@@ -1,5 +1,5 @@
|
@@ -28,6 +28,8 @@
|
||||||
/*-
|
|
||||||
- * Copyright (c) 2015 embedded brains GmbH
|
|
||||||
+ * Copyright (c) 2018 Dave Murphy
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
@@ -25,14 +25,15 @@
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
#include <reent.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
+#include <malloc.h>
|
+#include <malloc.h>
|
||||||
+#include <errno.h>
|
+#include <errno.h>
|
||||||
|
|
||||||
void *
|
void *
|
||||||
aligned_alloc(size_t alignment, size_t size)
|
aligned_alloc (size_t align, size_t size)
|
||||||
{
|
|
||||||
- void *p;
|
|
||||||
- int error;
|
|
||||||
+ if ((alignment !=0) && !(alignment & (alignment - 1 )) && !(size & (alignment - 1)))
|
|
||||||
+ return memalign(alignment,size);
|
|
||||||
|
|
||||||
- error = posix_memalign(&p, alignment, size);
|
|
||||||
-
|
|
||||||
- return (error == 0 ? p : NULL);
|
|
||||||
+ errno = EINVAL;
|
|
||||||
+ return (void*)NULL;
|
|
||||||
}
|
|
||||||
diff --git a/newlib/libc/stdlib/mbtowc_r.c b/newlib/libc/stdlib/mbtowc_r.c
|
diff --git a/newlib/libc/stdlib/mbtowc_r.c b/newlib/libc/stdlib/mbtowc_r.c
|
||||||
index 920a7ea3c..ba5ee7652 100644
|
index 920a7ea3c..ba5ee7652 100644
|
||||||
--- a/newlib/libc/stdlib/mbtowc_r.c
|
--- a/newlib/libc/stdlib/mbtowc_r.c
|
||||||
@@ -94,15 +94,17 @@ then
|
|||||||
--disable-libstdcxx-verbose \
|
--disable-libstdcxx-verbose \
|
||||||
--enable-libstdcxx-time=yes \
|
--enable-libstdcxx-time=yes \
|
||||||
--enable-libstdcxx-filesystem-ts \
|
--enable-libstdcxx-filesystem-ts \
|
||||||
|
--disable-tm-clone-registry \
|
||||||
|
--disable-__cxa_atexit \
|
||||||
--enable-cxx-flags='-ffunction-sections -fdata-sections' \
|
--enable-cxx-flags='-ffunction-sections -fdata-sections' \
|
||||||
--target=$target \
|
--target=$target \
|
||||||
--with-newlib \
|
--with-newlib \
|
||||||
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
|
||||||
--prefix=$prefix \
|
--prefix=$prefix \
|
||||||
--with-system-zlib\
|
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 39" \
|
||||||
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 38" \
|
|
||||||
$CROSS_PARAMS \
|
$CROSS_PARAMS \
|
||||||
$CROSS_GCC_PARAMS \
|
$CROSS_GCC_PARAMS \
|
||||||
|
$EXTRA_GCC_PARAMS \
|
||||||
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||||
|| { echo "Error configuring gcc stage 1"; exit 1; }
|
|| { echo "Error configuring gcc stage 1"; exit 1; }
|
||||||
touch configured-gcc
|
touch configured-gcc
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ case "$VERSION" in
|
|||||||
toolchain=DEVKITARM
|
toolchain=DEVKITARM
|
||||||
;;
|
;;
|
||||||
"2" )
|
"2" )
|
||||||
GCC_VER=10.2.0
|
GCC_VER=11.1.0
|
||||||
BINUTILS_VER=2.34
|
BINUTILS_VER=2.36.1
|
||||||
MN_BINUTILS_VER=2.17
|
MN_BINUTILS_VER=2.24
|
||||||
NEWLIB_VER=3.3.0
|
NEWLIB_VER=4.1.0
|
||||||
basedir='dkppc'
|
basedir='dkppc'
|
||||||
package=devkitPPC
|
package=devkitPPC
|
||||||
target=powerpc-eabi
|
target=powerpc-eabi
|
||||||
|
|||||||
Reference in New Issue
Block a user