This is the mail archive of the gcc-cvs@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]

gcc/gcc ChangeLog fold-const.c tree.h tree-ssa ...


CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	law@gcc.gnu.org	2004-06-16 05:09:42

Modified files:
	gcc            : ChangeLog fold-const.c tree.h 
	                 tree-ssa-operands.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg/tree-ssa: 20030824-1.c 20030824-2.c 
Added files:
	gcc/testsuite/gcc.dg/tree-ssa: 20040615-1.c 

Log message:
	* fold-const.c (swap_tree_comparison): No longer static.
	(tree_swap_operands_p): Similarly.  Return true if both operands
	are SSA_NAMEs and the first operand has a higher version number than
	the second operand.
	* tree.h (swap_tree_comparison): Prototype.
	(tree_swap_operands_p): Prototype.
	* tree-ssa-operands.c (get_expr_operands): For commutative
	operators and relational comparisons, canonicalize the
	order of the operands.
	
	* gcc.dg/tree-ssa/20040615-1.c: New test.
	* gcc.dg/tree-ssa/20030824-1.c: Update expected output to
	be less sensitive to operand ordering.
	* gcc.dg/tree-ssa/20030824-2.c: Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3988&r2=2.3989
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.397&r2=1.398
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.514&r2=1.515
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-operands.c.diff?cvsroot=gcc&r1=2.7&r2=2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3864&r2=1.3865
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/20040615-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030824-2.c.diff?cvsroot=gcc&r1=1.2&r2=1.3


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