diff mbox

Print in-constant-pool in print_node

Message ID 4C9E0FC3.2050706@codesourcery.com
State New
Headers show

Commit Message

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


Regards,

Comments

Richard Biener Sept. 27, 2010, 9:31 a.m. UTC | #1
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. UTC | #2
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.
diff mbox

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