From cba96cb7e0eb5ee34c57f3f9c92530128fbaabf3 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 11 Aug 1998 13:23:44 +0000 Subject: [PATCH] Fix sparc64-elf build problem. * dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use ASM_OUTPUT_DWARF2_ADDR_CONST if defined. From-SVN: r21674 --- gcc/ChangeLog | 3 +++ gcc/dwarf2out.c | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 248156ceff6..1b8456363b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Tue Aug 11 12:27:03 1998 Jim Wilson + * dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use + ASM_OUTPUT_DWARF2_ADDR_CONST if defined. + * mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16. Tue Aug 11 18:12:53 1998 Dave Love diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 26283cbaa07..6af786cbf2b 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -346,6 +346,16 @@ static void dwarf2out_stack_adjust PROTO((rtx)); } while (0) #endif +/* ??? This macro takes an RTX in dwarfout.c and a string in dwarf2out.c. + We resolve the conflict by creating a new macro ASM_OUTPUT_DWARF2_ADDR_CONST + for ports that want to support both DWARF1 and DWARF2. This needs a better + solution. See also the comments in sparc/sp64-elf.h. */ +#ifdef ASM_OUTPUT_DWARF2_ADDR_CONST +#undef ASM_OUTPUT_DWARF_ADDR_CONST +#define ASM_OUTPUT_DWARF_ADDR_CONST(FILE,ADDR) \ + ASM_OUTPUT_DWARF2_ADDR_CONST (FILE, ADDR) +#endif + #ifndef ASM_OUTPUT_DWARF_ADDR_CONST #define ASM_OUTPUT_DWARF_ADDR_CONST(FILE,ADDR) \ fprintf ((FILE), "\t%s\t%s", UNALIGNED_WORD_ASM_OP, (ADDR))