http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47324
--- Comment #12 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-02-08 02:28:04 UTC --- A couple historical commits... http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00874.html http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01704.html So Geoff introduced... /* Unfortunately, the 32-bit EH information also doesn't use the standard DWARF register numbers. */ #define DWARF2_FRAME_REG_OUT(n, for_eh) \ (! (for_eh) || write_symbols != DWARF2_DEBUG || TARGET_64BIT ? (n) \ : (n) == 5 ? 4 \ : (n) == 4 ? 5 \ : (n) >= 11 && (n) <= 18 ? (n) + 1 \ : (n)) as a hack and we have been living with it ever since.