This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/87462] [7/8/9 Regression] undefined reference error occurs when -g, -fdebug-types-section and -O2 are used at the same time
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Nov 2018 19:31:51 +0000
- Subject: [Bug debug/87462] [7/8/9 Regression] undefined reference error occurs when -g, -fdebug-types-section and -O2 are used at the same time
- Auto-submitted: auto-generated
- References: <bug-87462-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87462
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Wed Nov 14 19:30:47 2018
New Revision: 266158
URL: https://gcc.gnu.org/viewcvs?rev=266158&root=gcc&view=rev
Log:
[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.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr87462.C
trunk/gcc/testsuite/g++.dg/debug/dwarf2/pr88006.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog