http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54491
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-05 15:09:18 UTC --- Ah, right, the #c7 from that PR applies here. If you use if ((c<=b) & (b <=42+c)) return c; in foo instead, bar will be optimized by the reassoc pass.