summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-22 14:11:44 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-22 14:11:44 +0000
commita54ab3301add6ff86ab26d16ae784338a10da35f (patch)
treebb2483418bbf2754d717a1b449693c17c0eae2ce /gcc/flags.h
parentf437e46d0c8b9f30bb5cbacee71e2a23bc41b420 (diff)
downloadgcc-a54ab3301add6ff86ab26d16ae784338a10da35f.tar.gz
2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 32102 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1. * flags.h (warn_strict_aliasing): Remove. (warn_strict_overflow): Remove. * opts.c (warn_strict_aliasing): Remove. (warn_strict_overflow): Remove. * c-opts.c (c_common_handle_option): -Wall only sets -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized. (c_common_post_options): Give default values to -Wstrict-aliasing and -Wstrict-overflow if they are uninitialized. * common.opt (Wstrict-aliasing): Specify Var and Init. (Wstrict-overflow): Likewise. testsuite/ * gcc.dg/Wstrict-overflow-21.c: New. * g++.dg/warn/Wstrict-aliasing-8.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index d52d030a0d7..e3174732995 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -137,16 +137,6 @@ extern void set_Wstrict_aliasing (int onoff);
extern bool warn_larger_than;
extern HOST_WIDE_INT larger_than_size;
-/* Nonzero means warn about constructs which might not be strict
- aliasing safe. */
-
-extern int warn_strict_aliasing;
-
-/* Nonzero means warn about optimizations which rely on undefined
- signed overflow. */
-
-extern int warn_strict_overflow;
-
/* Temporarily suppress certain warnings.
This is set while reading code from a system header file. */