aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/misc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-02-25 00:15:56 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-02-25 00:15:56 +0100
commitb982244362124a7f2ba907b08afe820e37aabaca (patch)
tree9660e601d65ced3bad984b92d9e7b1e49c3dde5e /gcc/ada/gcc-interface/misc.c
parent91f66e78cc141da77ff9e0e3c8519e1af3f26c07 (diff)
downloadgcc-b982244362124a7f2ba907b08afe820e37aabaca.zip
gcc-b982244362124a7f2ba907b08afe820e37aabaca.tar.gz
gcc-b982244362124a7f2ba907b08afe820e37aabaca.tar.bz2
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
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
-rw-r--r--gcc/ada/gcc-interface/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index cdabfec..1b6b3eb 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -149,7 +149,7 @@ gnat_handle_option (size_t scode, const char *arg, int value, int kind,
handle_generated_option (&global_options, &global_options_set,
OPT_Wunused, NULL, value,
gnat_option_lang_mask (), kind, loc,
- handlers, global_dc);
+ handlers, true, global_dc);
warn_uninitialized = value;
warn_maybe_uninitialized = value;
break;