https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57079
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Something changed in GCC 8 and we get: <bb 4> : x_22 = __builtin_malloc (144); if (x_22 == 0B) goto <bb 5>; [INV] else goto <bb 6>; [INV] <bb 5> : _gfortran_os_error (&"Allocation would exceed memory limit"[1]{lb: 1 sz: 1}); ... And no more __builtin_calloc either.