diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-05-27 06:18:38 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-05-27 04:18:38 +0000 |
commit | 50efcce1d5ea69be69e39048d9649264ddcd7361 (patch) | |
tree | d8f2d6ee50de4a3d7d6e80c118985acd5c7adfcf /gcc | |
parent | 48f5146b1ad1bb76b1c4dd5b79c67a8479056916 (diff) | |
download | gcc-50efcce1d5ea69be69e39048d9649264ddcd7361.zip gcc-50efcce1d5ea69be69e39048d9649264ddcd7361.tar.gz gcc-50efcce1d5ea69be69e39048d9649264ddcd7361.tar.bz2 |
tree.h (decl_comdat_group): Declare.
* tree.h (decl_comdat_group): Declare.
* cgraph.h (symtab_in_same_comdat_p): Move offline to ...
* tree.c (decl_comdat_group): Here.
From-SVN: r210956
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cgraph.h | 10 | ||||
-rw-r--r-- | gcc/tree.c | 10 | ||||
-rw-r--r-- | gcc/tree.h | 1 |
4 files changed, 17 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9d5ae92..61b5a44 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-05-26 Jan Hubicka <hubicka@ucw.cz> + + * tree.h (decl_comdat_group): Declare. + * cgraph.h (symtab_in_same_comdat_p): Move offline to ... + * tree.c (decl_comdat_group): Here. + 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com> PR rtl-optimization/61222 diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 91bcc00..8556e2d 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -1621,14 +1621,4 @@ symtab_in_same_comdat_p (symtab_node *one, symtab_node *two) return one->get_comdat_group () == two->get_comdat_group (); } - -/* Return comdat group of DECL. */ -static inline tree -decl_comdat_group (tree node) -{ - struct symtab_node *snode = symtab_get_node (node); - if (!snode) - return NULL; - return snode->get_comdat_group (); -} #endif /* GCC_CGRAPH_H */ @@ -603,6 +603,16 @@ decl_assembler_name (tree decl) return DECL_WITH_VIS_CHECK (decl)->decl_with_vis.assembler_name; } +/* Return comdat group of DECL. */ +tree +decl_comdat_group (tree node) +{ + struct symtab_node *snode = symtab_get_node (node); + if (!snode) + return NULL; + return snode->get_comdat_group (); +} + /* Compute the number of bytes occupied by a tree with code CODE. This function cannot be used for nodes that have variable sizes, including TREE_VEC, INTEGER_CST, STRING_CST, and CALL_EXPR. */ @@ -3431,6 +3431,7 @@ tree_operand_check_code (const_tree __t, enum tree_code __code, int __i, || ((NODE) && TREE_TYPE ((NODE)) == error_mark_node)) extern tree decl_assembler_name (tree); +extern tree decl_comdat_group (tree); /* Compute the number of bytes occupied by 'node'. This routine only looks at TREE_CODE and, if the code is TREE_VEC, TREE_VEC_LENGTH. */ |