From c1628b55198e784d3acfcc651bde18e3b6fbd24d Mon Sep 17 00:00:00 2001 From: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79222 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/flags.h') diff --git a/gcc/flags.h b/gcc/flags.h index b088f6cb3ba..8a70fc31b78 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -184,7 +184,7 @@ extern bool warn_deprecated_decl; /* Nonzero means warn about constructs which might not be strict aliasing safe. */ -extern bool warn_strict_aliasing; +extern int warn_strict_aliasing; /* Nonzero if generating code to do profiling. */ -- cgit v1.2.1