From patchwork Thu Apr 19 13:34:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 153756 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 654FCB7003 for ; Thu, 19 Apr 2012 23:35:35 +1000 (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=1335447336; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=OBbvHkzxvhzHijOxcim2 eKvynFI=; b=iqvnpEHM6XGX4pnWqGBkOmzFdqr4sAd845fvJLUp1byd2B4+XvgR OdDdI1L/7n+U2z4ndReGR/XyhaqA6V/Gar5FNvH2dQwu/iM9YDoTRIzpDCcp5Zo7 OS9PST/tUDuIRJIUAwUR062V5Dw1VUnXi9yH6485QbaiIRR3DFLLS0Y= 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:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=PtilqFVSTrpwwgeUF4leDQZ4fVRvKHxnZVl67MvM9uat8C8quzvMvJpCUSeOST zg6hLZSCvp5KTf+jpWAOBUKo9Z+hZj5dIau5N5M7CYApjatSqvrAQ4nc+HBds8hz koGdSgqTT6/c9IUsv/IXhgjs3nyAwGs13Z0gyOOR0ekfk=; Received: (qmail 31788 invoked by alias); 19 Apr 2012 13:35:12 -0000 Received: (qmail 31636 invoked by uid 22791); 19 Apr 2012 13:35:11 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Apr 2012 13:34:37 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 6535B95574 for ; Thu, 19 Apr 2012 15:34:36 +0200 (CEST) Date: Thu, 19 Apr 2012 15:34:36 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix symtab dumping Message-ID: MIME-Version: 1.0 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 Committed as obvious. Richard. 2012-04-19 Richard Guenther * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER for dumping DECL_SECTION_NAME. Index: gcc/symtab.c =================================================================== --- gcc/symtab.c (revision 186591) +++ gcc/symtab.c (working copy) @@ -402,7 +402,7 @@ dump_symtab_base (FILE *f, symtab_node n fprintf (f, " one_only"); if (DECL_SECTION_NAME (node->symbol.decl)) fprintf (f, " section_name:%s", - IDENTIFIER_POINTER (DECL_SECTION_NAME (node->symbol.decl))); + TREE_STRING_POINTER (DECL_SECTION_NAME (node->symbol.decl))); if (DECL_VISIBILITY_SPECIFIED (node->symbol.decl)) fprintf (f, " visibility_specified"); if (DECL_VISIBILITY (node->symbol.decl))