OSDN Git Service

* fold-const.c (fold_binary_op_with_conditional_arg): Tweak
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Apr 2004 21:18:40 +0000 (21:18 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Apr 2004 21:18:40 +0000 (21:18 +0000)
commita6661800f98437995c5a33fb60cb414d1500e511
tree2c08eedba3d2c19905334e4142402a18798acf01
parente8759ef619d7ebeb014ae06706f0f1b210c5c50f
* fold-const.c (fold_binary_op_with_conditional_arg):  Tweak
calling convention to allow a NULL_TREE to be returned.  Factor
sanity checks from callers, return NULL_TREE when appropriate.
(fold): Handle COMPOUND_EXPR operands of binary expressions
before COND_EXPR operands.  Use reorder_operands_p(a,b) to check
whether a op (b,c) can be rewritten as (b, a op c).  Simplify
calls to fold_binary_op_with_conditional_arg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80609 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c