Re: [PATCH] expand: Fix up LTO ICE with COMPOUND_LITERAL_EXPR [PR99849]

2021-04-10 Thread Richard Biener
On April 10, 2021 8:16:16 AM GMT+02:00, Jakub Jelinek wrote: >Hi! > >The gimplifier optimizes away COMPOUND_LITERAL_EXPRs, but they can >remain >in the form of ADDR_EXPR of COMPOUND_LITERAL_EXPRs in static >initializers. >By the TREE_STATIC check I meant to check that the underlying decl of >the c

[PATCH] expand: Fix up LTO ICE with COMPOUND_LITERAL_EXPR [PR99849]

2021-04-09 Thread Jakub Jelinek via Gcc-patches
Hi! The gimplifier optimizes away COMPOUND_LITERAL_EXPRs, but they can remain in the form of ADDR_EXPR of COMPOUND_LITERAL_EXPRs in static initializers. By the TREE_STATIC check I meant to check that the underlying decl of the compound literal is a global rather than automatic variable which obvio