https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69004
--- Comment #26 from PeteVine <tulipawn at gmail dot com> --- I've just tried your patch and it seems it has improved matters somewhat but now I'm getting this: lj_gc.c ../src/luajit2/src/lj_gc.c: In function ‘lj_mem_realloc’: ../src/luajit2/src/lj_gc.c:803:5: error: corrupted value profile: ic profile counter (5689420 out of 5689366) inconsistent with basic-block count (5689366) p = g->allocf(g->allocd, p, osz, nsz); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~