This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap failure on tree-ssa branch
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 Mar 2003 09:17:45 -0500
- Subject: Re: bootstrap failure on tree-ssa branch
- Organization: Red Hat Canada
- References: <ho7kbcbxq4.fsf@byrd.suse.de>
On Thu, 06 Mar 2003, Andreas Jaeger wrote:
> Bootstrapping the tree-ssa branch (current CVS) with checking enabled
> fails on x86-64 with:
>
This patch should fix the problem. The constant evaluation
function was returning an estimated lattice value of CONSTANT
for expressions that had aliased operands.
Diego.
* tree-ssa-ccp.c (likely_value): Don't assume CONSTANT if the
statement has virtual uses.
Index: tree-ssa-ccp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-ccp.c,v
retrieving revision 1.1.2.62
diff -d -u -p -r1.1.2.62 tree-ssa-ccp.c
--- tree-ssa-ccp.c 28 Feb 2003 04:36:56 -0000 1.1.2.62
+++ tree-ssa-ccp.c 6 Mar 2003 19:18:25 -0000
@@ -1166,7 +1166,7 @@ likely_value (stmt)
found_constant = 1;
}
- return (found_constant || ! uses ? CONSTANT : VARYING);
+ return (found_constant || (!uses && !vuse_ops (stmt)) ? CONSTANT : VARYING);
}