On 3/14/19 7:01 PM, Jakub Jelinek wrote:
Hi!
On the following testcase, we have tree initializers that satisfy
initializer_constant_valid_p and do:
rtl = rtl_for_decl_init (init, type);
if (rtl)
return add_const_value_attribute (die, rtl);
add_const_value_attribute has a list of rtl codes it expects in the
initializers (and wants to handle only the simplest cases anyway), but
doesn't cover what can appear in these initializers, MINUS for the pointer
subtraction and the *_EXTEND for the casts.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2019-03-14 Jakub Jelinek <ja...@redhat.com>
PR debug/89704
* dwarf2out.c (add_const_value_attribute): Return false for MINUS,
SIGN_EXTEND and ZERO_EXTEND.
OK.
Jason