aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2019-01-03 12:05:24 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-01-03 12:05:24 +0100
commitc04d40dae8a490e28d4f07c46e57719fb0a4eaf6 (patch)
treefb1fc31d3445b2773c646f450812c1f9d995ef8f /gcc/dwarf2out.c
parent8ae4d4298d9460344c47687899d927ff3264a343 (diff)
downloadgcc-c04d40dae8a490e28d4f07c46e57719fb0a4eaf6.zip
gcc-c04d40dae8a490e28d4f07c46e57719fb0a4eaf6.tar.gz
gcc-c04d40dae8a490e28d4f07c46e57719fb0a4eaf6.tar.bz2
re PR debug/88644 (Unexpected pub type info eliminated after r246973 (causes pubtypes-*.c to regress).)
PR debug/88644 * dwarf2out.c (modified_type_die): If type is equal to sizetype, change it to qualified_type. * gcc.dg/debug/dwarf2/pr88644.c: New test. * gcc.dg/debug/dwarf2/pr80263.c: Remove darwin hack. 2019-01-03 Iain Sandoe <iain@sandoe.co.uk> * gcc.dg/pubtypes-2.c: Adjust expected pubtypes length. * gcc.dg/pubtypes-3.c: Likewise. * gcc.dg/pubtypes-4.c: Likewise. From-SVN: r267550
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 94e36b1..8d9a384 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -13152,6 +13152,8 @@ modified_type_die (tree type, int cv_quals, bool reverse,
&& TYPE_PRECISION (sizetype) == TYPE_PRECISION (size_type_node)
&& TYPE_UNSIGNED (sizetype) == TYPE_UNSIGNED (size_type_node))
qualified_type = size_type_node;
+ if (type == sizetype)
+ type = qualified_type;
}
/* If we do, then we can just use its DIE, if it exists. */