[gcc-7] 282/354: * Apply proposed patch for PR target/81803 (James Cowgill), conditionally for mips* targets. Closes: #871514.

Ximin Luo infinity0 at debian.org
Thu Nov 23 15:51:16 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 556a5a123f47c614a701b5ac1557a1a5a348b4a8
Author: doko <doko at 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>
Date:   Fri Sep 1 12:21:32 2017 +0000

      * Apply proposed patch for PR target/81803 (James Cowgill), conditionally
        for mips* targets. Closes: #871514.
    
    
    git-svn-id: svn+ssh://svn.debian.org/svn/gcccvs/branches/sid/gcc-7@9649 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
---
 debian/changelog                              |  6 ++++--
 debian/patches/gcc-mips64-stack-spilling.diff | 16 ++++++++++++++++
 debian/rules.patch                            |  4 ++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 19c7db2..bad013d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,11 @@
-gcc-7 (7.2.0-3) unstable; urgency=medium
+gcc-7 (7.2.0-3) unstable; urgency=high
 
   * Update to SVN 20170901 (r251583) from the gcc-7-branch.
     - Fix PR target/81504 (PPC), PR c++/82040.
+  * Apply proposed patch for PR target/81803 (James Cowgill), conditionally
+    for mips* targets. Closes: #871514.
 
- -- Matthias Klose <doko at debian.org>  Fri, 01 Sep 2017 13:22:28 +0200
+ -- Matthias Klose <doko at debian.org>  Fri, 01 Sep 2017 14:20:58 +0200
 
 gcc-7 (7.2.0-2) unstable; urgency=medium
 
diff --git a/debian/patches/gcc-mips64-stack-spilling.diff b/debian/patches/gcc-mips64-stack-spilling.diff
new file mode 100644
index 0000000..b6dea46
--- /dev/null
+++ b/debian/patches/gcc-mips64-stack-spilling.diff
@@ -0,0 +1,16 @@
+--- a/src/gcc/lra-constraints.c
++++ b/src/gcc/lra-constraints.c
+@@ -4235,7 +4235,12 @@ curr_insn_transform (bool check_only_p)
+ 			  && (goal_alt[i] == NO_REGS
+ 			      || (simplify_subreg_regno
+ 				  (ira_class_hard_regs[goal_alt[i]][0],
+-				   GET_MODE (reg), byte, mode) >= 0)))))
++				   GET_MODE (reg), byte, mode) >= 0))))
++		      || (type != OP_IN
++			  && GET_MODE_PRECISION (mode)
++			  < GET_MODE_PRECISION (GET_MODE (reg))
++			  && GET_MODE_SIZE (GET_MODE (reg)) <= UNITS_PER_WORD
++			  && WORD_REGISTER_OPERATIONS))
+ 		{
+ 		  /* An OP_INOUT is required when reloading a subreg of a
+ 		     mode wider than a word to ensure that data beyond the
diff --git a/debian/rules.patch b/debian/rules.patch
index db21e02..83f761a 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -192,6 +192,10 @@ ifeq ($(DEB_TARGET_ARCH),powerpcspe)
   debian_patches += powerpc_nofprs
 endif
 
+ifneq (,$(findstring mips,$(DEB_TARGET_ARCH)))
+  debian_patches += gcc-mips64-stack-spilling
+endif
+
 # all patches below this line are applied for gcc-snapshot builds as well
 
 ifeq ($(single_package),yes)

-- 
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