public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r11-9323] d: fix thinko in optimize attr parsing
Date: Sun, 28 Nov 2021 08:42:35 +0000 (GMT)	[thread overview]
Message-ID: <20211128084235.7EAE33858414@sourceware.org> (raw)

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,


                 reply	other threads:[~2021-11-28  8:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211128084235.7EAE33858414@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).