http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-11 11:46:43 UTC --- Speaking of memcmp/strcmp, perhaps we on the other side should inline for !-Os commonly used comparisons like if (strcmp (p, ".") == 0 || strcmp (p, "..") == 0) continue; glibc has a macro for this, but I think it would be preferable to do it in gcc where we know about -Os, cold basic blocks etc. Currently we only fold if (strcmp (p, "")) ...