aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 591d2da..bee42a1 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -8558,6 +8558,26 @@ loc_descriptor_from_tree (tree loc, int addressp)
return 0;
break;
+ case CONSTRUCTOR:
+ {
+ /* If this is already in memory and at a constant address, we can
+ support it. */
+ rtx rtl = TREE_CST_RTL (loc);
+
+#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:
case BIT_AND_EXPR: