[Bug debug/85550] [7/8/9 Regression] -fdebug-types-section broken with DW_OP_addr in DW_AT_location

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 27 11:36:00 GMT 2018


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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Huh, I never expected types to have "locations" ;)  I don't think we can use
DW_OP_GNU_variable_value because the refered to DIE would be in another
section.

We could simply avoid splitting out those types, right?  Those with DW_OP_addr,
that is.

I've always wanted a way to have locations in symbolical form thus in this
case sth like DW_OP_GNU_expr_value and that refering to a string like
"A::foo".  That works even for the optimized out case then.


More information about the Gcc-bugs mailing list