diff options
author | Richard Biener <rguenther@suse.de> | 2019-01-15 16:06:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-01-15 16:06:42 +0000 |
commit | 17f781605e695711a3383b0474e806ce8150cf49 (patch) | |
tree | 86f4c73ec0b6597d5f20c1c2e23021d0ddb3f99a /gcc/dwarf2out.c | |
parent | 41bc37bad8cb29027155f247e6ad4be83d64f163 (diff) | |
download | gcc-17f781605e695711a3383b0474e806ce8150cf49.zip gcc-17f781605e695711a3383b0474e806ce8150cf49.tar.gz gcc-17f781605e695711a3383b0474e806ce8150cf49.tar.bz2 |
re PR debug/88046 (ICE in add_data_member_location_attribute at gcc/dwarf2out.c:19237 since r261885)
2019-01-15 Richard Biener <rguenther@suse.de>
PR debug/88046
* dwarf2out.c (gen_member_die): Do not generate inheritance
DIEs late.
* g++.dg/lto/pr88046_0.C: New testcase.
From-SVN: r267940
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8b4f7bc..a1b5a5e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -25046,7 +25046,7 @@ gen_member_die (tree type, dw_die_ref context_die) the TREE node representing the appropriate (containing) type. */ /* First output info about the base classes. */ - if (binfo) + if (binfo && early_dwarf) { vec<tree, va_gc> *accesses = BINFO_BASE_ACCESSES (binfo); int i; |