diff options
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 1ef00cd..81035b0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1511,6 +1511,11 @@ int warn_missing_noreturn; int warn_deprecated_decl = 1; +/* Nonzero means warn about constructs which might not be + strict-aliasing safe. */ + +int warn_strict_aliasing; + /* Likewise for -W. */ static const lang_independent_options W_options[] = @@ -1556,7 +1561,9 @@ static const lang_independent_options W_options[] = {"deprecated-declarations", &warn_deprecated_decl, 1, N_("Warn about uses of __attribute__((deprecated)) declarations") }, {"missing-noreturn", &warn_missing_noreturn, 1, - N_("Warn about functions which might be candidates for attribute noreturn") } + N_("Warn about functions which might be candidates for attribute noreturn") }, + {"strict-aliasing", &warn_strict_aliasing, 1, + N_ ("Warn about code which might break the strict aliasing rules") } }; void |