Revert using -Og instead of -O0.  Contrary to what the GCC developers say,
it totally interferes with debugging, as I get some important variables
<optimized out> when trying to print their values.