diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-01-22 14:11:44 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-01-22 14:11:44 +0000 |
commit | 027b740e14194e7728da66cd91315f5936ddd7f5 (patch) | |
tree | bb2483418bbf2754d717a1b449693c17c0eae2ce /gcc/flags.h | |
parent | 963acd6f89ae458cfbddcba67bd0d7530a71feec (diff) | |
download | gcc-027b740e14194e7728da66cd91315f5936ddd7f5.zip gcc-027b740e14194e7728da66cd91315f5936ddd7f5.tar.gz gcc-027b740e14194e7728da66cd91315f5936ddd7f5.tar.bz2 |
re PR c/32102 (-Wall stomps on -Wstrict-overflow)
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.
From-SVN: r131720
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index d52d030..e317473 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. */ |