------- Additional Comments From dberlin at gcc dot gnu dot org 2005-04-24 15:19 ------- Please compile the testcase from 20963, with and without the unshare_expr in the patch i posted, and you'll see the bug. force_gimple_operand replaces TREE_OPERAND (folded, 0) with something else. folded came directly from the ANTIC set, so we can't touch it like that (we'd have to make it copy first).
force_gimple_operand is replacing operands in what we pass it, which causes errors for us. You *need* to either fix it, or pass it a copy of the expression. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21173