re PR c/79677 (Weird handling of -Werror=)
authorJakub Jelinek <jakub@redhat.com>
Fri, 24 Feb 2017 23:15:56 +0000 (00:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 24 Feb 2017 23:15:56 +0000 (00:15 +0100)
commitb982244362124a7f2ba907b08afe820e37aabaca
tree9660e601d65ced3bad984b92d9e7b1e49c3dde5e
parent91f66e78cc141da77ff9e0e3c8519e1af3f26c07
re PR c/79677 (Weird handling of -Werror=)

PR c/79677
* opts.h (handle_generated_option): Add GENERATED_P argument.
* opts-common.c (handle_option): Adjust function comment.
(handle_generated_option): Add GENERATED_P argument, pass it to
handle_option.
(control_warning_option): Pass false to handle_generated_option
GENERATED_P.
* opts.c (maybe_default_option): Pass true to handle_generated_option
GENERATED_P.
* optc-gen.awk: Likewise.
ada/
* gcc-interface/misc.c (gnat_handle_option): Pass true to
handle_generated_option GENERATED_P.
testsuite/
* gcc.dg/pr79677.c: New test.

From-SVN: r245728
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/optc-gen.awk
gcc/opts-common.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79677.c [new file with mode: 0644]