]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/final.c
CTF/BTF debug formats
[thirdparty/gcc.git] / gcc / final.c
index dba0b0abeb7314bdc2e656e17aeff0684a1ec8e5..ac6892d041ca3bf3d656589e2e7ee3c4a00f2b5f 100644 (file)
@@ -1429,7 +1429,7 @@ static bool
 dwarf2_debug_info_emitted_p (tree decl)
 {
   /* When DWARF2 debug info is not generated internally.  */
-  if (!dwarf_debuginfo_p ())
+  if (!dwarf_debuginfo_p () && !dwarf_based_debuginfo_p ())
     return false;
 
   if (DECL_IGNORED_P (decl))