From patchwork Fri Apr 24 21:30:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 464419 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C46521402D1 for ; Sat, 25 Apr 2015 07:30:45 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=t5Cyw8+b; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=kmCAY/mHIus9X2VPQmxvPYShBz3G6ZcCrGtXger8D5HrYs 9RhGHxqi7qVGk8qXBvitTlI++wVqFH3Kzrbf7s373IFe5YupaZ1ETres/761a059 wAoT6BASULNjblgCntelAWMWlUAyS0tBnwmbF8TKnAYGqmt5BRinDi5ZUcxzo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=vqkG1rJWF1BaLVtQThDj+t2ksdI=; b=t5Cyw8+bT2QibGbCC4sg AVfrWtuSVMUwnR2KdyZarYikFvSrMFY3T1miXpkQW5palR8Fdt1vI5g6CpGHDYMg upCU/B6KZue1JAVTJn22DYF+1sRyLzQfJyXNXZuMna741hxadgHP0/T1zian40P0 ce7kn7AyVW3rQONu/tLYsxA= Received: (qmail 104111 invoked by alias); 24 Apr 2015 21:30:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 104055 invoked by uid 89); 24 Apr 2015 21:30:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 24 Apr 2015 21:30:25 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3OLUNSJ027450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 24 Apr 2015 17:30:23 -0400 Received: from reynosa.quesejoda.com (vpn-48-200.rdu2.redhat.com [10.10.48.200]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3OLUM0R008739 for ; Fri, 24 Apr 2015 17:30:22 -0400 Message-ID: <553AB5EE.9000500@redhat.com> Date: Fri, 24 Apr 2015 14:30:22 -0700 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: gcc-patches Subject: [debug-early] make DW_AT_inline of 0 equivalent to no inline in check_die_inline() GCC regression hunting.. one more down. Committed to branch. commit fe086e62a450538efc06c064530bfd564496d6a6 Author: Aldy Hernandez 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. 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) {