From: Geoffrey Keating Date: Sat, 11 Feb 2006 00:31:04 +0000 (+0000) Subject: * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7405f03c5e8ad23776b65308974218e35ae72a1b;p=gcc.git * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define. From-SVN: r110865 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8181bb80127..b9ba6427793 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-02-10 Geoffrey Keating + + * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define. + 2006-02-10 Diego Novillo * 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 a6a953e5de5..b9604e4c105 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])