diff options
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -61,6 +61,10 @@ HOST_WIDE_INT larger_than_size; strict-aliasing safe. */ int warn_strict_aliasing; +/* Nonzero means warn about optimizations which rely on undefined + signed overflow. */ +int warn_strict_overflow; + /* Hack for cooperation between set_Wunused and set_Wextra. */ static bool maybe_warn_unused_parameter; @@ -1104,6 +1108,11 @@ common_handle_option (size_t scode, const char *arg, int value, warn_strict_aliasing = value; break; + case OPT_Wstrict_overflow: + case OPT_Wstrict_overflow_: + warn_strict_overflow = value; + break; + case OPT_Wunused: set_Wunused (value); break; |