From patchwork Sat Sep 25 15:05:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Zhang X-Patchwork-Id: 65745 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 8222FB70D0 for ; Sun, 26 Sep 2010 01:05:54 +1000 (EST) Received: (qmail 32756 invoked by alias); 25 Sep 2010 15:05:52 -0000 Received: (qmail 32747 invoked by uid 22791); 25 Sep 2010 15:05:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Sep 2010 15:05:47 +0000 Received: (qmail 15802 invoked from network); 25 Sep 2010 15:05:45 -0000 Received: from unknown (HELO ?192.168.1.106?) (jie@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Sep 2010 15:05:45 -0000 Message-ID: <4C9E0FC3.2050706@codesourcery.com> Date: Sat, 25 Sep 2010 23:05:39 +0800 From: Jie Zhang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100918 Icedove/3.1.4 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: Print in-constant-pool in print_node 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 This patch prints out "in-constant-pool" in print_node as we do for "in-text-section". Is it OK? Regards, * print-tree.c (print_node): Print in-constant-pool. Index: print-tree.c =================================================================== --- print-tree.c (revision 164619) +++ print-tree.c (working copy) @@ -439,6 +439,8 @@ print_node (FILE *file, const char *pref if (code == VAR_DECL && DECL_IN_TEXT_SECTION (node)) fputs (" in-text-section", file); + if (code == VAR_DECL && DECL_IN_CONSTANT_POOL (node)) + fputs (" in-constant-pool", file); if (code == VAR_DECL && DECL_COMMON (node)) fputs (" common", file); if (code == VAR_DECL && DECL_THREAD_LOCAL_P (node))