diff options
author | Geoffrey Keating <geoffk@apple.com> | 2006-02-11 00:31:04 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2006-02-11 00:31:04 +0000 |
commit | 7405f03c5e8ad23776b65308974218e35ae72a1b (patch) | |
tree | 34c13fd3aafe8d542b0f9a1635a9180bf0a3c1bf /gcc | |
parent | 01df94d426de53a4f9f531690bbd69a567bfee22 (diff) | |
download | gcc-7405f03c5e8ad23776b65308974218e35ae72a1b.zip gcc-7405f03c5e8ad23776b65308974218e35ae72a1b.tar.gz gcc-7405f03c5e8ad23776b65308974218e35ae72a1b.tar.bz2 |
* config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
From-SVN: r110865
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/darwin.h | 10 |
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]) |