From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 7EAE33858414; Sun, 28 Nov 2021 08:42:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EAE33858414 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-9323] d: fix thinko in optimize attr parsing X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: 9b6ad13d7b44d9c49f0c0e14a160e6c0d07ff128 X-Git-Newrev: 9e83ac453fbe383f12c2beea70ab4869ab9af49e Message-Id: <20211128084235.7EAE33858414@sourceware.org> Date: Sun, 28 Nov 2021 08:42:35 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2021 08:42:35 -0000 https://gcc.gnu.org/g:9e83ac453fbe383f12c2beea70ab4869ab9af49e commit r11-9323-g9e83ac453fbe383f12c2beea70ab4869ab9af49e Author: Martin Liska 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,