summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/gcc/files/3.2.3/gcc-3.2.3-mergel-fix.patch')
-rw-r--r--sys-devel/gcc/files/3.2.3/gcc-3.2.3-mergel-fix.patch61
1 files changed, 0 insertions, 61 deletions
diff --git a/sys-devel/gcc/files/3.2.3/gcc-3.2.3-mergel-fix.patch b/sys-devel/gcc/files/3.2.3/gcc-3.2.3-mergel-fix.patch
deleted file mode 100644
index bc763ae54939..000000000000
--- a/sys-devel/gcc/files/3.2.3/gcc-3.2.3-mergel-fix.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff -ruN gcc-3.2.3.orig/gcc/config/rs6000/altivec.h gcc-3.2.3/gcc/config/rs6000/altivec.h
---- gcc-3.2.3.orig/gcc/config/rs6000/altivec.h 2003-07-03 02:47:36.000000000 +0200
-+++ gcc-3.2.3/gcc/config/rs6000/altivec.h 2003-07-03 02:49:17.000000000 +0200
-@@ -8535,4 +8535,57 @@
-
- #endif /* __cplusplus */
-
-+/*lu_zero@gentoo.org mergel issue workaround*/
-+static inline vector signed char my_vmrglb (vector signed char const A,
-+ vector signed char const B)
-+{
-+ static const vector unsigned char lowbyte = {
-+ 0x08, 0x18, 0x09, 0x19, 0x0a, 0x1a, 0x0b, 0x1b,
-+ 0x0c, 0x1c, 0x0d, 0x1d, 0x0e, 0x1e, 0x0f, 0x1f
-+ };
-+ return vec_perm (A, B, lowbyte);
-+}
-+
-+static inline vector signed short my_vmrglh (vector signed short const A,
-+ vector signed short const B)
-+{
-+ static const vector unsigned char lowhalf = {
-+ 0x08, 0x09, 0x18, 0x19, 0x0a, 0x0b, 0x1a, 0x1b,
-+ 0x0c, 0x0d, 0x1c, 0x1d, 0x0e, 0x0f, 0x1e, 0x1f
-+ };
-+ return vec_perm (A, B, lowhalf);
-+}
-+
-+static inline vector signed int my_vmrglw (vector signed int const A,
-+ vector signed int const B)
-+{
-+ static const vector unsigned char lowword = {
-+ 0x08, 0x09, 0x0a, 0x0b, 0x18, 0x19, 0x1a, 0x1b,
-+ 0x0c, 0x0d, 0x0e, 0x0f, 0x1c, 0x1d, 0x1e, 0x1f
-+ };
-+ return vec_perm (A, B, lowword);
-+}
-+/*#define my_vmrglb my_vmrglb
-+#define my_vmrglh my_vmrglh
-+#define my_vmrglw my_vmrglw
-+*/
-+#undef vec_mergel
-+
-+#define vec_mergel(a1, a2) \
-+__ch (__bin_args_eq (vector signed char, (a1), vector signed char, (a2)), \
-+ ((vector signed char) my_vmrglb ((vector signed char) (a1), (vector signed char) (a2))), \
-+__ch (__bin_args_eq (vector unsigned char, (a1), vector unsigned char, (a2)), \
-+ ((vector unsigned char) my_vmrglb ((vector signed char) (a1), (vector signed char) (a2))), \
-+__ch (__bin_args_eq (vector signed short, (a1), vector signed short, (a2)), \
-+ ((vector signed short) my_vmrglh ((vector signed short) (a1), (vector signed short) (a2))), \
-+__ch (__bin_args_eq (vector unsigned short, (a1), vector unsigned short, (a2)), \
-+ ((vector unsigned short) my_vmrglh ((vector signed short) (a1), (vector signed short) (a2))), \
-+__ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
-+ ((vector float) my_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
-+__ch (__bin_args_eq (vector signed int, (a1), vector signed int, (a2)), \
-+ ((vector signed int) my_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
-+__ch (__bin_args_eq (vector unsigned int, (a1), vector unsigned int, (a2)), \
-+ ((vector unsigned int) my_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
-+ __altivec_link_error_invalid_argument ())))))))
-+
- #endif /* _ALTIVEC_H */