* dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.

From-SVN: r48815
This commit is contained in:
Richard Kenner 2002-01-13 12:01:19 +00:00 committed by Richard Kenner
parent 1536ef88f1
commit a9e8a5eede
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
2002-01-12 Tom Rix <trix@redhat.com>
* config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for

View File

@ -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 ();
}