summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-12-08 14:26:35 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-12-08 14:26:35 +0100
commit63bbf46d5f44f34a54f4e9cff62377516633fb7f (patch)
tree0e888f7e79d4144fe4ea4fc640d979765f209cc9 /gcc/common.opt
parent091db7b0af49a12ecb6fea88c0e4443444ee82bd (diff)
downloadgcc-63bbf46d5f44f34a54f4e9cff62377516633fb7f.tar.gz
re PR c/48088 (-Werror=frame-larger-than=100 does not work as expected)
PR c/48088 PR c/68657 * common.opt (Wframe-larger-than=): Add Warning. * opts.h (control_warning_option): Add ARG argument. * opts-common.c (cmdline_handle_error): New function. (read_cmdline_option): Use it. (control_warning_option): Likewise. Add ARG argument. If non-NULL, decode it if needed and pass through to handle_generated_option. Handle CLVC_ENUM like CLVC_BOOLEAN. * opts.c (common_handle_option): Adjust control_warning_option caller. (enable_warning_as_error): Likewise. c-family/ * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning. * c-pragma.c (handle_pragma_diagnostic): Adjust control_warning_option caller. ada/ * gcc-interface/trans.c (Pragma_to_gnu): Adjust control_warning_option caller. testsuite/ * c-c++-common/pr68657-1.c: New test. * c-c++-common/pr68657-2.c: New test. * c-c++-common/pr68657-3.c: New test. * gcc.dg/cpp/warn-normalized-3.c: Use -Werror=normalized=nfc instead of -Werror=normalized= in dg-options. From-SVN: r231406
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 1de4c24fbc6..b1591d5d49b 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -581,7 +581,7 @@ Common Var(flag_fatal_errors)
Exit on the first error occurred.
Wframe-larger-than=
-Common RejectNegative Joined UInteger
+Common RejectNegative Joined UInteger Warning
-Wframe-larger-than=<number> Warn if a function's stack frame requires more than <number> bytes.
Wfree-nonheap-object