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/c-common.c | |
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/c-common.c')
-rw-r--r-- | gcc/c-common.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 815c8e1..0a7db5c 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -3490,18 +3490,9 @@ c_get_alias_set (t) } if (!TYPE_ALIAS_SET_KNOWN_P (type)) - { - /* Types that are not global ('permanent') are not - placed in the type hash table. Thus, there can be multiple - copies of identical types in local scopes. In the long run, - all types should be permanent. */ - if (! TREE_PERMANENT (type)) - TYPE_ALIAS_SET (type) = 0; - else - /* TYPE is something we haven't seen before. Put it in a new - alias set. */ - TYPE_ALIAS_SET (type) = new_alias_set (); - } + /* TYPE is something we haven't seen before. Put it in a new + alias set. */ + TYPE_ALIAS_SET (type) = new_alias_set (); return TYPE_ALIAS_SET (type); } |