diff options
author | Nathan Sidwell <nathan@acm.org> | 2018-11-14 19:30:47 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2018-11-14 19:30:47 +0000 |
commit | 89d9bf44969f8c244b0039d01e6546d9f43e8410 (patch) | |
tree | e24c92c7c661777a9703651f7a7e01ba10c13acd /gcc/dwarf2out.c | |
parent | 1ded030b85ae26a11a062505786b6701d9ef588f (diff) | |
download | gcc-89d9bf44969f8c244b0039d01e6546d9f43e8410.zip gcc-89d9bf44969f8c244b0039d01e6546d9f43e8410.tar.gz gcc-89d9bf44969f8c244b0039d01e6546d9f43e8410.tar.bz2 |
[debug/88006] -fdebug-types-section gives undefined ref
https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01280.html
PR debug/88006
PR debug/87462
* dwarf2out.c (dwarf2out_finish): Apply resolve_addr to comdat
type list.
* g++.dg/debug/dwarf2/pr87462.C: New.
* g++.dg/debug/dwarf2/pr88006.C: New.
From-SVN: r266158
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8b478aa..aba8843 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -31182,6 +31182,8 @@ dwarf2out_finish (const char *filename) FOR_EACH_CHILD (die, c, gcc_assert (! c->die_mark)); } #endif + for (ctnode = comdat_type_list; ctnode != NULL; ctnode = ctnode->next) + resolve_addr (ctnode->root_die); resolve_addr (comp_unit_die ()); move_marked_base_types (); |