https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69004
--- Comment #15 from PeteVine <tulipawn at gmail dot com> --- After deleting physfs profile data I got a little further (using gcc 6.1.0): ../src/luajit2/src/lj_gc.c: In function ‘lj_mem_newgco’: ../src/luajit2/src/lj_gc.c:816:10: error: corrupted value profile: ic profile counter (6968126 out of 6967697) inconsistent with basic-block count (6967697) GCobj *o = (GCobj *)g->allocf(g->allocd, NULL, 0, size); ^ ../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 (7798609 out of 7798543) inconsistent with basic-block count (7798543) p = g->allocf(g->allocd, p, osz, nsz); ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/luajit2/src/lj_gc.c: In function ‘lj_gc_step_fixtop’: ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: profile data is not flow-consistent } ^ ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 2-3 thought to be 952579 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 2-4 thought to be -2 ../src/luajit2/src/lj_gc.c: In function ‘gc_onestep’: ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: profile data is not flow-consistent ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 2-28 thought to be -10011 ../src/luajit2/src/lj_gc.c: In function ‘gc_sweep’: ../src/luajit2/src/lj_gc.c:405:7: error: corrupted value profile: ic profile counter (8004397 out of 8004387) inconsistent with basic-block count (8004387) gc_freefunc[o->gch.gct - ~LJ_TSTR](g, o); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/luajit2/src/lj_gc.c: In function ‘gc_shrink’: ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: profile data is not flow-consistent } ^ ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 4-5 thought to be -2 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 4-1 thought to be 2 ../src/luajit2/src/lj_gc.c: In function ‘gc_traverse_tab’: ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: edge from 40 to 41 exceeds maximal count ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: profile data is not flow-consistent ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 9-10 thought to be 354234 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 9-21 thought to be -7 ../src/luajit2/src/lj_gc.c: In function ‘gc_mark_start’: ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: profile data is not flow-consistent ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 2-3 thought to be 14165 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 2-4 thought to be -1 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 4-5 thought to be 14168 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 4-6 thought to be -1 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 7-8 thought to be 14167 ../src/luajit2/src/lj_gc.c:838:1: error: corrupted profile info: number of executions for edge 7-9 thought to be -2