aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/i386/darwin.h10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8181bb8..b9ba642 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index a6a953e..b9604e4 100644
--- a/gcc/config/i386/darwin.h
+++ b/gcc/config/i386/darwin.h
@@ -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])