From a9e8a5eede7232680aa5ce0afb776347df2aee53 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 13 Jan 2002 12:01:19 +0000 Subject: * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case. From-SVN: r48815 --- gcc/dwarf2out.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ca56ce1..9b8e4a4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7854,6 +7854,14 @@ mem_loc_descriptor (rtl, mode) mem_loc_result = int_loc_descriptor (INTVAL (rtl)); break; + case ADDRESSOF: + /* If this is a MEM, return its address. Otherwise, we can't + represent this. */ + if (GET_CODE (XEXP (rtl, 0)) == MEM) + return mem_loc_descriptor (XEXP (XEXP (rtl, 0), 0), mode); + else + return 0; + default: abort (); } -- cgit v1.1