diff options
author | Martin Sebor <msebor@redhat.com> | 2019-08-28 16:24:38 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-08-28 10:24:38 -0600 |
commit | e2eee239811d4335f28ccdf7c2d9c490fcf6612d (patch) | |
tree | e5e1bb9719c5f4735ac8513a0fefdffc0b7b5eb8 | |
parent | bc4aa158c9490e76573bee3eec90f893b7d0b1ae (diff) | |
download | gcc-e2eee239811d4335f28ccdf7c2d9c490fcf6612d.zip gcc-e2eee239811d4335f28ccdf7c2d9c490fcf6612d.tar.gz gcc-e2eee239811d4335f28ccdf7c2d9c490fcf6612d.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/opts-common.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 561bbcb..6fa4090 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/opts-common.c b/gcc/opts-common.c index e2a315b..200951b 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; |