aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-05-02 12:43:47 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-05-02 12:43:47 +0000
commit2bf54d93f159210d0c05a07c655eb847c069365c (patch)
treeddcdc5b7297fd81372eb0759c3151dac988eb799 /gcc/opts.c
parent03dc1f5f90a13c84967f8c2e684b076983f11d55 (diff)
downloadgcc-2bf54d93f159210d0c05a07c655eb847c069365c.zip
gcc-2bf54d93f159210d0c05a07c655eb847c069365c.tar.gz
gcc-2bf54d93f159210d0c05a07c655eb847c069365c.tar.bz2
common.opt (fstrict-overflow): Alias negative to fwrapv.
2017-05-02 Richard Biener <rguenther@suse.de> * common.opt (fstrict-overflow): Alias negative to fwrapv. * doc/invoke.texi (fstrict-overflow): Remove all traces of -fstrict-overflow documentation. * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow. (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of flag_strict_overflow. * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow. * lto-opts.c (lto_write_options): Do not stream it. * lto-wrapper.c (merge_and_complain): Do not handle it. * opts.c (default_options_table): Do not set -fstrict-overflow. (finish_options): Likewise do not clear it when sanitizing. * simplify-rtx.c (simplify_const_relational_operation): Do not test flag_strict_overflow. ada/ * gcc-interface/misc.c (gnat_post_options): Do not set -fstrict-overflow. * c-c++-common/Wlogical-op-1.c: Add -fwrapv to restore previous behavior. * gcc.target/i386/pr46253.c: Make i unsigned to avoid warning. From-SVN: r247495
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 6ea57af..ffedb10 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -496,7 +496,6 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_2_PLUS, OPT_fschedule_insns2, NULL, 1 },
#endif
{ OPT_LEVELS_2_PLUS, OPT_fstrict_aliasing, NULL, 1 },
- { OPT_LEVELS_2_PLUS, OPT_fstrict_overflow, NULL, 1 },
{ OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_freorder_blocks_algorithm_, NULL,
REORDER_BLOCKS_ALGORITHM_STC },
{ OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 },
@@ -984,10 +983,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
/* Aggressive compiler optimizations may cause false negatives. */
if (opts->x_flag_sanitize & ~(SANITIZE_LEAK | SANITIZE_UNREACHABLE))
- {
- opts->x_flag_aggressive_loop_optimizations = 0;
- opts->x_flag_strict_overflow = 0;
- }
+ opts->x_flag_aggressive_loop_optimizations = 0;
/* Enable -fsanitize-address-use-after-scope if address sanitizer is
enabled. */