From patchwork Fri Jun 28 18:37:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cary Coutant X-Patchwork-Id: 255519 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 915622C0097 for ; Sat, 29 Jun 2013 04:38:10 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :to:subject:mime-version:content-type:content-transfer-encoding :message-id:from; q=dns; s=default; b=N0k7s+oygse6MUdlA3iTwwu219 P2eF53lmA4GMm+6YtdEFrnO8fi5p/xyeIJpXYVE5ZhykzBFbpnNxQsbIojchLmD6 EmG0L/Kj/0yMafVd13RsdvDMKuqdywh4D4sknqRpZMQUKdFBzAs84C6LZgNXGMUZ GRwpp5N6J3BelQrF8= 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:date :to:subject:mime-version:content-type:content-transfer-encoding :message-id:from; s=default; bh=LN2rWvGeqomr6gVQiUoGgKs8NsI=; b= lkK3QmQoYXz3mVPQ5ymshhEzp/lJXhzyLMl/Y924JUVtk/Q7009DPumgwgqp96Jc CjUNOqQ2irvfRDRA0GzIyVe5ev3QzLu6iXENvCfJRzVLlXLQ7+G7RxL4NXofu5ua Cdx928atbwGMghC1oIkGaZlNyMlbyuMxHSXiJHNT8eM= Received: (qmail 14786 invoked by alias); 28 Jun 2013 18:38:02 -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 14712 invoked by uid 89); 28 Jun 2013 18:37:57 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, KAM_STOCKGEN, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS, TW_CX autolearn=ham version=3.3.1 Received: from mail-qa0-f73.google.com (HELO mail-qa0-f73.google.com) (209.85.216.73) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 18:37:55 +0000 Received: by mail-qa0-f73.google.com with SMTP id hu14so168237qab.4 for ; Fri, 28 Jun 2013 11:37:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:to:subject:user-agent:mime-version:content-type :content-transfer-encoding:message-id:from:x-gm-message-state; bh=gxbHiKhIIxFwUnp1tKrd8CJogYFtb79eoxyStcb3ojo=; b=lDJZA/8sOO64Q62xbIO2NK8tnRugh7nHthM9IPKAg6u+1lgX5Fbl2xlMQkcyQdZ/Xl 6ue4NXD49jVERDABO6Of/Gu+NQAjsSfDYWdGAcZ7LooNK3cxkNWsdoGx1fxhYPuG0PJm 1yUomXUaZkQvc7yjUf945zYcpHKncEwl2RKoJdX//Hlxr0NqFXFc006C9TQxxENrxdIa HMurRTcrnm8BxVvb0WjxmhS6hmUnp8oL6Xq0v/sQg7Os5T2xKUZZ0A82voOP0aKTNkA0 Fva+a3cRMeo9V4JdlBb2netUXvQFFgfiFSgTZiZACuk8aTx9HQbhIEdhX1Myj3C1jjC8 xxuQ== X-Received: by 10.236.133.19 with SMTP id p19mr8287068yhi.54.1372444673899; Fri, 28 Jun 2013 11:37:53 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id b80si5001730yhi.2.2013.06.28.11.37.53 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Fri, 28 Jun 2013 11:37:53 -0700 (PDT) Received: from ccoutant.mtv.corp.google.com (ccoutant.mtv.corp.google.com [172.17.128.119]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id BC2C131C5AF; Fri, 28 Jun 2013 11:37:53 -0700 (PDT) Received: by ccoutant.mtv.corp.google.com (Postfix, from userid 62097) id 5CDD9160809; Fri, 28 Jun 2013 11:37:53 -0700 (PDT) Date: Fri, 28 Jun 2013 11:37:53 -0700 To: gcc-patches@gcc.gnu.org, saugustine@google.com Subject: [google/gcc-4_8] Fix ICE in output_pubname User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-Id: <20130628183753.5CDD9160809@ccoutant.mtv.corp.google.com> From: ccoutant@google.com (Cary Coutant) X-Gm-Message-State: ALoCoQk7XQPHOE3/Kp1RyQCWDK2gjc5hZJBqv2G8hzRo44gFhIeF0RZyCKIZq+McEaD4UIDtRQT4wULweGq2JQgeX35V+Xrq+nm+dLCVJxFLjJr/lFJCoNN4aBpAV+w0BTAlgAhAWDwEabjxzFhbl+DJ8uTTIWf3DfIGcyrOiLvYXzOCWrxTXA5zqclBL+IIZG0fJ2u2CZwrkgi0UGGhKd6e5nAutnRTR0YydhDhsXzgpC5o6tgF7SI= This patch is for the google/gcc-4_8 branch. A namespace alias entry can cause a DW_TAG_imported_declaration DIE to be added to the pubnames table, but we don't handle that case when generating the .debug_gnu_pubnames table. 2013-06-28 * gcc/dwarf2out.c (output_pubname): Fix global/static flag for type DIEs. Handle DW_TAG_imported_declaration. Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 200549) +++ gcc/dwarf2out.c (working copy) @@ -9147,6 +9147,7 @@ output_pubname (dw_offset die_offset, pu GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, is_static); break; case DW_TAG_namespace: + case DW_TAG_imported_declaration: GDB_INDEX_SYMBOL_KIND_SET_VALUE(flags, GDB_INDEX_SYMBOL_KIND_TYPE); break; case DW_TAG_class_type: @@ -9155,7 +9156,8 @@ output_pubname (dw_offset die_offset, pu case DW_TAG_union_type: case DW_TAG_enumeration_type: GDB_INDEX_SYMBOL_KIND_SET_VALUE(flags, GDB_INDEX_SYMBOL_KIND_TYPE); - GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, 1); + if (!is_cxx () && !is_java ()) + GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, 1); break; default: gcc_unreachable ();