https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69922
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #37780|0 |1 is obsolete| | Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2016-02-24 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37781&action=edit gcc6-pr69922.patch Untested fix, which just avoids folding if an artificial TREE_NO_WARNING comparison is turned into something it doesn't understand. There is always the hope that GIMPLE optimizations will optimize it later on; if there are important folding patterns we could easily detect and propagate TREE_NO_WARNING to (e.g. one level of COND_EXPR optimized by fold_binary_op_with_conditional_arg perhaps could be handled), then those can be added incrementally.