public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9323] d: fix thinko in optimize attr parsing
@ 2021-11-28 8:42 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-11-28 8:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9e83ac453fbe383f12c2beea70ab4869ab9af49e
commit r11-9323-g9e83ac453fbe383f12c2beea70ab4869ab9af49e
Author: Martin Liska <mliska@suse.cz>
Date: Sun Nov 28 09:39:40 2021 +0100
d: fix thinko in optimize attr parsing
gcc/d/ChangeLog:
* d-attribs.cc (parse_optimize_options): Fix thinko.
(cherry picked from commit 7a66c4909fd175ba429f39a3ca30be39ea02ae64)
Diff:
---
gcc/d/d-attribs.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/d/d-attribs.cc b/gcc/d/d-attribs.cc
index 13c7341fdcd..1721f1f2f0b 100644
--- a/gcc/d/d-attribs.cc
+++ b/gcc/d/d-attribs.cc
@@ -854,7 +854,7 @@ parse_optimize_options (tree args)
{
unsigned opt_index = decoded_options[i].opt_index;
if (opt_index >= cl_options_count
- && ! (cl_options[opt_index].flags & CL_OPTIMIZATION))
+ || ! (cl_options[opt_index].flags & CL_OPTIMIZATION))
{
ret = false;
warning (OPT_Wattributes,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-28 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 8:42 [gcc r11-9323] d: fix thinko in optimize attr parsing Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).