diff options
author | Richard Biener <rguenther@suse.de> | 2017-05-02 12:43:47 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-05-02 12:43:47 +0000 |
commit | 2bf54d93f159210d0c05a07c655eb847c069365c (patch) | |
tree | ddcdc5b7297fd81372eb0759c3151dac988eb799 /gcc/tree.h | |
parent | 03dc1f5f90a13c84967f8c2e684b076983f11d55 (diff) | |
download | gcc-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/tree.h')
-rw-r--r-- | gcc/tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -846,7 +846,7 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int, caller decide whether a warning is appropriate or not. */ #define TYPE_OVERFLOW_UNDEFINED(TYPE) \ (!ANY_INTEGRAL_TYPE_CHECK(TYPE)->base.u.bits.unsigned_flag \ - && !flag_wrapv && !flag_trapv && flag_strict_overflow) + && !flag_wrapv && !flag_trapv) /* True if overflow for the given integral type should issue a trap. */ @@ -860,7 +860,7 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int, && (flag_sanitize & SANITIZE_SI_OVERFLOW)) /* True if pointer types have undefined overflow. */ -#define POINTER_TYPE_OVERFLOW_UNDEFINED (flag_strict_overflow) +#define POINTER_TYPE_OVERFLOW_UNDEFINED (!flag_wrapv) /* Nonzero in a VAR_DECL or STRING_CST means assembler code has been written. Nonzero in a FUNCTION_DECL means that the function has been compiled. |