http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53261
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-07 15:11:54 UTC --- In general, build_range_check can return NULL_TREE. Just matter of doing: if (tem && integer_zerop (tem)) return; like a few lines below?