diff options
author | James E Wilson <wilson@specifixinc.com> | 2004-03-10 06:02:55 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2004-03-09 22:02:55 -0800 |
commit | 5399d643680b153db318cd9ef38787774eac34c4 (patch) | |
tree | 893bd1037263eb2e8912cc841d795b6695e442e7 /gcc/tree.h | |
parent | a4e9467d735cfdbcbe64902f9a3dd30c440c71fb (diff) | |
download | gcc-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |