changes for devkitPPC release 19

This commit is contained in:
Dave Murphy 2009-10-20 10:35:43 +00:00
parent 36b24b69b6
commit 555be89883
5 changed files with 53 additions and 77 deletions

View File

@ -2,7 +2,7 @@
#---------------------------------------------------------------------------------
# Build scripts for
# devkitARM release 27
# devkitPPC release 18
# devkitPPC release 19
# devkitPSP release 13
#---------------------------------------------------------------------------------
@ -105,8 +105,8 @@ case "$VERSION" in
toolchain=DEVKITARM
;;
"2" )
GCC_VER=4.4.1
BINUTILS_VER=2.19.1
GCC_VER=4.4.2
BINUTILS_VER=2.20
NEWLIB_VER=1.17.1
GDB_VER=7.0
basedir='dkppc'
@ -160,7 +160,7 @@ fi
while [ $DOWNLOAD -eq 0 ]
do
echo
echo "The installation requires binutils-$BINUTILS_VER, gcc-$GCC_VER and newlib-$NEWLIB_VER. Please select an option:"
echo "The installation requires binutils-$BINUTILS_VER, gcc-$GCC_VER, newlib-$NEWLIB_VER and gdb-$GDB_VER. Please select an option:"
echo
echo "1: I have already downloaded the source packages"
echo "2: Download the packages for me (requires curl or wget)"

View File

