[gcc-7] 293/354: - update patches for the last svn branch update

Ximin Luo infinity0 at debian.org
Thu Nov 23 15:51:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository gcc-7.

commit eb8a7b93088366a0111db0d073b9670d8d9ab273
Author: doko <doko at 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>
Date:   Thu Sep 14 19:28:03 2017 +0000

     - update patches for the last svn branch update
    
    
    git-svn-id: svn+ssh://svn.debian.org/svn/gcccvs/branches/sid/gcc-7@9684 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
---
 debian/patches/libstdc++-doclink.diff |  17 ++-
 debian/patches/pr81833.diff           | 248 ----------------------------------
 debian/rules.patch                    |   1 -
 3 files changed, 8 insertions(+), 258 deletions(-)

diff --git a/debian/patches/libstdc++-doclink.diff b/debian/patches/libstdc++-doclink.diff
index c402fc9..99abf1e 100644
--- a/debian/patches/libstdc++-doclink.diff
+++ b/debian/patches/libstdc++-doclink.diff
@@ -13,26 +13,25 @@ Index: b/src/libstdc++-v3/doc/doxygen/mainpage.html
  
  <p>There are two types of documentation for libstdc++.  One is the
 -   distribution documentation, which can be read online
--   <a href="http://gcc.gnu.org/onlinedocs/libstdc++/index.html">here</a>
+-   <a href="https://gcc.gnu.org/onlinedocs/libstdc++/index.html">here</a>
 -   or offline from the file doc/html/index.html in the library source
 -   directory.
 +   distribution documentation, which can be read
 +   <a href="../index.html">offline in the documentation directory</a>
 +   or
-+   <a href="http://gcc.gnu.org/onlinedocs/libstdc++/index.html">online</a>.
++   <a href="https://gcc.gnu.org/onlinedocs/libstdc++/index.html">online</a>.
  </p>
  
  <p>The other type is the source documentation, of which this is the first page.
-@@ -81,9 +81,10 @@
-   This style guide can also be viewed on the <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01apas04.html">web</a>.
+@@ -82,8 +82,11 @@
  
  <h2>License, Copyright, and Other Lawyerly Verbosity</h2>
