summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-02 20:01:32 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-02 20:01:32 +0000
commit879f881c2fa1ec716ed25b7bd32b829c1a69197a (patch)
treef7db65dfa2caa203ff0ea981d01b96e5c7e60545 /gcc/c-common.c
parentf098094885706fb18eb85866e9e2548f72b3f1f8 (diff)
downloadgcc-879f881c2fa1ec716ed25b7bd32b829c1a69197a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126233 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 5243dd749f9..b1c20a6069d 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");