slyfox      18/05/11 21:18:15

  Modified:             README.history
  Added:                96_all_lto-O2-PR85655.patch
  Log:
  Queue a fix for -O2 -lto into 1.3 patchset, bug #655518
  
  Reported-by: Steffen Hau
  Bug: https://gcc.gnu.org/PR85655
  Bug: https://bugs.gentoo.org/655518

Revision  Changes    Path
1.8                  src/patchsets/gcc/8.1.0/gentoo/README.history

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.8&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?rev=1.8&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history?r1=1.7&r2=1.8

Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/8.1.0/gentoo/README.history,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- README.history      7 May 2018 12:47:01 -0000       1.7
+++ README.history      11 May 2018 21:18:15 -0000      1.8
@@ -1,5 +1,6 @@
 1.3            TODO
        + 95_all_ia64-TEXTREL.patch
+       + 96_all_lto-O2-PR85655.patch
 1.2            06 May 2018
        + 93_all_arm-arch.patch
        + 94_all_mips-o32-asan.patch



1.1                  src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/8.1.0/gentoo/96_all_lto-O2-PR85655.patch?rev=1.1&content-type=text/plain

Index: 96_all_lto-O2-PR85655.patch
===================================================================
https://bugs.gentoo.org/655518
https://gcc.gnu.org/PR85655

>From 815f1bcb7b6e7d076317c15a31525fea1b53b0c0 Mon Sep 17 00:00:00 2001
From: jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 11 May 2018 15:58:29 +0000
Subject: [PATCH] Check is_single_const in intersect_with_plats

2018-05-11  Martin Jambor  <mjam...@suse.cz>

        PR ipa/85655
        * ipa-cp.c (intersect_with_plats): Check that the lattice contains
        single const.

testsuite/
        * g++.dg/lto/pr85655_0.C: New test.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@260166 
138bc75d-0d04-0410-961f-82ee72b054a4
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 4f28a55b862..e868b9c2623 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -4127,7 +4127,9 @@ intersect_with_plats (struct ipcp_param_lattices *plats,
          if (aglat->offset - offset == item->offset)
            {
              gcc_checking_assert (item->value);
-             if (values_equal_for_ipcp_p (item->value, aglat->values->value))
+             if (aglat->is_single_const ()
+                 && values_equal_for_ipcp_p (item->value,
+                                             aglat->values->value))
                found = true;
              break;
            }




Reply via email to