diff options
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 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"); |