* config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
authorGeoffrey Keating <geoffk@apple.com>
Sat, 11 Feb 2006 00:31:04 +0000 (00:31 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sat, 11 Feb 2006 00:31:04 +0000 (00:31 +0000)
From-SVN: r110865

gcc/ChangeLog
gcc/config/i386/darwin.h

index 8181bb801279d2c7626dc0e8e790321a240a1095..b9ba6427793099aa333c2f009295f4de8507b9e8 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-10  Geoffrey Keating  <geoffk@apple.com>
+
+       * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
+
 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
 
        * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
index a6a953e5de56c0d00fe5c460ec14620388de2a8c..b9604e4c105c8a0b0c25f0d20f28842e791ece2d 100644 (file)
@@ -152,3 +152,13 @@ extern void darwin_x86_file_end (void);
        }                                                               \
       else fprintf (FILE, "\tcall mcount\n");                          \
     } while (0)
+
+/* Darwin uses the standard DWARF register numbers but the default
+   register numbers for STABS.  Fortunately for 64-bit code the
+   default and the standard are the same.  */
+#undef DBX_REGISTER_NUMBER
+#define DBX_REGISTER_NUMBER(n) (TARGET_64BIT                   \
+                               ? dbx64_register_map[n]         \
+                               : write_symbols == DWARF2_DEBUG \
+                               ? svr4_dbx_register_map[n]      \
+                               : dbx_register_map[n])