diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-02-24 04:04:06 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-02-24 04:04:06 +0000 |
commit | 23dfa477ce8745ab198836aa6e7096c8aa7a603b (patch) | |
tree | 89b08e0a561773273c363cd6cce3def64be0ad7f /gcc/tree.h | |
parent | 1e59bcc3071d8909494146db844644a9d4129b18 (diff) | |
download | gcc-23dfa477ce8745ab198836aa6e7096c8aa7a603b.zip gcc-23dfa477ce8745ab198836aa6e7096c8aa7a603b.tar.gz gcc-23dfa477ce8745ab198836aa6e7096c8aa7a603b.tar.bz2 |
tree.h (TREE_SET_PERMANENT): New macro.
* tree.h (TREE_SET_PERMANENT): New macro. Document conditions
under which TREE_PERMANENT will be set.
* tree.c (make_node, copy_node, make_tree_vec, tree_cons,
build1): Use TREE_SET_PERMANENT.
* print-tree.c (print_node): Don't report value of
TREE_PERMANENT if ggc_p is true.
* c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
decide whether to give a type a new alias set.
* objc/objc-act.c (build_objc_string_object): Never copy the string.
* tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
of value of 'obstack'.
* f/com.c (ffecom_type_permanent_copy_): Delete unused function.
(finish_decl): Don't change TREE_PERMANENT (DECL_INITIAL (decl)).
From-SVN: r32128
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -563,8 +563,14 @@ extern void tree_class_check_failed PARAMS ((const tree, char, /* Nonzero means permanent node; node will continue to exist for the entire compiler run. - Otherwise it will be recycled at the end of the function. */ + Otherwise it will be recycled at the end of the function. + This flag is always zero if garbage collection is in use. + Try not to use this. Only set it with TREE_SET_PERMANENT. */ #define TREE_PERMANENT(NODE) ((NODE)->common.permanent_flag) +#define TREE_SET_PERMANENT(NODE) do { \ + if (!ggc_p && current_obstack == &permanent_obstack) \ + TREE_PERMANENT(NODE) = 1; \ +} while (0) /* In INTEGER_TYPE or ENUMERAL_TYPE nodes, means an unsigned type. In FIELD_DECL nodes, means an unsigned bit field. |