From: Eric Botcazou Date: Fri, 28 Mar 2003 08:01:33 +0000 (+0100) Subject: PR target/10114 and PR target/10084 X-Git-Tag: releases/gcc-3.2.3~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3157d89cfb3eb0ca310497e6e0adbc8508c79c42;p=thirdparty%2Fgcc.git 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 From-SVN: r64952 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b6d7c1cd404..53ec07b3acc0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-03-28 Eric Botcazou + Richard Henderson + + PR target/10114 and PR target/10084 + * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM. + 2003-03-27 Janis Johnson PR sw-bug/10234 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 4eaa81b38d65..a597b6c86927 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -7792,6 +7792,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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b014b09420bd..c42f92cee346 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-03-28 Eric Botcazou + + * gcc.dg/sparc-dwarf2.c: New test. + 2003-03-26 Eric Botcazou * gcc.dg/ultrasp6.c: New test.