GCC 4.3.2 -O1 and -O2 optimization causes some weirdness with maybe_remove_autoexclusion() in exclude.cc. This hack fixes the problem and gives a diagnostic message when the problem is encountered.
H6UWUKJYSJWZPMNYKX7JM6LXENIEKJ7BW3RWP6FUWOY3YPB5J6LQC {if (invalid_monster_type(exc->mon)){// Bug 2887690: for some reason -O1 or -O2 with gcc// 4.3.2 causes exc->autoex to always be true when a// game is saved and then restored. This hack fixes// things until we can figure out the root cause.mprf(MSGCH_DIAGNOSTICS, "maybe_remove_autoexclusion(): ""exclusion at (%d, %d) not really an auto-exclude ""[bug #2887690]; fixing",(int) exc->mon, exc->pos.x, exc->pos.y);exc->autoex = false;return;}