This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add CONSTRUCTOR case to loc_descriptor_from_tree in dwarf2out.c
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 31 Jul 2003 23:02:03 +0100
- Subject: Re: Add CONSTRUCTOR case to loc_descriptor_from_tree in dwarf2out.c
- References: <10307312139.AA27740@vlsi1.ultra.nyu.edu>
Richard,
Richard Kenner wrote:
Thu Jul 31 17:30:50 2003 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
*** gcc/dwarf2out.c.jul31 Thu Jul 31 17:16:37 2003
--- gcc/dwarf2out.c Thu Jul 31 17:21:21 2003
*************** loc_descriptor_from_tree (loc, addressp)
*** 8196,8199 ****
--- 8196,8219 ----
break;
+ case CONSTRUCTOR:
+ {
+ /* If this is already in memory and at a constant address, we can
+ support it. */
+ rtx rtl = TREE_CST_RTL (loc);
^^^^^^^^^^^^ This is no longer defined on mainlined
+
+ #ifdef ASM_SIMPLIFY_DWARF_ADDR
+ if (rtl)
+ rtl = ASM_SIMPLIFY_DWARF_ADDR (rtl);
+ #endif
+
+ if (rtl == NULL_RTX || GET_CODE (rtl) != MEM
+ || !CONSTANT_P (XEXP (rtl, 0)))
+ return 0;
+
+ indirect_p = 1;
+ ret = mem_loc_descriptor (XEXP (rtl, 0), GET_MODE (rtl));
+ break;
+ }
+
case TRUTH_AND_EXPR:
case TRUTH_ANDIF_EXPR:
Graham