From patchwork Thu Oct 25 18:31:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cary Coutant X-Patchwork-Id: 194264 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]) by ozlabs.org (Postfix) with SMTP id 464C52C00B0 for ; Fri, 26 Oct 2012 05:31:52 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1351794713; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=jm2O9mb sU1o1HHFqUmQmoYDkE8E=; b=YfmhRKiBlxJVdrln7SahbyPmAL0gLTvhSi4pSxJ pMLAhrJlkAwgVCXIEZTYPkXuPkPrD/ZyDhfnOGoVFVCSNdTKk/v7QTRFmK60047A YP0XYK+8EddWa8AG793pV8XXCIoaGJImyxUJSn1qSbSdfsbSig04gww4kAtSUjcA +POs= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:X-System-Of-Record:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=eITwxdXbou4yClwmk4eWFW53gRE6ditgGvzHPkHaDtyU0dFhQ+u+DVzh2fyPoG RSngNZ1jPB3Lki9mDooWVGWxouf/sLlIIu8+kqUlOlt0uljNhhdOQ2+e3ddJyKHO snR0m3330CBCojp3PPEk54QOUvmgEZYLP8mUqajK7K4Ng=; Received: (qmail 21874 invoked by alias); 25 Oct 2012 18:31:43 -0000 Received: (qmail 21786 invoked by uid 22791); 25 Oct 2012 18:31:42 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Oct 2012 18:31:35 +0000 Received: by mail-la0-f47.google.com with SMTP id h5so1910198lam.20 for ; Thu, 25 Oct 2012 11:31:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-system-of-record:x-gm-message-state; bh=44kN+x3+Ow7ubj5YwUilg8v6uxaYpsFBvhIAeMsAIcA=; b=CvW7bU58gYloxx+k4b7igkRP+qsq/7Wz/uPmwV4NmwD5VqFludULPXhamVANAk06PZ Qgb73qpk35vk29gDohsjVKHtitqBzEflQccGlx0nJBzuwAfHVor0dDbxYOnj14koxHgd aW3YoEHuq0IUF5ygNDmyXQQ/nXKE7eVgn+yomeYvL18U4a2xWahijiV0LN/VWBiFStNo 4Xf/+vi89xkeW8B0KikgQcw3o3SDJ1ylrZLMJXrVoJEQIp3L8EpE22DtPBW8nHuKuVME W88mkIgnHNJgbyxGSPmZgCv8m4FaYuenCmxJ2tbEo/EBY5cuED4Y/8Gkye+B0J4Ifk6C rdLQ== MIME-Version: 1.0 Received: by 10.112.54.40 with SMTP id g8mr8220634lbp.49.1351189893174; Thu, 25 Oct 2012 11:31:33 -0700 (PDT) Received: by 10.112.6.41 with HTTP; Thu, 25 Oct 2012 11:31:33 -0700 (PDT) Date: Thu, 25 Oct 2012 11:31:33 -0700 Message-ID: Subject: [patch] Fix PR 55063: Check whether DIE is already a declaration From: Cary Coutant To: gcc-patches X-System-Of-Record: true X-Gm-Message-State: ALoCoQnO7b9BCnwRwF83GYdHhtW4drJxoHvQhqSFvVii+OKUoYL6PhoSfQ9/0ahlliJnStUTYk6+mrAC5nD1xgqGEfDyrZXaEbXw/cb0DNLDuIcHNQk90JgG3S1Gm3dOEC0qDrF59i4QA6MgBsNjHtaOF5j+O20ED/eWqTva2Ib5q6d9aBrpfJ9HGjIkV3uviwhpDvno2iiO X-IsSubscribed: yes 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 I've committed the following fix for PR 55063: -cary 2012-10-25 Cary Coutant PR debug/55063 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is already a declaration. Index: dwarf2out.c =================================================================== --- dwarf2out.c (revision 192817) +++ dwarf2out.c (working copy) @@ -21259,7 +21259,8 @@ prune_unused_types_prune (dw_die_ref die /* If we pruned children, and this is a class, mark it as a declaration to inform debuggers that this is not a complete class definition. */ - if (pruned && die->die_mark == 1 && class_scope_p (die)) + if (pruned && die->die_mark == 1 && class_scope_p (die) + && ! is_declaration_die (die)) add_AT_flag (die, DW_AT_declaration, 1); }