--<p>The libstdc++ documentation is released under
--   <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt01ch01s02.html">
+ <p>The libstdc++ documentation is released under
++   these terms
++   (<a href="../manual/appendix_gpl.html">read offline</a> or
+    <a href="https://gcc.gnu.org/onlinedocs/libstdc++/manual/appendix_gpl.html">
 -   these terms</a>.
-+<p>The libstdc++ documentation is released under these terms
-+   (<a href="../manual/license.html">read offline</a> or
-+    <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html">read online</a>.
++   read online</a>.
 +   ).
  </p>
  <p>Part of the generated documentation involved comments and notes from
diff --git a/debian/patches/pr81833.diff b/debian/patches/pr81833.diff
deleted file mode 100644
index 29d029f..0000000
--- a/debian/patches/pr81833.diff
+++ /dev/null
@@ -1,248 +0,0 @@
-# DP: Fix PR target/81833 (PPC), taken from the trunk.
-
-gcc/
-
-2017-09-05  Bill Schmidt  <wschmidt at linux.vnet.ibm.com>
-
-	PR target/81833
-	* config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
-	define_insn to a define_expand.
-	(altivec_vsum2sws_direct): New define_insn.
-	(altivec_vsumsws): Convert from a define_insn to a define_expand.
-
-gcc/testsuite/
-
-2017-09-05  Bill Schmidt  <wschmidt at linux.vnet.ibm.com>
-
-	PR target/81833
-	* gcc.target/powerpc/pr81833-1.c: New file.
-	* gcc.target/powerpc/pr81833-2.c: New file.
-
- 
-Index: gcc/testsuite/gcc.target/powerpc/pr81833-2.c
-===================================================================
---- a/src/gcc/testsuite/gcc.target/powerpc/pr81833-2.c	(nonexistent)
-+++ a/src/gcc/testsuite/gcc.target/powerpc/pr81833-2.c	(revision 251723)
-@@ -0,0 +1,59 @@
-+/* PR81833: This used to fail due to improper implementation of vec_msum.  */
-+/* Test case relies on -mcpu=power7 or later.  Currently we don't have
-+   machinery to express that, so we have two separate tests for -mcpu=power7
-+   and -mcpu=power8 to catch 32-bit BE on P7 and 64-bit BE/LE on P8.  */
-+
-+/* { dg-do run } */
-+/* { dg-require-effective-target vsx_hw } */
-+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
-+/* { dg-options "-mcpu=power7 -O2" } */
-+
-+#include <altivec.h>
-+
-+#define vec_u8  vector unsigned char
-+#define vec_s8  vector signed char
-+#define vec_u16 vector unsigned short
-+#define vec_s16 vector signed short
-+#define vec_u32 vector unsigned int
-+#define vec_s32 vector signed int
-+#define vec_f   vector float
-+
-+#define LOAD_ZERO const vec_u8 zerov = vec_splat_u8 (0)
-+
-+#define zero_u8v  (vec_u8)  zerov
-+#define zero_s8v  (vec_s8)  zerov
-+#define zero_u16v (vec_u16) zerov
-+#define zero_s16v (vec_s16) zerov
-+#define zero_u32v (vec_u32) zerov
-+#define zero_s32v (vec_s32) zerov
-+
-+signed int __attribute__((noinline))
-+scalarproduct_int16_vsx (const signed short *v1, const signed short *v2,
-+			 int order)
-+{
-+  int i;
-+  LOAD_ZERO;
-+  register vec_s16 vec1;
-+  register vec_s32 res = vec_splat_s32 (0), t;
-+  signed int ires;
-+
-+  for (i = 0; i < order; i += 8) {
-+    vec1 = vec_vsx_ld (0, v1);
-+    t    = vec_msum (vec1, vec_vsx_ld (0, v2), zero_s32v);
-+    res  = vec_sums (t, res);
-+    v1  += 8;
-+    v2  += 8;
-+  }
-+  res = vec_splat (res, 3);
-+  vec_ste (res, 0, &ires);
-+
-+  return ires;
-+}
-+
-+int main(void)
-+{
-+  const signed short test_vec[] = { 1, 1, 1, 1, 1, 1, 1, 1 };
-+  if (scalarproduct_int16_vsx (test_vec, test_vec, 8) != 8)
-+    __builtin_abort ();
-+  return 0;
-+}
-Index: gcc/testsuite/gcc.target/powerpc/pr81833-1.c
-===================================================================
---- a/src/gcc/testsuite/gcc.target/powerpc/pr81833-1.c	(nonexistent)
-+++ a/src/gcc/testsuite/gcc.target/powerpc/pr81833-1.c	(revision 251723)
-@@ -0,0 +1,59 @@
-+/* PR81833: This used to fail due to improper implementation of vec_msum.  */
-+/* Test case relies on -mcpu=power7 or later.  Currently we don't have
-+   machinery to express that, so we have two separate tests for -mcpu=power7
-+   and -mcpu=power8 to catch 32-bit BE on P7 and 64-bit BE/LE on P8.  */
-+
-+/* { dg-do run } */
-+/* { dg-require-effective-target p8vector_hw } */
-+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
-+/* { dg-options "-mcpu=power8 -O2" } */
-+
-+#include <altivec.h>
-+
-+#define vec_u8  vector unsigned char
-+#define vec_s8  vector signed char
-+#define vec_u16 vector unsigned short
-+#define vec_s16 vector signed short
-+#define vec_u32 vector unsigned int
-+#define vec_s32 vector signed int
-+#define vec_f   vector float
-+
-+#define LOAD_ZERO const vec_u8 zerov = vec_splat_u8 (0)
-+
-+#define zero_u8v  (vec_u8)  zerov
-+#define zero_s8v  (vec_s8)  zerov
-+#define zero_u16v (vec_u16) zerov
-+#define zero_s16v (vec_s16) zerov
-+#define zero_u32v (vec_u32) zerov
-+#define zero_s32v (vec_s32) zerov
-+
-+signed int __attribute__((noinline))
-+scalarproduct_int16_vsx (const signed short *v1, const signed short *v2,
-+			 int order)
-+{
-+  int i;
-+  LOAD_ZERO;
-+  register vec_s16 vec1;
-+  register vec_s32 res = vec_splat_s32 (0), t;
-+  signed int ires;
-+
-+  for (i = 0; i < order; i += 8) {
-+    vec1 = vec_vsx_ld (0, v1);
-+    t    = vec_msum (vec1, vec_vsx_ld (0, v2), zero_s32v);
-+    res  = vec_sums (t, res);
-+    v1  += 8;
-+    v2  += 8;
-+  }
-+  res = vec_splat (res, 3);
-+  vec_ste (res, 0, &ires);
-+
-+  return ires;
-+}
-+
-+int main(void)
-+{
-+  const signed short test_vec[] = { 1, 1, 1, 1, 1, 1, 1, 1 };
-+  if (scalarproduct_int16_vsx (test_vec, test_vec, 8) != 8)
-+    __builtin_abort ();
-+  return 0;
-+}
-Index: gcc/config/rs6000/altivec.md
-===================================================================
---- a/src/gcc/config/rs6000/altivec.md	(revision 251722)
-+++ a/src/gcc/config/rs6000/altivec.md	(revision 251723)
-@@ -1804,51 +1804,61 @@
-   "vsum4s<VI_char>s %0,%1,%2"
-   [(set_attr "type" "veccomplex")])
- 
--;; FIXME: For the following two patterns, the scratch should only be
--;; allocated for !VECTOR_ELT_ORDER_BIG, and the instructions should
--;; be emitted separately.
--(define_insn "altivec_vsum2sws"
--  [(set (match_operand:V4SI 0 "register_operand" "=v")
--        (unspec:V4SI [(match_operand:V4SI 1 "register_operand" "v")
--                      (match_operand:V4SI 2 "register_operand" "v")]
--		     UNSPEC_VSUM2SWS))
--   (set (reg:SI VSCR_REGNO) (unspec:SI [(const_int 0)] UNSPEC_SET_VSCR))
--   (clobber (match_scratch:V4SI 3 "=v"))]
-+(define_expand "altivec_vsum2sws"
-+  [(use (match_operand:V4SI 0 "register_operand"))
-+   (use (match_operand:V4SI 1 "register_operand"))
-+   (use (match_operand:V4SI 2 "register_operand"))]
-   "TARGET_ALTIVEC"
- {
-   if (VECTOR_ELT_ORDER_BIG)
--    return "vsum2sws %0,%1,%2";
-+    emit_insn (gen_altivec_vsum2sws_direct (operands[0], operands[1],
-+                                            operands[2]));
-   else
--    return "vsldoi %3,%2,%2,12\n\tvsum2sws %3,%1,%3\n\tvsldoi %0,%3,%3,4";
--}
--  [(set_attr "type" "veccomplex")
--   (set (attr "length")
--     (if_then_else
--       (match_test "VECTOR_ELT_ORDER_BIG")
--       (const_string "4")
--       (const_string "12")))])
-+    {
-+      rtx tmp1 = gen_reg_rtx (V4SImode);
-+      rtx tmp2 = gen_reg_rtx (V4SImode);
-+      emit_insn (gen_altivec_vsldoi_v4si (tmp1, operands[2],
-+                                          operands[2], GEN_INT (12)));
-+      emit_insn (gen_altivec_vsum2sws_direct (tmp2, operands[1], tmp1));
-+      emit_insn (gen_altivec_vsldoi_v4si (operands[0], tmp2, tmp2,
-+                                          GEN_INT (4)));
-+    }
-+  DONE;
-+})
- 
--(define_insn "altivec_vsumsws"
-+; FIXME: This can probably be expressed without an UNSPEC.
-+(define_insn "altivec_vsum2sws_direct"
-   [(set (match_operand:V4SI 0 "register_operand" "=v")
-         (unspec:V4SI [(match_operand:V4SI 1 "register_operand" "v")
--                      (match_operand:V4SI 2 "register_operand" "v")]
--		     UNSPEC_VSUMSWS))
--   (set (reg:SI VSCR_REGNO) (unspec:SI [(const_int 0)] UNSPEC_SET_VSCR))
--   (clobber (match_scratch:V4SI 3 "=v"))]
-+	              (match_operand:V4SI 2 "register_operand" "v")]
-+		     UNSPEC_VSUM2SWS))
-+   (set (reg:SI VSCR_REGNO) (unspec:SI [(const_int 0)] UNSPEC_SET_VSCR))]
-   "TARGET_ALTIVEC"
-+  "vsum2sws %0,%1,%2"
-+  [(set_attr "type" "veccomplex")])
-+
-+(define_expand "altivec_vsumsws"
-+  [(use (match_operand:V4SI 0 "register_operand"))
-+   (use (match_operand:V4SI 1 "register_operand"))
-+   (use (match_operand:V4SI 2 "register_operand"))]
-+  "TARGET_ALTIVEC"
- {
-   if (VECTOR_ELT_ORDER_BIG)
--    return "vsumsws %0,%1,%2";
-+    emit_insn (gen_altivec_vsumsws_direct (operands[0], operands[1],
-+                                           operands[2]));
-   else
--    return "vspltw %3,%2,0\n\tvsumsws %3,%1,%3\n\tvsldoi %0,%3,%3,12";
--}
--  [(set_attr "type" "veccomplex")
--   (set (attr "length")
--     (if_then_else
--       (match_test "(VECTOR_ELT_ORDER_BIG)")
--       (const_string "4")
--       (const_string "12")))])
-+    {
-+      rtx tmp1 = gen_reg_rtx (V4SImode);
-+      rtx tmp2 = gen_reg_rtx (V4SImode);
-+      emit_insn (gen_altivec_vspltw_direct (tmp1, operands[2], const0_rtx));
-+      emit_insn (gen_altivec_vsumsws_direct (tmp2, operands[1], tmp1));
-+      emit_insn (gen_altivec_vsldoi_v4si (operands[0], tmp2, tmp2,
-+                                          GEN_INT (12)));
-+    }
-+  DONE;
-+})
- 
-+; FIXME: This can probably be expressed without an UNSPEC.
- (define_insn "altivec_vsumsws_direct"
-   [(set (match_operand:V4SI 0 "register_operand" "=v")
-         (unspec:V4SI [(match_operand:V4SI 1 "register_operand" "v")
diff --git a/debian/rules.patch b/debian/rules.patch
index 9773f67..ae6b02c 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -73,7 +73,6 @@ debian_patches += \
 	gcc-fuse-ld-lld \
 	libgo-s390x-default-isa \
 	pr81829 \
-	pr81833 \
 	pr77631 \
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/gcc-7.git



More information about the Reproducible-commits mailing list