This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/32636] [4.3 regression] 25_algorithms/search_n/iterator.cc: pch-related verify_ssa failure
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2007 17:23:57 -0000
- Subject: [Bug pch/32636] [4.3 regression] 25_algorithms/search_n/iterator.cc: pch-related verify_ssa failure
- References: <bug-32636-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from rguenth at gcc dot gnu dot org 2007-07-07 17:23 -------
The following creates a similar copy chain, but still chooses the right one to
copy from.
struct Foo {
int x;
};
void use(int);
void foo(struct Foo *p, int q)
{
int a = p->x;
int b, c;
p->x = a;
if (q)
c = p->x;
else
c = a;
use (c);
}
./cc1 -quiet -O2 t.i -fdump-tree-all-vops-details -fno-tree-fre -fno-tree-pre
-fno-tree-dominator-opts -fno-tree-vrp
Visiting PHI node: c_1 = PHI <c_5(3), a_3(2)>
Argument #0: c_5 copy-of chain: c_5 -> a_3 -> a_3 [COPY]
Argument #1: a_3 copy-of chain: a_3 -> a_3 [NOT A COPY]
PHI node c_1 copy-of chain: c_1 -> c_5 -> a_3 -> a_3 [COPY]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32636