This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add CONSTRUCTOR case to loc_descriptor_from_tree in dwarf2out.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]