summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2003-03-28 08:47:57 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2003-03-28 07:47:57 +0000
commit1ce324c330173b65db7170925856f723a5316c18 (patch)
tree9ac0f38b7d3e0de358fa5cb26ba2e525d5d5dea1 /gcc/dwarf2out.c
parentc6cf19a8ccf0dd776856540f572cea4e110533c1 (diff)
downloadgcc-1ce324c330173b65db7170925856f723a5316c18.tar.gz
PR target/10114 and PR target/10084
PR target/10114 and PR target/10084 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r64947
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a1e27cbf7f0..3c6dec78d1b 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -8423,6 +8423,11 @@ mem_loc_descriptor (rtl, mode)
add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_deref, 0, 0));
break;
+ case LO_SUM:
+ rtl = XEXP (rtl, 1);
+
+ /* ... fall through ... */
+
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