[debug-early] make DW_AT_inline of 0 equivalent to no inline in check_die_inline()
diff mbox

Message ID 553AB5EE.9000500@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez April 24, 2015, 9:30 p.m. UTC
GCC regression hunting..  one more down.

Committed to branch.
commit fe086e62a450538efc06c064530bfd564496d6a6
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri Apr 24 14:22:58 2015 -0700

    Relax condition in check_die_inline so that DW_AT_inline of 0 is
    equivalent to no inline.

Patch
diff mbox

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index f4e6858..39046f5 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5737,7 +5737,7 @@  check_die_inline (dw_die_ref die)
   dw_attr_ref a;
   bool inline_found = false;
   FOR_EACH_VEC_SAFE_ELT (die->die_attr, ix, a)
-    if (a->dw_attr == DW_AT_inline)
+    if (a->dw_attr == DW_AT_inline && a->dw_attr_val.v.val_unsigned)
       inline_found = true;
   if (inline_found)
     {