diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-05-22 18:16:39 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-05-22 18:16:39 +0000 |
commit | 6f312d18d4788838bbd51c409a29b11ad8ccf009 (patch) | |
tree | 409d944e4e6302902eb8e16c793a145c374d08c1 /gcc/tree.h | |
parent | c1c52409c7f80e9656eb8a1a9e09f7f29f1c866a (diff) | |
download | gcc-6f312d18d4788838bbd51c409a29b11ad8ccf009.zip gcc-6f312d18d4788838bbd51c409a29b11ad8ccf009.tar.gz gcc-6f312d18d4788838bbd51c409a29b11ad8ccf009.tar.bz2 |
[multiple changes]
2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
* c-common.c (c_common_truthvalue_conversion): Handle
UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
i.e. set the type to truthvalue_type_node and return.
2004-05-22 Zack Weinberg <zack@codesourcery.com>
* tree.h (struct tree_decl): Add possibly_inlined bit.
(DECL_POSSIBLY_INLINED): New accessor macro.
* cgraph.h: Remove declaration of cgraph_inline_hash.
* cgraph.c: Remove definition of cgraph_inline_hash.
(hash_node): Revert to hashing DECL_UID.
(eq_node): Take two pointers to cgraph_node structures.
Compare DECL_UIDs.
(cgraph_remove_node): Pass the node directly to htab_find_slot.
(cgraph_varpool_hash_node): Rename hash_varpool_node;
hash on DECL_UID.
(eq_cgraph_varpool_node): Rename eq_varpool_node; take two
pointers to cgraph_varpool_node structures; compare DECL_UIDs.
(cgraph_node): Allocate a temporary node on the stack, fill in
its DECL field, and pass that to htab_find_slot.
(cgraph_varpool_node): Likewise.
(cgraph_function_possibly_inlined_p): If global info is ready,
return the DECL_POSSIBLY_INLINED bit.
* cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
instead of mucking with cgraph_inline_hash.
From-SVN: r82140
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2212,6 +2212,12 @@ struct tree_type GTY(()) #define DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL(DECL) \ DECL_CHECK (DECL)->decl.needs_to_live_in_memory +/* Nonzero for a decl that cgraph has decided should be inlined into + at least one call site. It is not meaningful to look at this + directly; always use cgraph_function_possibly_inlined_p. */ +#define DECL_POSSIBLY_INLINED(DECL) \ + FUNCTION_DECL_CHECK (DECL)->decl.possibly_inlined + /* Enumerate visibility settings. */ enum symbol_visibility @@ -2276,7 +2282,8 @@ struct tree_decl GTY(()) unsigned lang_flag_7 : 1; unsigned needs_to_live_in_memory : 1; - /* 15 unused bits. */ + unsigned possibly_inlined : 1; + /* 14 unused bits. */ union tree_decl_u1 { /* In a FUNCTION_DECL for which DECL_BUILT_IN holds, this is |