Permalink
Browse files

Merge pull request #57 from ooPo/master

Improvements and updates.
  • Loading branch information...
2 parents 22a1bbb + 150f919 commit 464cf1fef154ef875c85a0f619d692c1d1dd50bd Dan Peori committed Apr 30, 2012
@@ -1,39 +0,0 @@
-diff -burN '--exclude=.git' binutils-2.21.1/ld/emultempl/spuelf.em binutils-2.21.1-PS3/ld/emultempl/spuelf.em
---- binutils-2.21.1/ld/emultempl/spuelf.em 2009-08-10 04:50:56.000000000 -0300
-+++ binutils-2.21.1-PS3/ld/emultempl/spuelf.em 2011-05-25 10:15:21.220050910 -0300
-@@ -396,7 +396,11 @@
- argv[my_argc++] = "-T";
- argv[my_argc++] = auto_overlay_file;
- argv[my_argc] = 0;
-+#if defined(_WIN32)
-+ execvp (argv[0], (const char* const*) argv);
-+#else
- execvp (argv[0], (char *const *) argv);
-+#endif
- perror (argv[0]);
- _exit (127);
- }
-diff -burN '--exclude=.git' binutils-2.21.1/binutils/Makefile.am binutils-2.21.1-PS3/binutils/Makefile.am
---- binutils-2.21.1/binutils/Makefile.am 2011-07-06 13:27:16.000000000 +0200
-+++ binutils-2.21.1-PS3/binutils/Makefile.am 2011-07-06 13:28:06.000000000 +0200
-@@ -283,7 +283,7 @@
- $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
-
- embedspu: embedspu.sh Makefile
-- sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
-+ awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
- chmod a+x $@
-
- # We need these for parallel make.
-diff -burN '--exclude=.git' binutils-2.21.1/binutils/Makefile.in binutils-2.21.1-PS3/binutils/Makefile.in
---- binutils-2.21.1/binutils/Makefile.in 2011-07-06 13:27:23.000000000 +0200
-+++ binutils-2.21.1-PS3/binutils/Makefile.in 2011-07-06 13:28:35.000000000 +0200
-@@ -1295,7 +1295,7 @@
- $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
-
- embedspu: embedspu.sh Makefile
-- sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
-+ awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
- chmod a+x $@
-
- # We need these for parallel make.
@@ -0,0 +1,15 @@
+diff -burN '--exclude=.git' binutils-2.22/ld/emultempl/spuelf.em binutils-2.22-PS3/ld/emultempl/spuelf.em
+--- binutils-2.22/ld/emultempl/spuelf.em 2011-01-13 09:06:22.000000000 -0400
++++ binutils-2.22-PS3/ld/emultempl/spuelf.em 2012-04-25 15:19:45.549218743 -0300
+@@ -397,7 +397,11 @@
+ argv[my_argc++] = "-T";
+ argv[my_argc++] = auto_overlay_file;
+ argv[my_argc] = 0;
++#if defined(_WIN32)
++ execvp (argv[0], (const char* const*) argv);
++#else
+ execvp (argv[0], (char *const *) argv);
++#endif
+ perror (argv[0]);
+ _exit (127);
+ }
@@ -1,7 +1,7 @@
-diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/cell64lv2.h gcc-4.6.1-PS3/gcc/config/rs6000/cell64lv2.h
---- gcc-4.6.1/gcc/config/rs6000/cell64lv2.h 1969-12-31 20:00:00.000000000 -0400
-+++ gcc-4.6.1-PS3/gcc/config/rs6000/cell64lv2.h 2011-08-16 00:00:37.444053237 -0300
-@@ -0,0 +1,439 @@
+diff -burN '--exclude=.git' gcc-4.7.0/gcc/config/rs6000/cell64lv2.h gcc-4.7.0-PS3/gcc/config/rs6000/cell64lv2.h
+--- gcc-4.7.0/gcc/config/rs6000/cell64lv2.h 1969-12-31 20:00:00.000000000 -0400
++++ gcc-4.7.0-PS3/gcc/config/rs6000/cell64lv2.h 2012-04-25 16:08:15.979219286 -0300
+@@ -0,0 +1,440 @@
+/* Definitions of target machine for GNU compiler,
+ for 64 bit PowerPC linux.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
@@ -355,9 +355,10 @@ diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/cell64lv2.h gcc-4.6.1-PS
+ } \
+ while (0)
+
++/*
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (PowerPC64 Cell-lv2)");
-+
++*/
+
+/* Must be at least as big as our pointer type. */
+#undef SIZE_TYPE
@@ -441,12 +442,12 @@ diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/cell64lv2.h gcc-4.6.1-PS
+#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
+#endif
+
-diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/rs6000.c gcc-4.6.1-PS3/gcc/config/rs6000/rs6000.c
---- gcc-4.6.1/gcc/config/rs6000/rs6000.c 2011-06-20 12:12:44.000000000 -0300
-+++ gcc-4.6.1-PS3/gcc/config/rs6000/rs6000.c 2011-08-16 00:00:37.454053195 -0300
-@@ -1214,6 +1214,13 @@
- static void rs6000_trampoline_init (rtx, tree, rtx);
- static bool rs6000_cannot_force_const_mem (rtx);
+diff -burN '--exclude=.git' gcc-4.7.0/gcc/config/rs6000/rs6000.c gcc-4.7.0-PS3/gcc/config/rs6000/rs6000.c
+--- gcc-4.7.0/gcc/config/rs6000/rs6000.c 2012-03-14 11:21:12.000000000 -0300
++++ gcc-4.7.0-PS3/gcc/config/rs6000/rs6000.c 2012-04-25 15:48:11.469220048 -0300
+@@ -1230,6 +1230,13 @@
+ static void rs6000_code_end (void) ATTRIBUTE_UNUSED;
+ static void rs6000_set_up_by_prologue (struct hard_reg_set_container *);
+
+#ifdef POWERPC_CELL64LV2
@@ -458,34 +459,30 @@ diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/rs6000.c gcc-4.6.1-PS3/g
/* Hash table stuff for keeping track of TOC entries. */
struct GTY(()) toc_hash_struct
-@@ -1667,6 +1674,11 @@
- #undef TARGET_SET_CURRENT_FUNCTION
- #define TARGET_SET_CURRENT_FUNCTION rs6000_set_current_function
+@@ -27961,6 +27968,20 @@
+ add_to_hard_reg_set (&set->set, Pmode, RS6000_PIC_OFFSET_TABLE_REGNUM);
+ }
+#ifdef POWERPC_CELL64LV2
+#undef TARGET_VALID_POINTER_MODE
+#define TARGET_VALID_POINTER_MODE rs6000_cell64lv2_valid_pointer_mode
+#endif
+
struct gcc_target targetm = TARGET_INITIALIZER;
-
-
-@@ -28257,5 +28269,12 @@
- return x;
- }
+#ifdef POWERPC_CELL64LV2
+
+static bool rs6000_cell64lv2_valid_pointer_mode(enum machine_mode mode)
+{
-+ return (mode == SImode || (TARGET_64BIT && mode == DImode) || mode == ptr_mode || mode == Pmode);
++ return (mode == SImode || (TARGET_64BIT && mode == DImode) || mode == ptr_mode || mode == Pmode);
+}
++
+#endif
-
++
#include "gt-rs6000.h"
-diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/t-cell64lv2 gcc-4.6.1-PS3/gcc/config/rs6000/t-cell64lv2
---- gcc-4.6.1/gcc/config/rs6000/t-cell64lv2 1969-12-31 20:00:00.000000000 -0400
-+++ gcc-4.6.1-PS3/gcc/config/rs6000/t-cell64lv2 2011-08-16 00:00:37.454053195 -0300
+diff -burN '--exclude=.git' gcc-4.7.0/gcc/config/rs6000/t-cell64lv2 gcc-4.7.0-PS3/gcc/config/rs6000/t-cell64lv2
+--- gcc-4.7.0/gcc/config/rs6000/t-cell64lv2 1969-12-31 20:00:00.000000000 -0400
++++ gcc-4.7.0-PS3/gcc/config/rs6000/t-cell64lv2 2012-04-25 15:47:24.119219261 -0300
@@ -0,0 +1,25 @@
+#rs6000/t-cell64lv2
+
@@ -512,11 +509,11 @@ diff -burN '--exclude=.git' gcc-4.6.1/gcc/config/rs6000/t-cell64lv2 gcc-4.6.1-PS
+LIB2FUNCS_EXTRA := $(sort $(LIB2FUNCS_EXTRA))
+
+TARGET_LIBGCC2_CFLAGS += -mno-minimal-toc
-diff -burN '--exclude=.git' gcc-4.6.1/gcc/config.gcc gcc-4.6.1-PS3/gcc/config.gcc
---- gcc-4.6.1/gcc/config.gcc 2011-05-22 17:03:43.000000000 -0300
-+++ gcc-4.6.1-PS3/gcc/config.gcc 2011-08-16 00:00:37.454053195 -0300
-@@ -2048,6 +2048,15 @@
- # tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-fprules-fpbit "
+diff -burN '--exclude=.git' gcc-4.7.0/gcc/config.gcc gcc-4.7.0-PS3/gcc/config.gcc
+--- gcc-4.7.0/gcc/config.gcc 2012-03-05 06:43:22.000000000 -0400
++++ gcc-4.7.0-PS3/gcc/config.gcc 2012-04-25 15:47:24.139219172 -0300
+@@ -1930,6 +1930,15 @@
+ # tmake_file="${tmake_file} rs6000/t-fprules"
# extra_headers=
# ;;
+powerpc64-ps3-elf)
@@ -530,16 +527,16 @@ diff -burN '--exclude=.git' gcc-4.6.1/gcc/config.gcc gcc-4.6.1-PS3/gcc/config.gc
+ ;;
powerpc-*-darwin*)
extra_options="${extra_options} rs6000/darwin.opt"
- extra_parts="crt2.o"
-diff -burN '--exclude=.git' gcc-4.6.1/libgcc/config.host gcc-4.6.1-PS3/libgcc/config.host
---- gcc-4.6.1/libgcc/config.host 2011-03-14 03:06:23.000000000 -0300
-+++ gcc-4.6.1-PS3/libgcc/config.host 2011-08-16 00:00:37.454053195 -0300
-@@ -484,6 +484,8 @@
- ;;
- powerpc-*-rtems*)
+ case ${target} in
+diff -burN '--exclude=.git' gcc-4.7.0/libgcc/config.host gcc-4.7.0-PS3/libgcc/config.host
+--- gcc-4.7.0/libgcc/config.host 2012-02-20 17:19:55.000000000 -0400
++++ gcc-4.7.0-PS3/libgcc/config.host 2012-04-25 15:47:24.149219133 -0300
+@@ -887,6 +887,8 @@
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
+ extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
;;
+powerpc64-ps3-elf)
+ ;;
powerpc-*-linux* | powerpc64-*-linux*)
- tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp"
- ;;
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-softfp-sfdf t-softfp-excl t-dfprules rs6000/t-ppc64-fp t-softfp t-slibgcc-libgcc"
+ extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
Oops, something went wrong.

1 comment on commit 464cf1f

everything works great for now

Please sign in to comment.