public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5562] 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:7a66c4909fd175ba429f39a3ca30be39ea02ae64

commit r12-5562-g7a66c4909fd175ba429f39a3ca30be39ea02ae64
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.

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 1ec800526f7..b79cf96f55c 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 r12-5562] 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).