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
This commit is contained in:
parent
bc4aa158c9
commit
e2eee23981
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-08-28 Martin Sebor <msebor@redhat.com>
|
||||
|
||||
PR driver/80545
|
||||
* opts-common.c (option_enabled): Correct checking for language
|
||||
options.
|
||||
|
||||
2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/i386/i386-features.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;
|
||||
|
|
Loading…
Add table
Reference in a new issue