[Bug debug/86687] Wrong debug information for string types passed as parameters
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 27 07:22:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86687
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-debug
Target| |dwarf
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-07-27
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org,
| |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
Known to fail| |4.8.5, 7.3.1, 8.2.0
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
<2><956a>: Abbrev Number: 115 (DW_TAG_formal_parameter)
<956b> DW_AT_abstract_origin: <0x9503>
<956f> DW_AT_location : 2 byte block: 91 58 (DW_OP_fbreg: -40)
<2><9572>: Abbrev Number: 115 (DW_TAG_formal_parameter)
<9573> DW_AT_abstract_origin: <0x950c>
<9577> DW_AT_location : 2 byte block: 91 50 (DW_OP_fbreg: -48)
<2><957a>: Abbrev Number: 115 (DW_TAG_formal_parameter)
<957b> DW_AT_abstract_origin: <0x9516>
<957f> DW_AT_location : 2 byte block: 91 48 (DW_OP_fbreg: -56)
<2><9582>: Abbrev Number: 115 (DW_TAG_formal_parameter)
<9583> DW_AT_abstract_origin: <0x9522>
<9587> DW_AT_location : 2 byte block: 91 40 (DW_OP_fbreg: -64)
<2><958a>: Abbrev Number: 115 (DW_TAG_formal_parameter)
<958b> DW_AT_abstract_origin: <0x952e>
<2><9516>: Abbrev Number: 113 (DW_TAG_formal_parameter)
<9517> DW_AT_name : (indirect string, offset: 0x55ba): base
<951b> DW_AT_decl_file : 1
<951c> DW_AT_decl_line : 46
<951d> DW_AT_decl_column : 50
<951e> DW_AT_type : <0x9240>
<2><9522>: Abbrev Number: 113 (DW_TAG_formal_parameter)
<9523> DW_AT_name : (indirect string, offset: 0x3019): dir_hint
<9527> DW_AT_decl_file : 1
<9528> DW_AT_decl_line : 46
<9529> DW_AT_decl_column : 63
<952a> DW_AT_type : <0x2bda>
nowhere do we say the parameter is passed by invisible reference.
Simpler testcase should be possible.
More information about the Gcc-bugs
mailing list