@ -1,49 +0,0 @@
--- binutils-2.19.1/gas/config/tc-ppc.c 2008-08-02 05:38:50.000000000 +0100
+++ binutils-2.19.1-ppc/gas/config/tc-ppc.c 2009-05-09 12:26:17.000000000 +0100
@@ -850,6 +850,9 @@
/* Do all PPC750s have paired single ops? */
else if (strcmp (arg, "750cl") == 0)
ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_PPCPS;
+ /* PowerPC Gekko */
+ else if (strcmp (arg, "gekko") == 0)
+ ppc_cpu = PPC_OPCODE_CLASSIC | PPC_OPCODE_PPC | PPC_OPCODE_32 | PPC_OPCODE_PPCPS;
else if (strcmp (arg, "403") == 0)
ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC
| PPC_OPCODE_403 | PPC_OPCODE_32);
@@ -1145,7 +1148,8 @@
-m464 generate code for PowerPC 464\n\
-m7400, -m7410, -m7450, -m7455\n\
generate code for PowerPC 7400/7410/7450/7455\n\
--m750cl generate code for PowerPC 750cl\n"));
+-m750cl generate code for PowerPC 750cl\n\
+-mgekko generate code for PowerPC Gekko\n"));
fprintf (stream, _("\
-mppc64, -m620 generate code for PowerPC 620/625/630\n\
-mppc64bridge generate code for PowerPC 64, including bridge insns\n\
@@ -1656,7 +1660,7 @@
errmsg = NULL;
insn = (*operand->insert) (insn, (long) val, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad_where (file, line, errmsg);
+ as_bad_where (file, line, "%s", errmsg);
}
else
insn |= ((long) val & operand->bitm) << operand->shift;
@@ -2387,7 +2391,7 @@
{
insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
continue;
}
@@ -2400,7 +2404,7 @@
{
insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
}
if ((operand->flags & PPC_OPERAND_NEXT) != 0)
next_opindex = *opindex_ptr + 1;

View File

@ -0,0 +1,25 @@
diff -Nbaur binutils-2.20/gas/config/tc-ppc.c binutils-2.20-ppc/gas/config/tc-ppc.c
--- binutils-2.20/gas/config/tc-ppc.c 2009-10-06 11:57:55.000000000 +0100
+++ binutils-2.20-ppc/gas/config/tc-ppc.c 2009-10-20 09:15:36.000000000 +0100
@@ -1191,7 +1191,8 @@
-m476 generate code for PowerPC 476\n\
-m7400, -m7410, -m7450, -m7455\n\
generate code for PowerPC 7400/7410/7450/7455\n\
--m750cl generate code for PowerPC 750cl\n"));
+-m750cl generate code for PowerPC 750cl\n\
+-mgekko generate code for PowerPC Gekko\n"));
fprintf (stream, _("\
-mppc64, -m620 generate code for PowerPC 620/625/630\n\
-mppc64bridge generate code for PowerPC 64, including bridge insns\n\
diff -Nbaur binutils-2.20/opcodes/ppc-dis.c binutils-2.20-ppc/opcodes/ppc-dis.c
--- binutils-2.20/opcodes/ppc-dis.c 2009-10-06 11:57:55.000000000 +0100
+++ binutils-2.20-ppc/opcodes/ppc-dis.c 2009-10-20 04:00:33.000000000 +0100
@@ -89,6 +89,8 @@
0 },
{ "750cl", (PPC_OPCODE_PPC | PPC_OPCODE_PPCPS)
, 0 },
+ { "gekko", (PPC_OPCODE_PPC | PPC_OPCODE_PPCPS | PPC_OPCODE_32 | PPC_OPCODE_CLASSIC)
+ , 0 },
{ "altivec", (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC),
PPC_OPCODE_ALTIVEC },
{ "any", 0,

View File

@ -1,6 +1,6 @@
diff -Nbaur gcc-4.4.0/gcc/config/rs6000/rs6000.h gcc-4.4.0-ppc/gcc/config/rs6000/rs6000.h
--- gcc-4.4.0/gcc/config/rs6000/rs6000.h 2009-04-10 00:23:07.000000000 +0100
+++ gcc-4.4.0-ppc/gcc/config/rs6000/rs6000.h 2009-04-27 01:51:15.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/config/rs6000/rs6000.h gcc-4.4.2-ppc/gcc/config/rs6000/rs6000.h
--- gcc-4.4.2/gcc/config/rs6000/rs6000.h 2009-04-10 00:23:07.000000000 +0100
+++ gcc-4.4.2-ppc/gcc/config/rs6000/rs6000.h 2009-10-20 09:10:22.000000000 +0100
@@ -180,12 +180,12 @@
the condition in driver-rs6000.c. */
#if defined(__powerpc__) || defined(__POWERPC__) || defined(_AIX)
@ -16,9 +16,9 @@ diff -Nbaur gcc-4.4.0/gcc/config/rs6000/rs6000.h gcc-4.4.0-ppc/gcc/config/rs6000
#ifndef CC1_CPU_SPEC
#ifdef HAVE_LOCAL_CPU_DETECT
#define CC1_CPU_SPEC \
diff -Nbaur gcc-4.4.0/gcc/config/rs6000/sysv4.h gcc-4.4.0-ppc/gcc/config/rs6000/sysv4.h
--- gcc-4.4.0/gcc/config/rs6000/sysv4.h 2009-04-10 00:23:07.000000000 +0100
+++ gcc-4.4.0-ppc/gcc/config/rs6000/sysv4.h 2009-04-27 01:27:13.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/config/rs6000/sysv4.h gcc-4.4.2-ppc/gcc/config/rs6000/sysv4.h
--- gcc-4.4.2/gcc/config/rs6000/sysv4.h 2009-04-10 00:23:07.000000000 +0100
+++ gcc-4.4.2-ppc/gcc/config/rs6000/sysv4.h 2009-10-20 09:10:22.000000000 +0100
@@ -664,7 +664,11 @@
/* Default starting address if specified. */
@ -174,9 +174,9 @@ diff -Nbaur gcc-4.4.0/gcc/config/rs6000/sysv4.h gcc-4.4.0-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.4.0/gcc/config/rs6000/sysv4.opt gcc-4.4.0-ppc/gcc/config/rs6000/sysv4.opt
--- gcc-4.4.0/gcc/config/rs6000/sysv4.opt 2009-02-20 15:20:38.000000000 +0000
+++ gcc-4.4.0-ppc/gcc/config/rs6000/sysv4.opt 2009-04-26 22:32:15.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/config/rs6000/sysv4.opt gcc-4.4.2-ppc/gcc/config/rs6000/sysv4.opt
--- gcc-4.4.2/gcc/config/rs6000/sysv4.opt 2009-02-20 15:20:38.000000000 +0000
+++ gcc-4.4.2-ppc/gcc/config/rs6000/sysv4.opt 2009-10-20 09:10:22.000000000 +0100
@@ -107,6 +107,26 @@
Target RejectNegative
Link with libads.a, libc.a and crt0.o
@ -204,9 +204,9 @@ diff -Nbaur gcc-4.4.0/gcc/config/rs6000/sysv4.opt gcc-4.4.0-ppc/gcc/config/rs600
myellowknife
Target RejectNegative
Link with libyk.a, libc.a and crt0.o
diff -Nbaur gcc-4.4.0/gcc/gcc.c gcc-4.4.0-ppc/gcc/gcc.c
--- gcc-4.4.0/gcc/gcc.c 2009-03-17 21:25:59.000000000 +0000
+++ gcc-4.4.0-ppc/gcc/gcc.c 2009-06-17 02:15:34.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/gcc.c gcc-4.4.2-ppc/gcc/gcc.c
--- gcc-4.4.2/gcc/gcc.c 2009-03-17 21:25:59.000000000 +0000
+++ gcc-4.4.2-ppc/gcc/gcc.c 2009-10-20 09:10:23.000000000 +0100
@@ -698,7 +698,7 @@
-lgcc and -lc order specially, yet not require them to override all
of LINK_COMMAND_SPEC. */
@ -245,9 +245,9 @@ diff -Nbaur gcc-4.4.0/gcc/gcc.c gcc-4.4.0-ppc/gcc/gcc.c
strcat (specs_file, just_machine_suffix);
strcat (specs_file, "specs");
if (access (specs_file, R_OK) == 0)
diff -Nbaur gcc-4.4.0/gcc/prefix.c gcc-4.4.0-ppc/gcc/prefix.c
--- gcc-4.4.0/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100
+++ gcc-4.4.0-ppc/gcc/prefix.c 2009-04-26 22:32:15.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/prefix.c gcc-4.4.2-ppc/gcc/prefix.c
--- gcc-4.4.2/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100
+++ gcc-4.4.2-ppc/gcc/prefix.c 2009-10-20 09:10:23.000000000 +0100
@@ -245,13 +245,16 @@
The returned string is always malloc-ed, and the caller is
responsible for freeing it. */
@ -274,9 +274,9 @@ diff -Nbaur gcc-4.4.0/gcc/prefix.c gcc-4.4.0-ppc/gcc/prefix.c
+
+ putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL));
}
diff -Nbaur gcc-4.4.0/gcc/toplev.c gcc-4.4.0-ppc/gcc/toplev.c
--- gcc-4.4.0/gcc/toplev.c 2008-12-09 21:25:11.000000000 +0000
+++ gcc-4.4.0-ppc/gcc/toplev.c 2009-04-27 02:05:20.000000000 +0100
diff -Nbaur gcc-4.4.2/gcc/toplev.c gcc-4.4.2-ppc/gcc/toplev.c
--- gcc-4.4.2/gcc/toplev.c 2009-04-29 05:57:17.000000000 +0100
+++ gcc-4.4.2-ppc/gcc/toplev.c 2009-10-20 09:10:23.000000000 +0100
@@ -84,6 +84,7 @@
#include "tree-mudflap.h"
#include "tree-pass.h"
@ -285,7 +285,7 @@ diff -Nbaur gcc-4.4.0/gcc/toplev.c gcc-4.4.0-ppc/gcc/toplev.c
#if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO)
#include "dwarf2out.h"
@@ -1553,6 +1554,10 @@
@@ -1557,6 +1558,10 @@
xmalloc_set_program_name (progname);
@ -296,9 +296,9 @@ diff -Nbaur gcc-4.4.0/gcc/toplev.c gcc-4.4.0-ppc/gcc/toplev.c
hex_init ();
/* Unlock the stdio streams. */
diff -Nbaur gcc-4.4.0/libcpp/Makefile.in gcc-4.4.0-ppc/libcpp/Makefile.in
--- gcc-4.4.0/libcpp/Makefile.in 2009-04-21 10:08:08.000000000 +0100
+++ gcc-4.4.0-ppc/libcpp/Makefile.in 2009-04-27 01:21:10.000000000 +0100
diff -Nbaur gcc-4.4.2/libcpp/Makefile.in gcc-4.4.2-ppc/libcpp/Makefile.in
--- gcc-4.4.2/libcpp/Makefile.in 2009-10-15 08:55:16.000000000 +0100
+++ gcc-4.4.2-ppc/libcpp/Makefile.in 2009-10-20 09:10:23.000000000 +0100
@@ -201,8 +201,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

View File

@ -58,7 +58,7 @@ if [ ! -f configured-binutils ]
then
CFLAGS=$cflags LDFLAGS=$ldflags ../../$BINUTILS_SRCDIR/configure \
--prefix=$prefix --target=mn10200 --disable-nls --disable-shared --disable-debug \
--with-gcc --with-gnu-as --with-gnu-ld \
--disable-dependency-tracking --with-gcc --with-gnu-as --with-gnu-ld \
|| { echo "Error configuing mn10200 binutils"; exit 1; }
touch configured-binutils
fi
@ -101,7 +101,7 @@ then
--with-newlib \
--prefix=$prefix\
--disable-dependency-tracking \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 18" \
--with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPPC release 19" \
2>&1 | tee gcc_configure.log
touch configured-gcc
fi