+2018-10-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/87647
+ * varasm.c (decode_addr_const): Handle COMPOUND_LITERAL_EXPR.
+
2018-10-20 Andreas Schwab <schwab@linux-m68k.org>
* doc/ux.texi: Move @section directly after @node.
--- /dev/null
+/* PR middle-end/87647 */
+
+struct A {};
+struct A *const b = &(struct A) {};
+struct B { char *s; struct A *t; };
+void bar (struct B *);
+
+void
+foo (void)
+{
+ struct B a[] = { "", b, "", b, "", b, "", b, "", b, "", b, "", b, "", b,
+ "", b, "", b, "", b, "", b, "", b, "", b, "", b, "", b,
+ "", b };
+ bar (a);
+}
gen_rtx_SYMBOL_REF (Pmode, "origin of addresses"));
break;
+ case COMPOUND_LITERAL_EXPR:
+ gcc_assert (COMPOUND_LITERAL_EXPR_DECL (target));
+ x = DECL_RTL (COMPOUND_LITERAL_EXPR_DECL (target));
+ break;
+
default:
gcc_unreachable ();
}