diff --git a/dkarm-eabi/patches/gcc-4.6.3.patch b/dkarm-eabi/patches/gcc-4.7.0.patch similarity index 62% rename from dkarm-eabi/patches/gcc-4.6.3.patch rename to dkarm-eabi/patches/gcc-4.7.0.patch index 24faa34..8b3ba04 100644 --- a/dkarm-eabi/patches/gcc-4.6.3.patch +++ b/dkarm-eabi/patches/gcc-4.7.0.patch @@ -1,7 +1,7 @@ -diff -Nbaur gcc-4.6.3/gcc/config/arm/t-arm-elf gcc-4.6.3-arm/gcc/config/arm/t-arm-elf ---- gcc-4.6.3/gcc/config/arm/t-arm-elf 2011-01-03 20:52:22.000000000 +0000 -+++ gcc-4.6.3-arm/gcc/config/arm/t-arm-elf 2012-03-19 12:16:39.000000000 +0000 -@@ -40,22 +40,44 @@ +diff -Nbaur gcc-4.7.0/gcc/config/arm/t-arm-elf gcc-4.7.0-arm/gcc/config/arm/t-arm-elf +--- gcc-4.7.0/gcc/config/arm/t-arm-elf 2011-11-02 15:23:48.000000000 +0000 ++++ gcc-4.7.0-arm/gcc/config/arm/t-arm-elf 2012-03-23 14:17:25.000000000 +0000 +@@ -26,22 +26,44 @@ #MULTILIB_DIRNAMES += fa526 fa626 fa606te fa626te fmp626 fa726te #MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=fa526 *mthumb*/*mcpu=fa626 @@ -58,7 +58,7 @@ diff -Nbaur gcc-4.6.3/gcc/config/arm/t-arm-elf gcc-4.6.3-arm/gcc/config/arm/t-ar #MULTILIB_EXCEPTIONS += *mcpu=fa526/*mfloat-abi=hard* #MULTILIB_EXCEPTIONS += *mcpu=fa626/*mfloat-abi=hard* -@@ -63,9 +85,9 @@ +@@ -49,9 +71,9 @@ # MULTILIB_DIRNAMES += ep9312 # MULTILIB_EXCEPTIONS += *mthumb/*mcpu=ep9312* # @@ -69,21 +69,21 @@ diff -Nbaur gcc-4.6.3/gcc/config/arm/t-arm-elf gcc-4.6.3-arm/gcc/config/arm/t-ar +MULTILIB_DIRNAMES += le be +MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle # - # MULTILIB_OPTIONS += mhard-float/msoft-float + # MULTILIB_OPTIONS += mfloat-abi=hard/mfloat-abi=soft # MULTILIB_DIRNAMES += fpu soft -diff -Nbaur gcc-4.6.3/gcc/config/arm/unknown-elf.h gcc-4.6.3-arm/gcc/config/arm/unknown-elf.h ---- gcc-4.6.3/gcc/config/arm/unknown-elf.h 2011-01-03 20:52:22.000000000 +0000 -+++ gcc-4.6.3-arm/gcc/config/arm/unknown-elf.h 2012-03-05 11:07:22.000000000 +0000 -@@ -97,4 +97,4 @@ +diff -Nbaur gcc-4.7.0/gcc/config/arm/unknown-elf.h gcc-4.7.0-arm/gcc/config/arm/unknown-elf.h +--- gcc-4.7.0/gcc/config/arm/unknown-elf.h 2011-03-31 13:13:13.000000000 +0100 ++++ gcc-4.7.0-arm/gcc/config/arm/unknown-elf.h 2012-03-23 14:17:25.000000000 +0000 +@@ -94,4 +94,4 @@ udivmoddi4, which will depend on the exception unwind routines, which will depend on abort, which is defined in libc. */ #undef LINK_GCC_C_SEQUENCE_SPEC -#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L --end-group" +#define LINK_GCC_C_SEQUENCE_SPEC "--start-group %G %L %(libgloss) --end-group" -diff -Nbaur gcc-4.6.3/gcc/gcc.c gcc-4.6.3-arm/gcc/gcc.c ---- gcc-4.6.3/gcc/gcc.c 2011-02-23 02:04:43.000000000 +0000 -+++ gcc-4.6.3-arm/gcc/gcc.c 2012-03-05 11:07:22.000000000 +0000 -@@ -547,6 +547,11 @@ +diff -Nbaur gcc-4.7.0/gcc/gcc.c gcc-4.7.0-arm/gcc/gcc.c +--- gcc-4.7.0/gcc/gcc.c 2012-02-28 17:31:38.000000000 +0000 ++++ gcc-4.7.0-arm/gcc/gcc.c 2012-03-23 14:17:25.000000000 +0000 +@@ -548,6 +548,11 @@ #endif #endif @@ -95,7 +95,7 @@ diff -Nbaur gcc-4.6.3/gcc/gcc.c gcc-4.6.3-arm/gcc/gcc.c /* config.h can define STARTFILE_SPEC to override the default crt0 files. */ #ifndef STARTFILE_SPEC #define STARTFILE_SPEC \ -@@ -702,6 +707,7 @@ +@@ -717,6 +722,7 @@ static const char *mflib_spec = MFLIB_SPEC; static const char *link_gomp_spec = ""; static const char *libgcc_spec = LIBGCC_SPEC; @@ -103,7 +103,7 @@ diff -Nbaur gcc-4.6.3/gcc/gcc.c gcc-4.6.3-arm/gcc/gcc.c static const char *endfile_spec = ENDFILE_SPEC; static const char *startfile_spec = STARTFILE_SPEC; static const char *linker_name_spec = LINKER_NAME; -@@ -1180,6 +1186,7 @@ +@@ -1201,6 +1207,7 @@ INIT_STATIC_SPEC ("mflib", &mflib_spec), INIT_STATIC_SPEC ("link_gomp", &link_gomp_spec), INIT_STATIC_SPEC ("libgcc", &libgcc_spec), @@ -111,26 +111,10 @@ diff -Nbaur gcc-4.6.3/gcc/gcc.c gcc-4.6.3-arm/gcc/gcc.c INIT_STATIC_SPEC ("startfile", &startfile_spec), INIT_STATIC_SPEC ("cross_compile", &cross_compile), INIT_STATIC_SPEC ("version", &compiler_version), -diff -Nbaur gcc-4.6.3/gcc/sched-deps.c gcc-4.6.3-arm/gcc/sched-deps.c ---- gcc-4.6.3/gcc/sched-deps.c 2011-12-08 13:33:58.000000000 +0000 -+++ gcc-4.6.3-arm/gcc/sched-deps.c 2012-03-05 11:07:22.000000000 +0000 -@@ -2271,6 +2271,12 @@ - FIRST_STACK_REG + nregs); - } - #endif -+ -+ /* If the stack pointer is being modified, flush out all memory -+ references as they may become invalid if moved across the -+ stack adjustment. */ -+ if (dest == stack_pointer_rtx) -+ flush_pending_lists (deps, insn, true, true); - } - else if (MEM_P (dest)) - { -diff -Nbaur gcc-4.6.3/libcpp/Makefile.in gcc-4.6.3-arm/libcpp/Makefile.in ---- gcc-4.6.3/libcpp/Makefile.in 2012-03-01 12:03:46.000000000 +0000 -+++ gcc-4.6.3-arm/libcpp/Makefile.in 2012-03-05 11:07:22.000000000 +0000 -@@ -212,8 +212,7 @@ +diff -Nbaur gcc-4.7.0/libcpp/Makefile.in gcc-4.7.0-arm/libcpp/Makefile.in +--- gcc-4.7.0/libcpp/Makefile.in 2012-03-22 07:37:39.000000000 +0000 ++++ gcc-4.7.0-arm/libcpp/Makefile.in 2012-03-23 14:17:25.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. @@ -140,27 +124,27 @@ diff -Nbaur gcc-4.6.3/libcpp/Makefile.in gcc-4.6.3-arm/libcpp/Makefile.in else COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \ $(depcomp) $(COMPILE.base) -diff -Nbaur gcc-4.6.3/libgcc/Makefile.in gcc-4.6.3-arm/libgcc/Makefile.in ---- gcc-4.6.3/libgcc/Makefile.in 2011-01-26 04:19:58.000000000 +0000 -+++ gcc-4.6.3-arm/libgcc/Makefile.in 2012-03-05 11:07:22.000000000 +0000 -@@ -411,14 +411,14 @@ +diff -Nbaur gcc-4.7.0/libgcc/Makefile.in gcc-4.7.0-arm/libgcc/Makefile.in +--- gcc-4.7.0/libgcc/Makefile.in 2011-11-22 03:01:02.000000000 +0000 ++++ gcc-4.7.0-arm/libgcc/Makefile.in 2012-03-23 14:20:39.000000000 +0000 +@@ -500,14 +500,14 @@ lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS)) - $(lib2-divmod-o): %$(objext): $(gcc_srcdir)/libgcc2.c - $(gcc_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ + $(lib2-divmod-o): %$(objext): $(srcdir)/libgcc2.c + $(gcc_compile) -DL$* -c $< \ - -fexceptions -fnon-call-exceptions $(vis_hide) -+ -fno-exceptions -fno-non-call-exceptions $(vis_hide) ++ -fno-exceptions -fnon-call-exceptions $(vis_hide) libgcc-objects += $(lib2-divmod-o) ifeq ($(enable_shared),yes) lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS)) - $(lib2-divmod-s-o): %_s$(objext): $(gcc_srcdir)/libgcc2.c - $(gcc_s_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ + $(lib2-divmod-s-o): %_s$(objext): $(srcdir)/libgcc2.c + $(gcc_s_compile) -DL$* -c $< \ - -fexceptions -fnon-call-exceptions -+ -fno-exceptions -fno-non-call-exceptions ++ -fno-exceptions -fnon-call-exceptions libgcc-s-objects += $(lib2-divmod-s-o) endif -@@ -706,7 +706,7 @@ +@@ -810,7 +810,7 @@ # libgcc_eh.a, only LIB2ADDEH matters. If we do, only LIB2ADDEHSTATIC and # LIB2ADDEHSHARED matter. (Usually all three are identical.) @@ -169,12 +153,55 @@ diff -Nbaur gcc-4.6.3/libgcc/Makefile.in gcc-4.6.3-arm/libgcc/Makefile.in ifeq ($(enable_shared),yes) -@@ -728,7 +728,7 @@ - - # Build LIBUNWIND. - --c_flags := -fexceptions -+c_flags := -fno-exceptions - - libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND)))) - +diff -Nbaur gcc-4.7.0/libgcc/Makefile.in.rej gcc-4.7.0-arm/libgcc/Makefile.in.rej +--- gcc-4.7.0/libgcc/Makefile.in.rej 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-4.7.0-arm/libgcc/Makefile.in.rej 2012-03-23 14:17:25.000000000 +0000 +@@ -0,0 +1,48 @@ ++*************** ++*** 411,424 **** ++ lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS)) ++ $(lib2-divmod-o): %$(objext): $(gcc_srcdir)/libgcc2.c ++ $(gcc_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ ++- -fexceptions -fnon-call-exceptions $(vis_hide) ++ libgcc-objects += $(lib2-divmod-o) ++ ++ ifeq ($(enable_shared),yes) ++ lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS)) ++ $(lib2-divmod-s-o): %_s$(objext): $(gcc_srcdir)/libgcc2.c ++ $(gcc_s_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ ++- -fexceptions -fnon-call-exceptions ++ libgcc-s-objects += $(lib2-divmod-s-o) ++ endif ++ ++--- 411,424 ---- ++ lib2-divmod-o = $(patsubst %,%$(objext),$(LIB2_DIVMOD_FUNCS)) ++ $(lib2-divmod-o): %$(objext): $(gcc_srcdir)/libgcc2.c ++ $(gcc_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ +++ -fno-exceptions -fno-non-call-exceptions $(vis_hide) ++ libgcc-objects += $(lib2-divmod-o) ++ ++ ifeq ($(enable_shared),yes) ++ lib2-divmod-s-o = $(patsubst %,%_s$(objext),$(LIB2_DIVMOD_FUNCS)) ++ $(lib2-divmod-s-o): %_s$(objext): $(gcc_srcdir)/libgcc2.c ++ $(gcc_s_compile) -DL$* -c $(gcc_srcdir)/libgcc2.c \ +++ -fno-exceptions -fno-non-call-exceptions ++ libgcc-s-objects += $(lib2-divmod-s-o) ++ endif ++ ++*************** ++*** 832,838 **** ++ ++ # Build LIBUNWIND. ++ ++- c_flags := -fexceptions ++ ++ libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND)))) ++ ++--- 832,838 ---- ++ ++ # Build LIBUNWIND. ++ +++ c_flags := -fno-exceptions ++ ++ libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND)))) ++ diff --git a/dkppc/patches/gcc-4.6.2.patch b/dkppc/patches/gcc-4.7.0.patch similarity index 85% rename from dkppc/patches/gcc-4.6.2.patch rename to dkppc/patches/gcc-4.7.0.patch index a507d65..00dea62 100644 --- a/dkppc/patches/gcc-4.6.2.patch +++ b/dkppc/patches/gcc-4.7.0.patch @@ -1,6 +1,6 @@ -diff -Nbaur gcc-4.6.2/gcc/config/rs6000/rs6000.h gcc-4.6.2-ppc/gcc/config/rs6000/rs6000.h ---- gcc-4.6.2/gcc/config/rs6000/rs6000.h 2011-07-27 19:17:15.000000000 +0100 -+++ gcc-4.6.2-ppc/gcc/config/rs6000/rs6000.h 2012-02-25 12:01:45.000000000 +0000 +diff -Nbaur gcc-4.7.0/gcc/config/rs6000/rs6000.h gcc-4.7.0-ppc/gcc/config/rs6000/rs6000.h +--- gcc-4.7.0/gcc/config/rs6000/rs6000.h 2011-11-29 17:33:05.000000000 +0000 ++++ gcc-4.7.0-ppc/gcc/config/rs6000/rs6000.h 2012-03-23 15:09:12.000000000 +0000 @@ -200,6 +200,7 @@ { "asm_cpu_476", ASM_CPU_476_SPEC }, \ SUBTARGET_EXTRA_SPECS @@ -18,10 +18,10 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/rs6000.h gcc-4.6.2-ppc/gcc/config/rs6000 #ifndef CC1_CPU_SPEC #ifdef HAVE_LOCAL_CPU_DETECT -diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/sysv4.h ---- gcc-4.6.2/gcc/config/rs6000/sysv4.h 2011-03-07 07:50:23.000000000 +0000 -+++ gcc-4.6.2-ppc/gcc/config/rs6000/sysv4.h 2012-02-25 12:01:45.000000000 +0000 -@@ -603,7 +603,11 @@ +diff -Nbaur gcc-4.7.0/gcc/config/rs6000/sysv4.h gcc-4.7.0-ppc/gcc/config/rs6000/sysv4.h +--- gcc-4.7.0/gcc/config/rs6000/sysv4.h 2011-04-11 19:46:05.000000000 +0100 ++++ gcc-4.7.0-ppc/gcc/config/rs6000/sysv4.h 2012-03-23 15:09:12.000000000 +0000 +@@ -594,7 +594,11 @@ /* Default starting address if specified. */ #define LINK_START_SPEC "\ @@ -34,7 +34,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(link_start_yellowknife) ; \ mmvme : %(link_start_mvme) ; \ msim : %(link_start_sim) ; \ -@@ -641,7 +645,8 @@ +@@ -631,7 +635,8 @@ /* Any specific OS flags. */ #define LINK_OS_SPEC "\ @@ -44,7 +44,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(link_os_yellowknife) ; \ mmvme : %(link_os_mvme) ; \ msim : %(link_os_sim) ; \ -@@ -660,7 +665,10 @@ +@@ -649,7 +654,10 @@ /* Override rs6000.h definition. */ #undef CPP_SPEC #define CPP_SPEC "%{posix: -D_POSIX_SOURCE} \ @@ -56,7 +56,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(cpp_os_yellowknife) ; \ mmvme : %(cpp_os_mvme) ; \ msim : %(cpp_os_sim) ; \ -@@ -675,7 +683,10 @@ +@@ -663,7 +671,10 @@ #undef STARTFILE_SPEC #define STARTFILE_SPEC "\ @@ -68,7 +68,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(startfile_yellowknife) ; \ mmvme : %(startfile_mvme) ; \ msim : %(startfile_sim) ; \ -@@ -686,11 +697,12 @@ +@@ -673,11 +684,12 @@ mcall-openbsd: %(startfile_openbsd) ; \ : %(startfile_default) }" @@ -83,7 +83,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(lib_yellowknife) ; \ mmvme : %(lib_mvme) ; \ msim : %(lib_sim) ; \ -@@ -701,11 +713,12 @@ +@@ -687,11 +699,12 @@ mcall-openbsd: %(lib_openbsd) ; \ : %(lib_default) }" @@ -98,7 +98,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ myellowknife : %(endfile_yellowknife) ; \ mmvme : %(endfile_mvme) ; \ msim : %(endfile_sim) ; \ -@@ -722,16 +735,27 @@ +@@ -707,16 +720,27 @@ /* Motorola ADS support. */ #define LIB_ADS_SPEC "--start-group -lads -lc --end-group" @@ -126,7 +126,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ /* Motorola Yellowknife support. */ #define LIB_YELLOWKNIFE_SPEC "--start-group -lyk -lc --end-group" -@@ -926,6 +950,7 @@ +@@ -886,6 +910,7 @@ #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ { "crtsavres_default", CRTSAVRES_DEFAULT_SPEC }, \ @@ -134,7 +134,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ { "lib_ads", LIB_ADS_SPEC }, \ { "lib_yellowknife", LIB_YELLOWKNIFE_SPEC }, \ { "lib_mvme", LIB_MVME_SPEC }, \ -@@ -936,6 +961,7 @@ +@@ -895,6 +920,7 @@ { "lib_netbsd", LIB_NETBSD_SPEC }, \ { "lib_openbsd", LIB_OPENBSD_SPEC }, \ { "lib_default", LIB_DEFAULT_SPEC }, \ @@ -142,7 +142,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ { "startfile_ads", STARTFILE_ADS_SPEC }, \ { "startfile_yellowknife", STARTFILE_YELLOWKNIFE_SPEC }, \ { "startfile_mvme", STARTFILE_MVME_SPEC }, \ -@@ -946,6 +972,7 @@ +@@ -904,6 +930,7 @@ { "startfile_netbsd", STARTFILE_NETBSD_SPEC }, \ { "startfile_openbsd", STARTFILE_OPENBSD_SPEC }, \ { "startfile_default", STARTFILE_DEFAULT_SPEC }, \ @@ -150,7 +150,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.2-ppc/gcc/config/rs6000/ { "endfile_ads", ENDFILE_ADS_SPEC }, \ { "endfile_yellowknife", ENDFILE_YELLOWKNIFE_SPEC }, \ { "endfile_mvme", ENDFILE_MVME_SPEC }, \ -@@ -959,7 +986,11 @@ +@@ -916,7 +943,11 @@ { "link_shlib", LINK_SHLIB_SPEC }, \ { "link_target", LINK_TARGET_SPEC }, \ { "link_start", LINK_START_SPEC }, \ @@ -162,7 +162,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.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 }, \ -@@ -970,6 +1001,7 @@ +@@ -926,6 +957,7 @@ { "link_start_openbsd", LINK_START_OPENBSD_SPEC }, \ { "link_start_default", LINK_START_DEFAULT_SPEC }, \ { "link_os", LINK_OS_SPEC }, \ @@ -170,7 +170,7 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.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 }, \ -@@ -984,6 +1016,9 @@ +@@ -939,6 +971,9 @@ { "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \ { "cc1_endian_default", CC1_ENDIAN_DEFAULT_SPEC }, \ { "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \ @@ -180,10 +180,10 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.h gcc-4.6.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.6.2/gcc/config/rs6000/sysv4.opt gcc-4.6.2-ppc/gcc/config/rs6000/sysv4.opt ---- gcc-4.6.2/gcc/config/rs6000/sysv4.opt 2011-01-03 20:52:22.000000000 +0000 -+++ gcc-4.6.2-ppc/gcc/config/rs6000/sysv4.opt 2012-02-25 12:01:45.000000000 +0000 -@@ -108,6 +108,26 @@ +diff -Nbaur gcc-4.7.0/gcc/config/rs6000/sysv4.opt gcc-4.7.0-ppc/gcc/config/rs6000/sysv4.opt +--- gcc-4.7.0/gcc/config/rs6000/sysv4.opt 2011-05-05 15:59:55.000000000 +0100 ++++ gcc-4.7.0-ppc/gcc/config/rs6000/sysv4.opt 2012-03-23 15:09:12.000000000 +0000 +@@ -121,6 +121,26 @@ Target RejectNegative Link with libads.a, libc.a and crt0.o @@ -210,22 +210,22 @@ diff -Nbaur gcc-4.6.2/gcc/config/rs6000/sysv4.opt gcc-4.6.2-ppc/gcc/config/rs600 myellowknife Target RejectNegative Link with libyk.a, libc.a and crt0.o -diff -Nbaur gcc-4.6.2/gcc/config.gcc gcc-4.6.2-ppc/gcc/config.gcc ---- gcc-4.6.2/gcc/config.gcc 2011-07-22 17:44:50.000000000 +0100 -+++ gcc-4.6.2-ppc/gcc/config.gcc 2012-02-25 12:01:45.000000000 +0000 -@@ -2133,7 +2133,7 @@ +diff -Nbaur gcc-4.7.0/gcc/config.gcc gcc-4.7.0-ppc/gcc/config.gcc +--- gcc-4.7.0/gcc/config.gcc 2012-03-05 10:43:22.000000000 +0000 ++++ gcc-4.7.0-ppc/gcc/config.gcc 2012-03-23 15:09:12.000000000 +0000 +@@ -1999,7 +1999,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-fprules-fpbit rs6000/t-ppcgas rs6000/t-ppccomm" + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" use_gcc_stdint=wrap -diff -Nbaur gcc-4.6.2/libcpp/Makefile.in gcc-4.6.2-ppc/libcpp/Makefile.in ---- gcc-4.6.2/libcpp/Makefile.in 2011-10-26 10:30:24.000000000 +0100 -+++ gcc-4.6.2-ppc/libcpp/Makefile.in 2012-02-25 12:01:45.000000000 +0000 -@@ -212,8 +212,7 @@ +diff -Nbaur gcc-4.7.0/libcpp/Makefile.in gcc-4.7.0-ppc/libcpp/Makefile.in +--- gcc-4.7.0/libcpp/Makefile.in 2012-03-22 07:37:39.000000000 +0000 ++++ gcc-4.7.0-ppc/libcpp/Makefile.in 2012-03-23 15:09:12.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. diff --git a/select_toolchain.sh b/select_toolchain.sh index 3da3e62..15bfff1 100644 --- a/select_toolchain.sh +++ b/select_toolchain.sh @@ -1,4 +1,5 @@ #!/bin/bash +VERSION=0 while [ $VERSION -eq 0 ] do echo @@ -17,35 +18,32 @@ done case "$VERSION" in "1" ) - GCC_VER=4.6.3 + GCC_VER=4.7.0 BINUTILS_VER=2.22 NEWLIB_VER=1.20.0 GDB_VER=7.4 basedir='dkarm-eabi' package=devkitARM - builddir=arm-eabi target=arm-eabi toolchain=DEVKITARM ;; "2" ) - GCC_VER=4.6.2 + GCC_VER=4.7.0 BINUTILS_VER=2.22 NEWLIB_VER=1.20.0 GDB_VER=7.4 basedir='dkppc' package=devkitPPC - builddir=powerpc-eabi target=powerpc-eabi toolchain=DEVKITPPC ;; "3" ) - GCC_VER=4.6.2 + GCC_VER=4.6.3 BINUTILS_VER=2.22 NEWLIB_VER=1.20.0 GDB_VER=7.4 basedir='dkpsp' package=devkitPSP - builddir=psp target=psp toolchain=DEVKITPSP ;;