Two more POLY_INT cases for dwarf2out.c
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 18 Sep 2019 09:43:10 +0000 (09:43 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 18 Sep 2019 09:43:10 +0000 (09:43 +0000)
commitef20d2215067b1bfa8b3f9549ca0baed636a94a0
treeed65787f11e75aca1c753424fe2a530e0190385f
parenta95b474a088187218bd4e73c1c34566e3c3fc83d
Two more POLY_INT cases for dwarf2out.c

loc_list_for_tree_1 and add_const_value_attribute currently ICE
on POLY_INTs.  loc_list_for_tree_1 can do something sensible but
add_const_value_attribute has to punt, since the constant there
needs to be a link-time rather than load-time or run-time constant.

This is tested by later SVE patches.

2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
(add_const_value_attribute): Handle CONST_POLY_INT.

From-SVN: r275868
gcc/ChangeLog
gcc/dwarf2out.c