From: Martin Sebor Date: Wed, 28 Aug 2019 16:24:38 +0000 (+0000) Subject: PR driver/80545 - option -Wstringop-overflow not recognized by Fortran X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2eee239811d4335f28ccdf7c2d9c490fcf6612d;p=gcc.git PR driver/80545 - option -Wstringop-overflow not recognized by Fortran gcc/ChangeLog: PR driver/80545 * opts-common.c (option_enabled): Correct checking for language options. From-SVN: r274996 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 561bbcbaeea..6fa40905144 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-08-28 Martin Sebor + + PR driver/80545 + * opts-common.c (option_enabled): Correct checking for language + options. + 2019-08-28 Uroš Bizjak * config/i386/i386-features.c diff --git a/gcc/opts-common.c b/gcc/opts-common.c index e2a315ba229..200951b5010 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -1532,7 +1532,9 @@ option_enabled (int opt_idx, unsigned lang_mask, void *opts) /* A language-specific option can only be considered enabled when it's valid for the current language. */ - if (option->flags & CL_LANG_ALL && !(option->flags | lang_mask)) + if (!(option->flags & CL_COMMON) + && (option->flags & CL_LANG_ALL) + && !(option->flags & lang_mask)) return 0; struct gcc_options *optsg = (struct gcc_options *) opts;