aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index dba0b0a..ac6892d 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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))