diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2016-08-12 07:11:36 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2016-08-12 07:11:36 +0000 |
commit | 71e1a6a4c799e27be77f593c82b1575e094ea548 (patch) | |
tree | 4cbe33f6735cc7602988194ca2515c67d921361d /gcc/fortran/decl.c | |
parent | 8aaf799b005461231d75f0889e3c78bd9b35eed9 (diff) | |
download | gcc-71e1a6a4c799e27be77f593c82b1575e094ea548.zip gcc-71e1a6a4c799e27be77f593c82b1575e094ea548.tar.gz gcc-71e1a6a4c799e27be77f593c82b1575e094ea548.tar.bz2 |
[PR55641] drop spurious const_type from reference_type variables
Although C++ reference types, denoted by DW_TAG_reference_type in
DWARFv2+ debug info, are unchangeable, we output names of reference type
with DW_TAG_const_type, because internally we mark such variables as
TREE_READONLY. That's an internal implementation detail that shouldn't
leak to debug information. This patch fixes this.
for gcc/ChangeLog
PR debug/55641
* dwarf2out.c (decl_quals): Don't map TREE_READONLY to
TYPE_QUAL_CONST in reference-typed decls.
for gcc/testsuite/ChangeLog
PR debug/55641
* g++.dg/debug/dwarf2/ref-1.C: New.
From-SVN: r239402
Diffstat (limited to 'gcc/fortran/decl.c')
0 files changed, 0 insertions, 0 deletions