http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60370
--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 32239 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32239&action=edit Tentative patch moving realloc code before bound checking This patch doesn't work, so it may not be a code ordering issue after all.