diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-02 17:43:57 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-02 17:43:57 +0000 |
commit | 8e2ef041e836b7e3f6422cf00bbfa249a1855994 (patch) | |
tree | 3e11da9d3659c56f005fc12ca40aed3ad4d80760 /gcc/alias.c | |
parent | a141da51e5bbdeaa1ab912a68f24a872dd3f6323 (diff) | |
download | gcc-8e2ef041e836b7e3f6422cf00bbfa249a1855994.tar.gz |
correct comment
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index 19ac3f78655..797c3f5cd97 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -48,7 +48,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA different alias sets cannot alias each other, with one important exception. Consider something like: - struct S {int i; double d; }; + struct S { int i; double d; }; a store to an `S' can alias something of either type `int' or type `double'. (However, a store to an `int' cannot alias a `double' @@ -604,11 +604,15 @@ new_alias_set (void) return 0; } -/* Indicate that things in SUBSET can alias things in SUPERSET, but - not vice versa. For example, in C, a store to an `int' can alias a - structure containing an `int', but not vice versa. Here, the - structure would be the SUPERSET and `int' the SUBSET. This - function should be called only once per SUPERSET/SUBSET pair. +/* Indicate that things in SUBSET can alias things in SUPERSET, but that + not everything that aliases SUPERSET also aliases SUBSET. For example, + in C, a store to an `int' can alias a load of a structure containing an + `int', and vice versa. But it can't alias a load of a 'double' member + of the same structure. Here, the structure would be the SUPERSET and + `int' the SUBSET. This relationship is also described in the comment at + the beginning of this file. + + This function should be called only once per SUPERSET/SUBSET pair. It is illegal for SUPERSET to be zero; everything is implicitly a subset of alias set zero. */ |