------- Comment #12 from steven at gcc dot gnu dot org 2006-04-12 21:28 ------- fold_truthop is called with this input:
Breakpoint 11, fold_truthop (code=TRUTH_ANDIF_EXPR, truth_type=0x2aaaaadff4d0, lhs=0x2aaaaadf64b0, rhs=0x2aaaaadf6690) at fold-const.c:4820 4820 if (TREE_SIDE_EFFECTS (lhs) || TREE_SIDE_EFFECTS (rhs)) (gdb) p debug_generic_expr(lhs) (intD.0) wordD.1878 & 1 $50 = void (gdb) p debug_generic_expr(rhs) ((intD.0) wordD.1878 & 000008000) == 32768 $51 = void (gdb) And it folds this input to 0, which is wrong. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26729