diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2007-07-02 20:01:32 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2007-07-02 20:01:32 +0000 |
commit | 836f779495e3468c959fbcc2ea1cbcee17d50dba (patch) | |
tree | f7db65dfa2caa203ff0ea981d01b96e5c7e60545 /gcc/c-common.c | |
parent | f4e9e7fa002a82dd6d0d94acd56892e867842b3b (diff) | |
download | gcc-836f779495e3468c959fbcc2ea1cbcee17d50dba.zip gcc-836f779495e3468c959fbcc2ea1cbcee17d50dba.tar.gz gcc-836f779495e3468c959fbcc2ea1cbcee17d50dba.tar.bz2 |
tree.h (alias_sets_might_conflict_p): Rename into alias_sets_must_conflict_p.
* tree.h (alias_sets_might_conflict_p): Rename into
alias_sets_must_conflict_p.
* alias.c (alias_sets_might_conflict_p): Likewise.
(alias_sets_conflict_p): Use it.
(objects_must_conflict_p): Likewise.
* c-common.c (strict_aliasing_warning): Adjust.
From-SVN: r126233
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 5243dd7..b1c20a6 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1050,7 +1050,7 @@ strict_aliasing_warning (tree otype, tree type, tree expr) return true; } else if (warn_strict_aliasing == 2 - && !alias_sets_might_conflict_p (set1, set2)) + && !alias_sets_must_conflict_p (set1, set2)) { warning (OPT_Wstrict_aliasing, "dereferencing type-punned " "pointer might break strict-aliasing rules"); @@ -1068,7 +1068,7 @@ strict_aliasing_warning (tree otype, tree type, tree expr) HOST_WIDE_INT set1 = get_alias_set (TREE_TYPE (otype)); HOST_WIDE_INT set2 = get_alias_set (TREE_TYPE (type)); if (!COMPLETE_TYPE_P(type) - || !alias_sets_might_conflict_p (set1, set2)) + || !alias_sets_must_conflict_p (set1, set2)) { warning (OPT_Wstrict_aliasing, "dereferencing type-punned " "pointer might break strict-aliasing rules"); |