upgrade to gcc 4.9.2

This commit is contained in:
Dave Murphy 2015-02-01 23:35:49 +00:00
parent e257f22430
commit c8d5125ac3
3 changed files with 45 additions and 45 deletions

View File

@ -1,7 +1,7 @@
diff -Nbaur gcc-4.8.2/gcc/config/rs6000/rs6000.h gcc-4.8.2-ppc/gcc/config/rs6000/rs6000.h
--- gcc-4.8.2/gcc/config/rs6000/rs6000.h 2013-06-19 02:18:38.000000000 +0100
+++ gcc-4.8.2-ppc/gcc/config/rs6000/rs6000.h 2014-04-01 14:13:11.000000000 +0100
@@ -195,6 +195,7 @@
diff -NBaur gcc-4.9.2/gcc/config/rs6000/rs6000.h gcc-4.9.2-ppc/gcc/config/rs6000/rs6000.h
--- gcc-4.9.2/gcc/config/rs6000/rs6000.h 2014-08-12 16:28:41.000000000 +0100
+++ gcc-4.9.2-ppc/gcc/config/rs6000/rs6000.h 2015-02-01 10:17:05.198220011 +0000
@@ -196,6 +196,7 @@
{ "asm_cpu_476", ASM_CPU_476_SPEC }, \
SUBTARGET_EXTRA_SPECS
@ -9,7 +9,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/rs6000.h gcc-4.8.2-ppc/gcc/config/rs6000
/* -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. */
@@ -209,6 +210,8 @@
@@ -210,6 +211,8 @@
#else
#define ASM_CPU_NATIVE_SPEC "%(asm_default)"
#endif
@ -18,10 +18,10 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/rs6000.h gcc-4.8.2-ppc/gcc/config/rs6000
#ifndef CC1_CPU_SPEC
#ifdef HAVE_LOCAL_CPU_DETECT
diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.h
--- gcc-4.8.2/gcc/config/rs6000/sysv4.h 2013-06-19 02:18:38.000000000 +0100
+++ gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.h 2014-04-01 14:13:11.000000000 +0100
@@ -570,7 +570,11 @@
diff -NBaur gcc-4.9.2/gcc/config/rs6000/sysv4.h gcc-4.9.2-ppc/gcc/config/rs6000/sysv4.h
--- gcc-4.9.2/gcc/config/rs6000/sysv4.h 2014-07-24 18:25:19.000000000 +0100
+++ gcc-4.9.2-ppc/gcc/config/rs6000/sysv4.h 2015-02-01 10:17:05.198220011 +0000
@@ -555,7 +555,11 @@
/* Default starting address if specified. */
#define LINK_START_SPEC "\
@ -34,7 +34,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(link_start_yellowknife) ; \
mmvme : %(link_start_mvme) ; \
msim : %(link_start_sim) ; \
@@ -604,7 +608,8 @@
@@ -589,7 +593,8 @@
/* Any specific OS flags. */
#define LINK_OS_SPEC "\
@ -44,7 +44,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(link_os_yellowknife) ; \
mmvme : %(link_os_mvme) ; \
msim : %(link_os_sim) ; \
@@ -622,7 +627,10 @@
@@ -607,7 +612,10 @@
/* Override rs6000.h definition. */
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \
@ -56,7 +56,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(cpp_os_yellowknife) ; \
mmvme : %(cpp_os_mvme) ; \
msim : %(cpp_os_sim) ; \
@@ -636,7 +644,10 @@
@@ -621,7 +629,10 @@
#undef STARTFILE_SPEC
#define STARTFILE_SPEC "\
@ -68,7 +68,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(startfile_yellowknife) ; \
mmvme : %(startfile_mvme) ; \
msim : %(startfile_sim) ; \
@@ -646,11 +657,12 @@
@@ -631,11 +642,12 @@
mcall-openbsd: %(startfile_openbsd) ; \
: %(startfile_default) }"
@ -83,7 +83,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(lib_yellowknife) ; \
mmvme : %(lib_mvme) ; \
msim : %(lib_sim) ; \
@@ -660,11 +672,12 @@
@@ -645,11 +657,12 @@
mcall-openbsd: %(lib_openbsd) ; \
: %(lib_default) }"
@ -98,7 +98,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
myellowknife : %(endfile_yellowknife) ; \
mmvme : %(endfile_mvme) ; \
msim : %(endfile_sim) ; \
@@ -680,16 +693,27 @@
@@ -665,16 +678,27 @@
/* Motorola ADS support. */
#define LIB_ADS_SPEC "--start-group -lads -lc --end-group"
@ -126,7 +126,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
/* Motorola Yellowknife support. */
#define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group"
@@ -859,6 +883,7 @@
@@ -844,6 +868,7 @@
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \
@ -134,7 +134,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
{ "lib_ads", LIB_ADS_SPEC }, \
{ "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \
{ "lib_mvme", LIB_MVME_SPEC }, \
@@ -868,6 +893,7 @@
@@ -853,6 +878,7 @@
{ "lib_netbsd", LIB_NETBSD_SPEC }, \
{ "lib_openbsd", LIB_OPENBSD_SPEC }, \
{ "lib_default", LIB_DEFAULT_SPEC }, \
@ -142,7 +142,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
{ "startfile_ads", STARTFILE_ADS_SPEC }, \
{ "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \
{ "startfile_mvme", STARTFILE_MVME_SPEC }, \
@@ -877,6 +903,7 @@
@@ -862,6 +888,7 @@
{ "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \
{ "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \
{ "startfile_default", STARTFILE_DEFAULT_SPEC }, \
@ -150,7 +150,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
{ "endfile_ads", ENDFILE_ADS_SPEC }, \
{ "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \
{ "endfile_mvme", ENDFILE_MVME_SPEC }, \
@@ -889,7 +916,11 @@
@@ -874,7 +901,11 @@
{ "link_shlib", LINK_SHLIB_SPEC }, \
{ "link_target", LINK_TARGET_SPEC }, \
{ "link_start", LINK_START_SPEC }, \
@ -162,7 +162,7 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
{ "link_start_yellowknife", LINK_START_YELLOWKNIFE_SPEC }, \
{ "link_start_mvme", LINK_START_MVME_SPEC }, \
{ "link_start_sim", LINK_START_SIM_SPEC }, \
@@ -899,6 +930,7 @@
@@ -884,6 +915,7 @@
{ "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \
{ "link_start_default", LINK_START_DEFAULT_SPEC }, \
{ "link_os", LINK_OS_SPEC }, \
@ -170,9 +170,9 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-ppc/gcc/config/rs6000/
{ "link_os_ads", LINK_OS_ADS_SPEC }, \
{ "link_os_yellowknife", LINK_OS_YELLOWKNIFE_SPEC }, \
{ "link_os_mvme", LINK_OS_MVME_SPEC }, \
@@ -912,6 +944,9 @@
{ "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \
{ "cc1_endian_default", CC1_ENDIAN_DEFAULT_SPEC }, \
@@ -894,6 +926,9 @@
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
{ "link_os_default", LINK_OS_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 }, \
@ -180,9 +180,9 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.h gcc-4.8.2-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.8.2/gcc/config/rs6000/sysv4.opt gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.opt
--- gcc-4.8.2/gcc/config/rs6000/sysv4.opt 2013-01-10 20:38:27.000000000 +0000
+++ gcc-4.8.2-ppc/gcc/config/rs6000/sysv4.opt 2014-04-01 14:13:11.000000000 +0100
diff -NBaur gcc-4.9.2/gcc/config/rs6000/sysv4.opt gcc-4.9.2-ppc/gcc/config/rs6000/sysv4.opt
--- gcc-4.9.2/gcc/config/rs6000/sysv4.opt 2014-01-02 22:23:26.000000000 +0000
+++ gcc-4.9.2-ppc/gcc/config/rs6000/sysv4.opt 2015-02-01 10:17:05.198220011 +0000
@@ -120,6 +120,26 @@
Target RejectNegative
Link with libads.a, libc.a and crt0.o
@ -210,10 +210,10 @@ diff -Nbaur gcc-4.8.2/gcc/config/rs6000/sysv4.opt gcc-4.8.2-ppc/gcc/config/rs600
myellowknife
Target RejectNegative
Link with libyk.a, libc.a and crt0.o
diff -Nbaur gcc-4.8.2/gcc/config.gcc gcc-4.8.2-ppc/gcc/config.gcc
--- gcc-4.8.2/gcc/config.gcc 2013-10-03 01:47:24.000000000 +0100
+++ gcc-4.8.2-ppc/gcc/config.gcc 2014-04-01 14:13:11.000000000 +0100
@@ -2057,7 +2057,7 @@
diff -NBaur gcc-4.9.2/gcc/config.gcc gcc-4.9.2-ppc/gcc/config.gcc
--- gcc-4.9.2/gcc/config.gcc 2014-09-17 15:16:02.000000000 +0100
+++ gcc-4.9.2-ppc/gcc/config.gcc 2015-02-01 10:17:05.206220108 +0000
@@ -2260,7 +2260,7 @@
use_gcc_stdint=wrap
;;
powerpc-*-eabi*)
@ -222,10 +222,10 @@ diff -Nbaur gcc-4.8.2/gcc/config.gcc gcc-4.8.2-ppc/gcc/config.gcc
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.8.2/libcpp/Makefile.in gcc-4.8.2-ppc/libcpp/Makefile.in
--- gcc-4.8.2/libcpp/Makefile.in 2013-10-16 08:27:58.000000000 +0100
+++ gcc-4.8.2-ppc/libcpp/Makefile.in 2014-04-01 14:13:11.000000000 +0100
@@ -207,8 +207,7 @@
diff -NBaur gcc-4.9.2/libcpp/Makefile.in gcc-4.9.2-ppc/libcpp/Makefile.in
--- gcc-4.9.2/libcpp/Makefile.in 2014-10-30 08:28:58.000000000 +0000
+++ gcc-4.9.2-ppc/libcpp/Makefile.in 2015-02-01 10:17:05.206220108 +0000
@@ -208,8 +208,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.
@ -235,9 +235,9 @@ diff -Nbaur gcc-4.8.2/libcpp/Makefile.in gcc-4.8.2-ppc/libcpp/Makefile.in
else
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
$(depcomp) $(COMPILE.base)
diff -Nbaur gcc-4.8.2/libgcc/config/rs6000/crtrestvr.S gcc-4.8.2-ppc/libgcc/config/rs6000/crtrestvr.S
--- gcc-4.8.2/libgcc/config/rs6000/crtrestvr.S 2013-02-04 19:06:20.000000000 +0000
+++ gcc-4.8.2-ppc/libgcc/config/rs6000/crtrestvr.S 2014-04-01 14:13:11.000000000 +0100
diff -NBaur gcc-4.9.2/libgcc/config/rs6000/crtrestvr.S gcc-4.9.2-ppc/libgcc/config/rs6000/crtrestvr.S
--- gcc-4.9.2/libgcc/config/rs6000/crtrestvr.S 2014-01-02 22:25:22.000000000 +0000
+++ gcc-4.9.2-ppc/libgcc/config/rs6000/crtrestvr.S 2015-02-01 10:17:05.206220108 +0000
@@ -24,7 +24,7 @@
/* On PowerPC64 Linux, these functions are provided by the linker. */
@ -252,9 +252,9 @@ diff -Nbaur gcc-4.8.2/libgcc/config/rs6000/crtrestvr.S gcc-4.8.2-ppc/libgcc/conf
#endif
+#endif
diff -Nbaur gcc-4.8.2/libgcc/config/rs6000/crtsavevr.S gcc-4.8.2-ppc/libgcc/config/rs6000/crtsavevr.S
--- gcc-4.8.2/libgcc/config/rs6000/crtsavevr.S 2013-02-04 19:06:20.000000000 +0000
+++ gcc-4.8.2-ppc/libgcc/config/rs6000/crtsavevr.S 2014-04-01 14:13:11.000000000 +0100
diff -NBaur gcc-4.9.2/libgcc/config/rs6000/crtsavevr.S gcc-4.9.2-ppc/libgcc/config/rs6000/crtsavevr.S
--- gcc-4.9.2/libgcc/config/rs6000/crtsavevr.S 2014-01-02 22:25:22.000000000 +0000
+++ gcc-4.9.2-ppc/libgcc/config/rs6000/crtsavevr.S 2015-02-01 10:17:05.206220108 +0000
@@ -24,6 +24,7 @@
/* On PowerPC64 Linux, these functions are provided by the linker. */
@ -268,9 +268,9 @@ diff -Nbaur gcc-4.8.2/libgcc/config/rs6000/crtsavevr.S gcc-4.8.2-ppc/libgcc/conf
#endif
+#endif
diff -Nbaur gcc-4.8.2/libgcc/crtstuff.c gcc-4.8.2-ppc/libgcc/crtstuff.c
--- gcc-4.8.2/libgcc/crtstuff.c 2013-02-04 19:06:20.000000000 +0000
+++ gcc-4.8.2-ppc/libgcc/crtstuff.c 2014-04-01 14:13:11.000000000 +0100
diff -NBaur gcc-4.9.2/libgcc/crtstuff.c gcc-4.9.2-ppc/libgcc/crtstuff.c
--- gcc-4.9.2/libgcc/crtstuff.c 2014-03-10 18:31:20.000000000 +0000
+++ gcc-4.9.2-ppc/libgcc/crtstuff.c 2015-02-01 10:17:05.206220108 +0000
@@ -47,7 +47,7 @@
/* Target machine header files require this define. */

View File

@ -87,7 +87,7 @@ then
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
--prefix=$prefix\
--disable-dependency-tracking \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 27" \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 28" \
$CROSS_PARAMS \
|| { echo "Error configuring gcc stage 1"; exit 1; }
touch configured-gcc

View File

@ -40,7 +40,7 @@ case "$VERSION" in
toolchain=DEVKITARM
;;
"2" )
GCC_VER=4.8.2
GCC_VER=4.9.2
BINUTILS_VER=2.25
NEWLIB_VER=2.0.0
GDB_VER=7.7