summaryrefslogtreecommitdiff
path: root/patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-27 21:37:03 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-27 21:37:03 (GMT)
commit1843a3b45c7064d8641fb49d7fa7f3a8e4c1f02c (patch)
treeee0fef21d238015f3e7633b344c14fd60ab2a70b /patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch
parentaf244eaf459e6ab9e6786ed5fcc69ac17b4dabe7 (diff)
Add the latest gcc-4.3.3 with the forward-ported patchset from gcc-4.3.2.
/trunk/patches/gcc/4.3.3/210-noteGNUstack-00.patch | 47 26 21 0 ++++--- /trunk/patches/gcc/4.3.3/270-missing-execinfo_h.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/260-uclibc-conf-noupstream.patch | 13 9 4 0 +- /trunk/patches/gcc/4.3.3/220-noteGNUstack-01.patch | 97 51 46 0 +++++++------- /trunk/patches/gcc/4.3.3/240-pr25343.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/100-alpha-mieee-default.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/230-pr34571.patch | 23 8 15 0 +-- /trunk/patches/gcc/4.3.3/350-sh-without-headers.patch | 17 10 7 0 +- /trunk/patches/gcc/4.3.3/330-unwind-for-uClibc.patch | 19 12 7 0 ++- /trunk/patches/gcc/4.3.3/190-libstdc++-pic.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/150-sparc64-bsd.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/290-index_macro.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/140-netbsd-symbolic.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/110-trampolinewarn.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/160-flatten-switch-stmt-00.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/280-c99-complex-ugly-hack.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/300-libmudflap-susv3-legacy.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/170-libiberty-pic.patch | 11 8 3 0 +- /trunk/patches/gcc/4.3.3/250-sh-pr24836.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/120-java-nomulti.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/320-alpha-signal_h.patch | 14 10 4 0 +- /trunk/patches/gcc/4.3.3/180-superh-default-multilib.patch | 13 9 4 0 +- /trunk/patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch | 41 23 18 0 +++--- /trunk/patches/gcc/4.3.3/200-pr24170.patch | 23 14 9 0 ++- /trunk/patches/gcc/4.3.3/310-arm-softfloat.patch | 17 11 6 0 +- /trunk/patches/gcc/4.3.3/130-cross-compile.patch | 23 14 9 0 ++- /trunk/config/cc/gcc.in | 7 7 0 0 + 27 files changed, 334 insertions(+), 210 deletions(-)
Diffstat (limited to 'patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch')
-rw-r--r--patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch90
1 files changed, 90 insertions, 0 deletions
diff --git a/patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch b/patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch
new file mode 100644
index 0000000..ad2d203
--- /dev/null
+++ b/patches/gcc/4.3.3/340-make-mno-spe-work-as-expected.patch
@@ -0,0 +1,90 @@
+Original patch from: ../4.3.2/340-make-mno-spe-work-as-expected.patch
+
+-= BEGIN original header =-
+2008-04-03 Nathan Froyd <froydnj@codesourcery.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+
+ * config/rs6000/rs6000.opt (mspe): Remove Var property.
+ (misel): Likewise.
+ * config/rs6000/rs6000.h (rs6000_spe): Declare.
+ (rs6000_isel): Likewise.
+ * config/rs6000/rs6000.c (rs6000_spe): New variable.
+ (rs6000_isel): New variable.
+ (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
+
+-= END original header =-
+
+diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.c gcc-4.3.3/gcc/config/rs6000/rs6000.c
+--- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.c 2008-11-18 23:07:58.000000000 +0100
++++ gcc-4.3.3/gcc/config/rs6000/rs6000.c 2009-01-27 22:28:55.000000000 +0100
+@@ -174,9 +174,15 @@
+ /* Nonzero to use AltiVec ABI. */
+ int rs6000_altivec_abi;
+
++/* Nonzero if we want SPE SIMD instructions. */
++int rs6000_spe;
++
+ /* Nonzero if we want SPE ABI extensions. */
+ int rs6000_spe_abi;
+
++/* Nonzero to use isel instructions. */
++int rs6000_isel;
++
+ /* Nonzero if floating point operations are done in the GPRs. */
+ int rs6000_float_gprs = 0;
+
+@@ -2144,11 +2150,21 @@
+ rs6000_parse_yes_no_option ("vrsave", arg, &(TARGET_ALTIVEC_VRSAVE));
+ break;
+
++ case OPT_misel:
++ rs6000_explicit_options.isel = true;
++ rs6000_isel = value;
++ break;
++
+ case OPT_misel_:
+ rs6000_explicit_options.isel = true;
+ rs6000_parse_yes_no_option ("isel", arg, &(rs6000_isel));
+ break;
+
++ case OPT_mspe:
++ rs6000_explicit_options.spe = true;
++ rs6000_spe = value;
++ break;
++
+ case OPT_mspe_:
+ rs6000_explicit_options.spe = true;
+ rs6000_parse_yes_no_option ("spe", arg, &(rs6000_spe));
+diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.h gcc-4.3.3/gcc/config/rs6000/rs6000.h
+--- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.h 2008-01-26 18:18:35.000000000 +0100
++++ gcc-4.3.3/gcc/config/rs6000/rs6000.h 2009-01-27 22:28:55.000000000 +0100
+@@ -349,6 +349,8 @@
+ extern int rs6000_ieeequad;
+ extern int rs6000_altivec_abi;
+ extern int rs6000_spe_abi;
++extern int rs6000_spe;
++extern int rs6000_isel;
+ extern int rs6000_float_gprs;
+ extern int rs6000_alignment_flags;
+ extern const char *rs6000_sched_insert_nops_str;
+diff -durN gcc-4.3.3.orig/gcc/config/rs6000/rs6000.opt gcc-4.3.3/gcc/config/rs6000/rs6000.opt
+--- gcc-4.3.3.orig/gcc/config/rs6000/rs6000.opt 2007-10-31 08:56:01.000000000 +0100
++++ gcc-4.3.3/gcc/config/rs6000/rs6000.opt 2009-01-27 22:28:55.000000000 +0100
+@@ -190,7 +190,7 @@
+ -mvrsave=yes/no Deprecated option. Use -mvrsave/-mno-vrsave instead
+
+ misel
+-Target Var(rs6000_isel)
++Target
+ Generate isel instructions
+
+ misel=
+@@ -198,7 +198,7 @@
+ -misel=yes/no Deprecated option. Use -misel/-mno-isel instead
+
+ mspe
+-Target Var(rs6000_spe)
++Target
+ Generate SPE SIMD instructions on E500
+
+ mpaired