This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bootstrap failure on tree-ssa branch


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);
 }
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]