From 368f4cd6f3270385da2a3f2b845039e83d3740cd Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 26 Aug 1999 08:47:03 +0000 Subject: Accept LABEL_REFs as well as SYMBOL_REFs in mem_loc_descriptor() From-SVN: r28891 --- gcc/ChangeLog | 5 +++++ gcc/dwarf2out.c | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1177d1a..96df422 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 26 09:46:16 1999 Nick Clifton + + * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well + as SYMBOL_REFs. + 1999-08-25 22:10 -0700 Zack Weinberg * system.h: Don't redefine abort or trim_filename. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 500d41e..bcb9476 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -6615,6 +6615,10 @@ mem_loc_descriptor (rtl) add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_deref, 0, 0)); break; + case LABEL_REF: + /* Some ports can transform a symbol ref into a label ref, because + the symbol ref is too far away and has to be dumped into a constant + pool. */ case CONST: case SYMBOL_REF: mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0); -- cgit v1.1