This avoids completing types for DINFO_LEVEL_TERSE by using
the should_emit_struct_debug machinery.
2020-03-27 Richard Biener <rguenther@suse.de>
PR debug/94273
* dwarf2out.c (should_emit_struct_debug): Return false for
DINFO_LEVEL_TERSE.
* g++.dg/debug/pr94273.C: New testcase.
+2020-03-27 Richard Biener <rguenther@suse.de>
+
+ PR debug/94273
+ * dwarf2out.c (should_emit_struct_debug): Return false for
+ DINFO_LEVEL_TERSE.
+
2020-03-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/94352
static bool
should_emit_struct_debug (tree type, enum debug_info_usage usage)
{
+ if (debug_info_level <= DINFO_LEVEL_TERSE)
+ return false;
+
enum debug_struct_file criterion;
tree type_decl;
bool generic = lang_hooks.types.generic_p (type);
+2020-03-27 Richard Biener <rguenther@suse.de>
+
+ PR debug/94273
+ * g++.dg/debug/pr94273.C: New testcase.
+
2020-03-27 Tobias Burnus <tobias@codesourcery.com>
PR fortran/93957
--- /dev/null
+class a {
+ virtual void c() {}
+} extern b;
+a b;