howarth at bromo.med.uc.edu
Tue Feb 8 11:50:34 PST 2011
I noticed that Geoff Keating's old hack of...
+#define DBX_REGISTER_NUMBER(n) \
+ (TARGET_64BIT ? dbx64_register_map[n] \
+ : write_symbols == DWARF2_DEBUG ? svr4_dbx_register_map[n] \
+ : dbx_register_map[n])
+/* 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))
is still present in config/i386/darwin.h for llvm-gcc42, but I can't find an analogous code in clang.
Does clang handle this issue differently than llvm-gcc42?
More information about the cfe-dev