From 5399d643680b153db318cd9ef38787774eac34c4 Mon Sep 17 00:00:00 2001 From: James E Wilson Date: Wed, 10 Mar 2004 06:02:55 +0000 Subject: 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 --- gcc/tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/tree.h') 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); -- cgit v1.1