changes for devkitPPC release 27

Signed-off-by: Dave Murphy <wntrmute@users.sourceforge.net>
This commit is contained in:
Dave Murphy 2013-09-07 11:07:58 +01:00
parent 695eb60d08
commit e012872028
7 changed files with 83747 additions and 554 deletions

View File

@ -24,7 +24,7 @@ echo "Patches and improvements are of course welcome, please send these to the p
echo "https://sourceforge.net/tracker/?group_id=114505&atid=668553"
echo
LIBOGC_VER=1.8.11
LIBOGC_VER=1.8.12
LIBGBA_VER=20090222
LIBNDS_VER=1.5.8
DEFAULT_ARM7_VER=0.5.24

View File

@ -1,6 +1,68 @@
diff -Nbaur binutils-2.23.1/bfd/configure binutils-2.23.1-ppc/bfd/configure
--- binutils-2.23.1/bfd/configure 2012-11-13 14:17:40.000000000 +0000
+++ binutils-2.23.1-ppc/bfd/configure 2013-09-07 09:25:54.000000000 +0100
@@ -606,6 +606,7 @@
tdefaults
bfd_ufile_ptr
bfd_file_ptr
+lt_cv_dlopen_libs
supports_plugins
bfd_default_target_size
bfd_machines
@@ -15622,6 +15623,7 @@
fi
+
# Determine the host dependant file_ptr a.k.a. off_t type. In order
# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
diff -Nbaur binutils-2.23.1/bfd/configure.in binutils-2.23.1-ppc/bfd/configure.in
--- binutils-2.23.1/bfd/configure.in 2012-11-13 14:17:38.000000000 +0000
+++ binutils-2.23.1-ppc/bfd/configure.in 2013-09-07 09:25:54.000000000 +0100
@@ -1099,6 +1099,7 @@
supports_plugins=0
fi
AC_SUBST(supports_plugins)
+AC_SUBST(lt_cv_dlopen_libs)
# Determine the host dependant file_ptr a.k.a. off_t type. In order
# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
diff -Nbaur binutils-2.23.1/bfd/Makefile.am binutils-2.23.1-ppc/bfd/Makefile.am
--- binutils-2.23.1/bfd/Makefile.am 2012-11-13 14:17:38.000000000 +0000
+++ binutils-2.23.1-ppc/bfd/Makefile.am 2013-09-07 09:25:54.000000000 +0100
@@ -35,7 +35,7 @@
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
if PLUGINS
bfdinclude_HEADERS += $(INCDIR)/plugin-api.h
-LIBDL = -ldl
+LIBDL = @lt_cv_dlopen_libs@
endif
# bfd.h goes here, for now
diff -Nbaur binutils-2.23.1/bfd/Makefile.in binutils-2.23.1-ppc/bfd/Makefile.in
--- binutils-2.23.1/bfd/Makefile.in 2012-11-13 14:17:43.000000000 +0000
+++ binutils-2.23.1-ppc/bfd/Makefile.in 2013-09-07 09:25:54.000000000 +0100
@@ -293,6 +293,7 @@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
+lt_cv_dlopen_libs = @lt_cv_dlopen_libs@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
@@ -336,7 +337,7 @@
@INSTALL_LIBBFD_FALSE@noinst_LTLIBRARIES = libbfd.la
AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = -DBINDIR='"$(bindir)"'
-@PLUGINS_TRUE@LIBDL = -ldl
+@PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@
# bfd.h goes here, for now
BFD_H = bfd.h
diff -Nbaur binutils-2.23.1/opcodes/ppc-opc.c binutils-2.23.1-ppc/opcodes/ppc-opc.c
--- binutils-2.23.1/opcodes/ppc-opc.c 2012-09-04 13:53:51.000000000 +0100
+++ binutils-2.23.1-ppc/opcodes/ppc-opc.c 2013-03-23 05:12:59.000000000 +0000
+++ binutils-2.23.1-ppc/opcodes/ppc-opc.c 2013-09-07 08:56:16.000000000 +0100
@@ -2707,7 +2707,7 @@
#define MFDEC1 PPC_OPCODE_POWER
#define MFDEC2 PPC_OPCODE_PPC | PPC_OPCODE_601 | PPC_OPCODE_BOOKE | PPC_OPCODE_TITAN

View File

@ -1,237 +0,0 @@
diff -Nbaur gcc-4.7.2/gcc/config/rs6000/rs6000.h gcc-4.7.2-ppc/gcc/config/rs6000/rs6000.h
--- gcc-4.7.2/gcc/config/rs6000/rs6000.h 2012-04-12 22:00:07.000000000 +0100
+++ gcc-4.7.2-ppc/gcc/config/rs6000/rs6000.h 2012-12-18 21:19:30.000000000 +0000
@@ -200,6 +200,7 @@
{ "asm_cpu_476", ASM_CPU_476_SPEC }, \
SUBTARGET_EXTRA_SPECS
+#if 0
/* -mcpu=native handling only makes sense with compiler running on
an PowerPC chip. If changing this condition, also change
the condition in driver-rs6000.c. */
@@ -214,6 +215,8 @@
#else
#define ASM_CPU_NATIVE_SPEC "%(asm_default)"
#endif
+#endif
+#define ASM_CPU_NATIVE_SPEC "%(asm_default)"
#ifndef CC1_CPU_SPEC
#ifdef HAVE_LOCAL_CPU_DETECT
diff -Nbaur gcc-4.7.2/gcc/config/rs6000/sysv4.h gcc-4.7.2-ppc/gcc/config/rs6000/sysv4.h
--- gcc-4.7.2/gcc/config/rs6000/sysv4.h 2012-04-30 18:39:01.000000000 +0100
+++ gcc-4.7.2-ppc/gcc/config/rs6000/sysv4.h 2012-12-18 21:19:30.000000000 +0000
@@ -593,7 +593,11 @@
/* Default starting address if specified. */
#define LINK_START_SPEC "\
-%{mads : %(link_start_ads) ; \
+%{mgcn|mogc : %(link_start_ogc) ; \
+ mvgc : %(link_start_vgc) ; \
+ mgcbios : %(link_start_gcb) ; \
+ mrvl : %(link_start_rvl) ; \
+ mads : %(link_start_ads) ; \
myellowknife : %(link_start_yellowknife) ; \
mmvme : %(link_start_mvme) ; \
msim : %(link_start_sim) ; \
@@ -630,7 +634,8 @@
/* Any specific OS flags. */
#define LINK_OS_SPEC "\
-%{mads : %(link_os_ads) ; \
+%{mgcn|mogc|mvgc|mgcbios|mrvl : %(link_os_ogc) ; \
+ mads : %(link_os_ads) ; \
myellowknife : %(link_os_yellowknife) ; \
mmvme : %(link_os_mvme) ; \
msim : %(link_os_sim) ; \
@@ -648,7 +653,10 @@
/* Override rs6000.h definition. */
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
-%{mads : %(cpp_os_ads) ; \
+%{mgcn : %(cpp_os_gcn) ; \
+ mogc|mvgc|mgcbios : %(cpp_os_ogc) ; \
+ mrvl : %(cpp_os_rvl) ; \
+ mads : %(cpp_os_ads) ; \
myellowknife : %(cpp_os_yellowknife) ; \
mmvme : %(cpp_os_mvme) ; \
msim : %(cpp_os_sim) ; \
@@ -662,7 +670,10 @@
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "\
-%{mads : %(startfile_ads) ; \
+%{mgcn : %(startfile_gcn) ; \
+ mogc|mvgc|mgcbios : %(startfile_ogc) ; \
+ mrvl : %(startfile_ogc) ; \
+ mads : %(startfile_ads) ; \
myellowknife : %(startfile_yellowknife) ; \
mmvme : %(startfile_mvme) ; \
msim : %(startfile_sim) ; \
@@ -672,11 +683,12 @@
mcall-openbsd: %(startfile_openbsd) ; \
: %(startfile_default) }"
-#define STARTFILE_DEFAULT_SPEC "ecrti.o%s crtbegin.o%s"
+#define STARTFILE_DEFAULT_SPEC "crt0.o%s ecrti.o%s crtbegin.o%s"
#undef LIB_SPEC
#define LIB_SPEC "\
-%{mads : %(lib_ads) ; \
+%{mgcn|mogc|mvgc|mgcbios|mrvl : %(lib_ogc) ; \
+ mads : %(lib_ads) ; \
myellowknife : %(lib_yellowknife) ; \
mmvme : %(lib_mvme) ; \
msim : %(lib_sim) ; \
@@ -686,11 +698,12 @@
mcall-openbsd: %(lib_openbsd) ; \
: %(lib_default) }"
-#define LIB_DEFAULT_SPEC "-lc"
+#define LIB_DEFAULT_SPEC "--start-group -lsysbase -lc --end-group"
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "\
-%{mads : %(endfile_ads) ; \
+%{mgcn|mogc|mvgc|mgcbios|mrvl : %(endfile_ogc) ; \
+ mads : %(endfile_ads) ; \
myellowknife : %(endfile_yellowknife) ; \
mmvme : %(endfile_mvme) ; \
msim : %(endfile_sim) ; \
@@ -706,16 +719,27 @@
/* Motorola ADS support. */
#define LIB_ADS_SPEC "--start-group -lads -lc --end-group"
+#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 crtmain.o%s"
#define ENDFILE_ADS_SPEC "crtend.o%s ecrtn.o%s"
+#define ENDFILE_OGC_SPEC "crtend.o%s ecrtn.o%s"
#define LINK_START_ADS_SPEC "-T ads.ld%s"
+#define LINK_START_OGC_SPEC "-T ogc.ld%s"
+#define LINK_START_RVL_SPEC "-T rvl.ld%s"
+#define LINK_START_VGC_SPEC "-T vgcogc.ld%s"
+#define LINK_START_GCB_SPEC "-T gcbogc.ld%s"
#define LINK_OS_ADS_SPEC ""
+#define LINK_OS_OGC_SPEC "--gc-sections"
#define CPP_OS_ADS_SPEC ""
+#define CPP_OS_GCN_SPEC "-D__gamecube__ -ffunction-sections -fdata-sections"
+#define CPP_OS_OGC_SPEC "-D__gamecube__ -DHW_DOL -ffunction-sections -fdata-sections"
+#define CPP_OS_RVL_SPEC "-D__wii__ -DHW_RVL -ffunction-sections -fdata-sections"
/* Motorola Yellowknife support. */
#define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group"
@@ -885,6 +909,7 @@
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \
+ { "lib_ogc", LIB_OGC_SPEC }, \
{ "lib_ads", LIB_ADS_SPEC }, \
{ "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \
{ "lib_mvme", LIB_MVME_SPEC }, \
@@ -894,6 +919,7 @@
{ "lib_netbsd", LIB_NETBSD_SPEC }, \
{ "lib_openbsd", LIB_OPENBSD_SPEC }, \
{ "lib_default", LIB_DEFAULT_SPEC }, \
+ { "startfile_ogc", STARTFILE_OGC_SPEC }, \
{ "startfile_ads", STARTFILE_ADS_SPEC }, \
{ "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \
{ "startfile_mvme", STARTFILE_MVME_SPEC }, \
@@ -903,6 +929,7 @@
{ "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \
{ "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
+ { "endfile_ogc", ENDFILE_OGC_SPEC }, \
{ "endfile_ads", ENDFILE_ADS_SPEC }, \
{ "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \
{ "endfile_mvme", ENDFILE_MVME_SPEC }, \
@@ -915,7 +942,11 @@
{ "link_shlib", LINK_SHLIB_SPEC }, \
{ "link_target", LINK_TARGET_SPEC }, \
{ "link_start", LINK_START_SPEC }, \
+ { "link_start_vgc", LINK_START_VGC_SPEC }, \
+ { "link_start_gcb", LINK_START_GCB_SPEC }, \
+ { "link_start_rvl", LINK_START_RVL_SPEC }, \
{ "link_start_ads", LINK_START_ADS_SPEC }, \
+ { "link_start_ogc", LINK_START_OGC_SPEC }, \
{ "link_start_yellowknife", LINK_START_YELLOWKNIFE_SPEC }, \
{ "link_start_mvme", LINK_START_MVME_SPEC }, \
{ "link_start_sim", LINK_START_SIM_SPEC }, \
@@ -925,6 +956,7 @@
{ "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \
{ "link_start_default", LINK_START_DEFAULT_SPEC }, \
{ "link_os", LINK_OS_SPEC }, \
+ { "link_os_ogc", LINK_OS_OGC_SPEC }, \
{ "link_os_ads", LINK_OS_ADS_SPEC }, \
{ "link_os_yellowknife", LINK_OS_YELLOWKNIFE_SPEC }, \
{ "link_os_mvme", LINK_OS_MVME_SPEC }, \
@@ -938,6 +970,9 @@
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
{ "cc1_endian_default", CC1_ENDIAN_DEFAULT_SPEC }, \
{ "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
+ { "cpp_os_gcn", CPP_OS_GCN_SPEC }, \
+ { "cpp_os_ogc", CPP_OS_OGC_SPEC }, \
+ { "cpp_os_rvl", CPP_OS_RVL_SPEC }, \
{ "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.7.2/gcc/config/rs6000/sysv4.opt gcc-4.7.2-ppc/gcc/config/rs6000/sysv4.opt
--- gcc-4.7.2/gcc/config/rs6000/sysv4.opt 2011-05-05 15:59:55.000000000 +0100
+++ gcc-4.7.2-ppc/gcc/config/rs6000/sysv4.opt 2012-12-18 21:19:30.000000000 +0000
@@ -121,6 +121,26 @@
Target RejectNegative
Link with libads.a, libc.a and crt0.o
+mgcn
+Target RejectNegative
+Link with libsysbase.a and libc.a, use ogc linker script
+
+mogc
+Target RejectNegative
+Link with libsysbase.a and libc.a, use ogc linker script
+
+mgcbios
+Target RejectNegative
+Link with libsysbase.a and libc.a, use gcbogc linker script
+
+mvgc
+Target RejectNegative
+Link with libsysbase.a and libc.a, use gcbogc linker script
+
+mrvl
+Target RejectNegative
+Link with libsysbase.a and libc.a, use rvl linker script
+
myellowknife
Target RejectNegative
Link with libyk.a, libc.a and crt0.o
diff -Nbaur gcc-4.7.2/gcc/config.gcc gcc-4.7.2-ppc/gcc/config.gcc
--- gcc-4.7.2/gcc/config.gcc 2012-09-12 10:03:54.000000000 +0100
+++ gcc-4.7.2-ppc/gcc/config.gcc 2012-12-18 21:19:30.000000000 +0000
@@ -2023,7 +2023,7 @@
use_gcc_stdint=wrap
;;
powerpc-*-eabi*)
- tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
+ tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/750cl.h"
extra_options="${extra_options} rs6000/sysv4.opt"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
use_gcc_stdint=wrap
diff -Nbaur gcc-4.7.2/libcpp/Makefile.in gcc-4.7.2-ppc/libcpp/Makefile.in
--- gcc-4.7.2/libcpp/Makefile.in 2012-09-20 08:23:55.000000000 +0100
+++ gcc-4.7.2-ppc/libcpp/Makefile.in 2012-12-18 21:19:30.000000000 +0000
@@ -214,8 +214,7 @@
# Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does
# not atomically write the dependency output file.
-COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Tpo
-POSTCOMPILE = @mv $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+COMPILE = $(COMPILE.base) -o $@
else
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
$(depcomp) $(COMPILE.base)

83417
dkppc/patches/gcc-4.8.1.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
diff -Nbaur gdb-7.5.1/gdb/Makefile.in gdb-7.5.1-ppc/gdb/Makefile.in
--- gdb-7.5.1/gdb/Makefile.in 2012-07-02 16:29:33.000000000 +0100
+++ gdb-7.5.1-ppc/gdb/Makefile.in 2012-12-19 01:19:10.000000000 +0000
@@ -2156,10 +2156,10 @@
diff -Nbaur gdb-7.6.1/gdb/Makefile.in gdb-7.6.1-ppc/gdb/Makefile.in
--- gdb-7.6.1/gdb/Makefile.in 2013-04-02 18:38:43.000000000 +0100
+++ gdb-7.6.1-ppc/gdb/Makefile.in 2013-09-06 22:32:48.000000000 +0100
@@ -2192,10 +2192,10 @@
# Note that we put the dependencies into a .Tpo file, then move them
# into place if the compile succeeds. We need this because gcc does
# not atomically write the dependency output file.
@ -16,10 +16,10 @@ diff -Nbaur gdb-7.5.1/gdb/Makefile.in gdb-7.5.1-ppc/gdb/Makefile.in
@GMAKE_TRUE@else
@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \
@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC)
diff -Nbaur gdb-7.5.1/sim/ppc/Makefile.in gdb-7.5.1-ppc/sim/ppc/Makefile.in
--- gdb-7.5.1/sim/ppc/Makefile.in 2009-09-16 00:26:44.000000000 +0100
+++ gdb-7.5.1-ppc/sim/ppc/Makefile.in 2012-12-19 01:19:10.000000000 +0000
@@ -551,7 +551,7 @@
diff -Nbaur gdb-7.6.1/sim/ppc/Makefile.in gdb-7.6.1-ppc/sim/ppc/Makefile.in
--- gdb-7.6.1/sim/ppc/Makefile.in 2012-12-19 07:18:20.000000000 +0000
+++ gdb-7.6.1-ppc/sim/ppc/Makefile.in 2013-09-06 22:32:48.000000000 +0100
@@ -550,7 +550,7 @@
PACKAGE_OBJ = @sim_pk_obj@

View File

@ -40,10 +40,10 @@ case "$VERSION" in
toolchain=DEVKITARM
;;
"2" )
GCC_VER=4.7.2
GCC_VER=4.8.1
BINUTILS_VER=2.23.1
NEWLIB_VER=1.20.0
GDB_VER=7.5.1
NEWLIB_VER=2.0.0
GDB_VER=7.6.1
basedir='dkppc'
package=devkitPPC
target=powerpc-eabi