re PR c/48088 (-Werror=frame-larger-than=100 does not work as expected)
authorJakub Jelinek <jakub@redhat.com>
Tue, 8 Dec 2015 13:26:35 +0000 (14:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 8 Dec 2015 13:26:35 +0000 (14:26 +0100)
commit63bbf46d5f44f34a54f4e9cff62377516633fb7f
tree0e888f7e79d4144fe4ea4fc640d979765f209cc9
parent091db7b0af49a12ecb6fea88c0e4443444ee82bd
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
15 files changed:
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c
gcc/c-family/c.opt
gcc/common.opt
gcc/opts-common.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr68657-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr68657-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr68657-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/warn-normalized-3.c