debug/94273 - avoid creating type DIEs for DINFO_LEVEL_TERSE
authorRichard Biener <rguenther@suse.de>
Fri, 27 Mar 2020 12:57:42 +0000 (13:57 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 27 Mar 2020 13:00:43 +0000 (14:00 +0100)
commit45cfaf9903d3f5aa916d330f2013eb7d820a7137
tree6e3c1c751c03776994edd86e8a48a8025855c6ea
parent917e21e8bcddf5047ee0ced063fca412ad81ce7f
debug/94273 - avoid creating type DIEs for DINFO_LEVEL_TERSE

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.
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/pr94273.C [new file with mode: 0644]