aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2004-03-10 06:02:55 +0000
committerJim Wilson <wilson@gcc.gnu.org>2004-03-09 22:02:55 -0800
commit5399d643680b153db318cd9ef38787774eac34c4 (patch)
tree893bd1037263eb2e8912cc841d795b6695e442e7 /gcc/tree.h
parenta4e9467d735cfdbcbe64902f9a3dd30c440c71fb (diff)
downloadgcc-5399d643680b153db318cd9ef38787774eac34c4.zip
gcc-5399d643680b153db318cd9ef38787774eac34c4.tar.gz
gcc-5399d643680b153db318cd9ef38787774eac34c4.tar.bz2
New option -Wstrict-aliasing=2.
* alias.c (alias_sets_might_conflict_p): New. * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1. * common.opt (Wstrict-aliasing=): New. * flags.h (warn_strict_aliasing): Change type to int. * opts.c (warn_strict_aliasing): Change type to int. (common_handle_option): Handle OPT_Wstrict_aliasing_. * tree.h (alias_sets_might_conflict_p): Declare it. * doc/invoke.tex (-Wstrict-aliasing=2): Document it. From-SVN: r79222
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 0a1e3fb..6af6c66 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2887,6 +2887,7 @@ extern tree strip_float_extensions (tree);
extern void record_component_aliases (tree);
extern HOST_WIDE_INT get_alias_set (tree);
extern int alias_sets_conflict_p (HOST_WIDE_INT, HOST_WIDE_INT);
+extern int alias_sets_might_conflict_p (HOST_WIDE_INT, HOST_WIDE_INT);
extern int readonly_fields_p (tree);
extern int objects_must_conflict_p (tree, tree);