Patchwork Print in-constant-pool in print_node

login
register
mail settings
Submitter Jie Zhang
Date Sept. 25, 2010, 3:05 p.m.
Message ID <4C9E0FC3.2050706@codesourcery.com>
Download mbox | patch
Permalink /patch/65745/
State New
Headers show

Comments

Jie Zhang - Sept. 25, 2010, 3:05 p.m.
This patch prints out "in-constant-pool" in print_node as we do for 
"in-text-section".  Is it OK?


Regards,
Richard Guenther - Sept. 27, 2010, 9:31 a.m.
On Sat, Sep 25, 2010 at 5:05 PM, Jie Zhang <jie@codesourcery.com> wrote:
> This patch prints out "in-constant-pool" in print_node as we do for
> "in-text-section".  Is it OK?

Ok.

Thanks,
Richard.

>
> Regards,
> --
> Jie Zhang
> CodeSourcery
>
Jie Zhang - Sept. 27, 2010, 10:17 a.m.
On 09/27/2010 05:31 PM, Richard Guenther wrote:
> On Sat, Sep 25, 2010 at 5:05 PM, Jie Zhang<jie@codesourcery.com>  wrote:
>> This patch prints out "in-constant-pool" in print_node as we do for
>> "in-text-section".  Is it OK?
>
> Ok.
>
Committed on trunk. Thanks.

Patch


	* 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))