https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92207
--- Comment #10 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- A bit more trace from the gdb session as evidence. (gdb) p HeapLimit 'HeapLimit' has unknown type; cast it to its declared type (gdb) p &HeapLimit $1 = (<data variable, no debug info> *) 0x48f78 (gdb) x/x $1 0x48f78: 0x0804a000 (gdb) p __heap_limit No symbol "__heap_limit" in current context.