https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67293

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'm fine with introducing some limit on the size of const values, with a param.
As for the other question, I think you've answered that yourself,
if the const ends up in the source, then that is supposedly because something
needed its address.  At that point it is much better to be able to print that
address in the debugger.
If you want to stream DW_AT_const_value early and actually rewrite the DWARF
during LTO later, rather than just reference unmodified DIEs from other DIEs,
then you could if you end up having an address actually remove the
DW_AT_const_value and replace it with DW_AT_location if possible.

Reply via email to