diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-05-01 20:13:56 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-05-01 20:13:56 +0000 |
commit | b5487346841fcd5a5834e458c8504d1febc1a46f (patch) | |
tree | 9828a8380bd06a56ecc335ce3c88debf94b1c748 /gcc/alias.c | |
parent | 32d99e6869ec4eb0d8f801893d2ea499f9951f71 (diff) | |
download | gcc-b5487346841fcd5a5834e458c8504d1febc1a46f.zip gcc-b5487346841fcd5a5834e458c8504d1febc1a46f.tar.gz gcc-b5487346841fcd5a5834e458c8504d1febc1a46f.tar.bz2 |
tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
* tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
(DECL_NONADDRESSABLE_P): Likewise.
* alias.c (record_component_aliases): Fix comment.
From-SVN: r134868
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 7b14f26..b29abf7 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -740,9 +740,8 @@ record_alias_subset (alias_set_type superset, alias_set_type subset) /* Record that component types of TYPE, if any, are part of that type for aliasing purposes. For record types, we only record component types - for fields that are marked addressable. For array types, we always - record the component types, so the front end should not call this - function if the individual component aren't addressable. */ + for fields that are not marked non-addressable. For array types, we + only record the component type if it is not marked non-aliased. */ void record_component_aliases (tree type) @@ -756,7 +755,7 @@ record_component_aliases (tree type) switch (TREE_CODE (type)) { case ARRAY_TYPE: - if (! TYPE_NONALIASED_COMPONENT (type)) + if (!TYPE_NONALIASED_COMPONENT (type)) record_alias_subset (superset, get_alias_set (TREE_TYPE (type))); break; @@ -775,7 +774,7 @@ record_component_aliases (tree type) get_alias_set (BINFO_TYPE (base_binfo))); } for (field = TYPE_FIELDS (type); field != 0; field = TREE_CHAIN (field)) - if (TREE_CODE (field) == FIELD_DECL && ! DECL_NONADDRESSABLE_P (field)) + if (TREE_CODE (field) == FIELD_DECL && !DECL_NONADDRESSABLE_P (field)) record_alias_subset (superset, get_alias_set (TREE_TYPE (field))); break; |