From 69bd93682e164d0399a8399825ec527afc16c6e8 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Thu, 6 Feb 2003 01:23:41 +0000 Subject: dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR with *targetm.delegitimize_address. * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR with *targetm.delegitimize_address. (rtl_for_decl_location): Likewise. * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h. * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H) * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition. * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove prototype. * config/i386/i386.c (ix86_delegitimize_address): Renamed from i386_simplify_dwarf_addr. Made static. Prototyped. (TARGET_DELEGITIMIZE_ADDRESS): Update definition from i386_simplify_dwarf_addr to ix86_delegitimize_address. (ix86_find_base_term): Likewise. (maybe_get_pool_constant): Likewise. * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition. * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove prototype. * config/s390/s390.c (s390_delegitimize_address): Renamed from s390_simplify_dwarf_addr. Made static. Prototyped. (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address. From-SVN: r62468 --- gcc/dwarfout.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gcc/dwarfout.c') diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index e9a35bb..07528cd 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -1,6 +1,6 @@ /* Output Dwarf format symbol table information from the GNU C compiler. - Copyright (C) 1992, 1993, 1995, 1996, 1997, 1998, 2002, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002, 2003 Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@monkeys.com) of Network Computing Devices. This file is part of GCC. @@ -581,6 +581,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "toplev.h" #include "tm_p.h" #include "debug.h" +#include "target.h" #include "langhooks.h" /* NOTE: In the comments in this file, many references are made to @@ -2097,9 +2098,7 @@ output_mem_loc_descriptor (rtl) which is actually within the array. That's *not* necessarily the same as the zeroth element of the array. */ -#ifdef ASM_SIMPLIFY_DWARF_ADDR - rtl = ASM_SIMPLIFY_DWARF_ADDR (rtl); -#endif + rtl = (*targetm.delegitimize_address) (rtl); switch (GET_CODE (rtl)) { -- cgit v1.1