Commit d8becd55 by Roger Sayle Committed by Roger Sayle

re PR bootstrap/12358 (Bootstrap comparison failure!)


	PR bootstrap/12358
	* fold-const.c (tree_swap_operands_p): Only reorder operands when
	one of the operands is constant.

From-SVN: r71749
parent 264fa2db
2003-09-24 Roger Sayle <roger@eyesopen.com>
PR bootstrap/12358
* fold-const.c (tree_swap_operands_p): Only reorder operands when
one of the operands is constant.
2003-09-24 Ziemowit Laski <zlaski@apple.com>
MERGE OF objc-improvements-branch into MAINLINE:
......
......@@ -5007,16 +5007,6 @@ tree_swap_operands_p (tree arg0, tree arg1)
if (TREE_CONSTANT (arg0))
return 1;
if (DECL_P (arg1))
return 0;
if (DECL_P (arg0))
return 1;
if (TREE_CODE (arg1) == SAVE_EXPR)
return 0;
if (TREE_CODE (arg0) == SAVE_EXPR)
return 1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment