{"id":2226744,"url":"http://patchwork.ozlabs.org/api/patches/2226744/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.4@forge-stage.sourceware.org/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.4@forge-stage.sourceware.org>","list_archive_url":null,"date":"2026-04-22T18:44:02","name":"[v1,04/12] libstdc++: Eliminate __gnu_cxx::__ops function objects (IV)","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"6b4fb9ef854d356dd3f5f05652425ac5105a9716","submitter":{"id":93223,"url":"http://patchwork.ozlabs.org/api/people/93223/?format=json","name":"tkaminsk via Sourceware Forge","email":"forge-bot+tkaminsk@forge-stage.sourceware.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.4@forge-stage.sourceware.org/mbox/","series":[{"id":501087,"url":"http://patchwork.ozlabs.org/api/series/501087/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=501087","date":"2026-04-22T18:44:01","name":"remove-predefined-ops","version":1,"mbox":"http://patchwork.ozlabs.org/series/501087/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2226744/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226744/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org","sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org","server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g187z69xJz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 05:15:43 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D5C3948578C2\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 19:15:41 +0000 (GMT)","from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 82D2C40A086A\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:45:33 +0000 (GMT)","from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id 5A48C43524\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:45:33 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org D5C3948578C2","OpenDKIM Filter v2.11.0 sourceware.org 82D2C40A086A"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 82D2C40A086A","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 82D2C40A086A","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776883533; cv=none;\n b=BnmoqlVGeJHEgwsLR+oGj5rilZWzFs2mSwUxA3QFfAymVX6tU14SEFNEvLbnu+6cKxOYORyl+ig/7HaXsYEnGFZV845ej0mf2VRH5Pf1pHTa8tkclH+QpVo61F7Bhw4W0SzSQNFPJW95+0oX7jGmKaIFgf5nlpRN48hUMp106KU=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776883533; c=relaxed/simple;\n bh=0XyCrmUXhUGh8x8Vos+3v1vxUV9Taao2rK7sjN15jYc=;\n h=From:Date:Subject:To:Message-ID;\n b=e0OOwBzDxf5fU0WnMaFqtoxnHdtz0AGGOc58NkToJ69c73meXWz2OMRf84Ls5ATxFBYH/bHoQdziIqMPeetMBMl9SofKU0E2qYVGzbZEa2y0cC8/Nr066NL1QjrZDMm+dJHmrtbUkly3wUejnP9JPOT5595Z5kfGzEYJQKNipsw=","ARC-Authentication-Results":"i=1; server2.sourceware.org","From":"tkaminsk via Sourceware Forge\n <forge-bot+tkaminsk@forge-stage.sourceware.org>","Date":"Wed, 22 Apr 2026 18:44:02 +0000","Subject":"[PATCH v1 04/12] libstdc++: Eliminate __gnu_cxx::__ops function\n objects (IV)","To":"gcc-patches mailing list <gcc-patches@gcc.gnu.org>","Message-ID":"\n <bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.4@forge-stage.sourceware.org>","X-Mailer":"batrachomyomachia","X-Requested-Reviewer":"fdumont","X-Pull-Request-Organization":"gcc","X-Pull-Request-Repository":"gcc-TEST","X-Pull-Request":"https://forge.sourceware.org/gcc/gcc-TEST/pulls/78","References":"\n <bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.0@forge-stage.sourceware.org>","In-Reply-To":"\n <bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.0@forge-stage.sourceware.org>","X-Patch-URL":"\n https://forge.sourceware.org/redi/gcc/commit/2274e41190c3efda5db9a6e06c62f47078fbd709","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Reply-To":"gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n tkaminsk@gcc.gnu.org","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"From: Jonathan Wakely <jwakely@redhat.com>\n\nnext_permutation, prev_permutation\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/stl_algo.h:\n---\n libstdc++-v3/include/bits/stl_algo.h | 20 ++++++++------------\n 1 file changed, 8 insertions(+), 12 deletions(-)","diff":"diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h\nindex 966f86edc049..056488ba6e36 100644\n--- a/libstdc++-v3/include/bits/stl_algo.h\n+++ b/libstdc++-v3/include/bits/stl_algo.h\n@@ -2930,10 +2930,10 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n \t{\n \t  _BidirectionalIterator __ii = __i;\n \t  --__i;\n-\t  if (__comp(__i, __ii))\n+\t  if (__comp(*__i, *__ii))\n \t    {\n \t      _BidirectionalIterator __j = __last;\n-\t      while (!__comp(__i, --__j))\n+\t      while (!__comp(*__i, *--__j))\n \t\t{}\n \t      std::iter_swap(__i, __j);\n \t      std::__reverse(__ii, __last,\n@@ -2975,8 +2975,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n       __glibcxx_requires_valid_range(__first, __last);\n       __glibcxx_requires_irreflexive(__first, __last);\n \n-      return std::__next_permutation\n-\t(__first, __last, __gnu_cxx::__ops::__iter_less_iter());\n+      return std::__next_permutation(__first, __last, __gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -3009,8 +3008,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n       __glibcxx_requires_valid_range(__first, __last);\n       __glibcxx_requires_irreflexive_pred(__first, __last, __comp);\n \n-      return std::__next_permutation\n-\t(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return std::__next_permutation(__first, __last, __comp);\n     }\n \n   template<typename _BidirectionalIterator, typename _Compare>\n@@ -3032,10 +3030,10 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n \t{\n \t  _BidirectionalIterator __ii = __i;\n \t  --__i;\n-\t  if (__comp(__ii, __i))\n+\t  if (__comp(*__ii, *__i))\n \t    {\n \t      _BidirectionalIterator __j = __last;\n-\t      while (!__comp(--__j, __i))\n+\t      while (!__comp(*--__j, *__i))\n \t\t{}\n \t      std::iter_swap(__i, __j);\n \t      std::__reverse(__ii, __last,\n@@ -3078,8 +3076,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n       __glibcxx_requires_valid_range(__first, __last);\n       __glibcxx_requires_irreflexive(__first, __last);\n \n-      return std::__prev_permutation(__first, __last,\n-\t\t\t\t     __gnu_cxx::__ops::__iter_less_iter());\n+      return std::__prev_permutation(__first, __last, __gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -3112,8 +3109,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)\n       __glibcxx_requires_valid_range(__first, __last);\n       __glibcxx_requires_irreflexive_pred(__first, __last, __comp);\n \n-      return std::__prev_permutation(__first, __last,\n-\t\t\t\t__gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return std::__prev_permutation(__first, __last, __comp);\n     }\n \n   // replace\n","prefixes":["v1","04/12"]}