aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-08-11 13:23:44 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-08-11 06:23:44 -0700
commitcba96cb7e0eb5ee34c57f3f9c92530128fbaabf3 (patch)
tree2f6da8b1ad194f68991f91addddddff889596c07 /gcc/dwarf2out.c
parentca45b9134f329a8680bd0a6562523d7741985df1 (diff)
downloadgcc-cba96cb7e0eb5ee34c57f3f9c92530128fbaabf3.zip
gcc-cba96cb7e0eb5ee34c57f3f9c92530128fbaabf3.tar.gz
gcc-cba96cb7e0eb5ee34c57f3f9c92530128fbaabf3.tar.bz2
Fix sparc64-elf build problem.
* dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use ASM_OUTPUT_DWARF2_ADDR_CONST if defined. From-SVN: r21674
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 26283cb..6af786c 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))