{"id":2226740,"url":"http://patchwork.ozlabs.org/api/patches/2226740/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.2@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.2@forge-stage.sourceware.org>","list_archive_url":null,"date":"2026-04-22T18:44:00","name":"[v1,02/12] libstdc++: Eliminate __gnu_cxx::__ops function objects (II)","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ae00d9675121c2eb2b81daa2bc3d486076fce381","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.2@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/2226740/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226740/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=38.145.34.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 [38.145.34.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 4g185F5z9Rz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 05:13:21 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 07E8B407C15B\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 19:13:20 +0000 (GMT)","from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 6560440A0CC7\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 4044443522\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 07E8B407C15B","OpenDKIM Filter v2.11.0 sourceware.org 6560440A0CC7"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 6560440A0CC7","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 6560440A0CC7","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776883533; cv=none;\n b=Qsq9mbQNYnLnWq2jvHTepgLupkmcFacFvqbZK5fKGpoqbFd532x/c9/FGkimj0hc/VszMakmQitK8LrnyloR8SHgvzAJXf1LJ9un5Wm1xWnuqvTPu8oA4jDwp9JLxcUPDBU2KfhpO4NGdxs5RQJzI7ejDWhH1A1MkNxVTbKZhzg=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776883533; c=relaxed/simple;\n bh=kI7OX8Kpb91n4M2pqOoL1Ihf3teZR2LTuTNw4sVuHg4=;\n h=From:Date:Subject:To:Message-ID;\n b=uTlAk+BxH/9go8tHdFT2vterfb5Os7pZQ0sWp8sWWMLXwFawD5+vNw6zSuwQI+4c6e98hYo8Gwe2zFOsASRyFnOx9GG8msi4/dmXmAjuFu1L1v9sG13jr1luIvS0OKgtHtRQJcYbyp9cVMHjb/NUm5OQZYzP4+0wKvhsCN/uM0E=","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:00 +0000","Subject":"[PATCH v1 02/12] libstdc++: Eliminate __gnu_cxx::__ops function\n objects (II)","To":"gcc-patches mailing list <gcc-patches@gcc.gnu.org>","Message-ID":"\n <bmm.hhuozlstss.gcc.gcc-TEST.tkaminsk.78.1.2@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/439e88637791dba279904e76c1f94a891a041a44","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\nset_union, set_intersection, set_difference, set_symmetric_difference.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/stl_algo.h:\n---\n libstdc++-v3/include/bits/stl_algo.h | 71 +++++++++++++---------------\n 1 file changed, 33 insertions(+), 38 deletions(-)","diff":"diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h\nindex 23ab035c1c19..5eda6736f0c6 100644\n--- a/libstdc++-v3/include/bits/stl_algo.h\n+++ b/libstdc++-v3/include/bits/stl_algo.h\n@@ -5132,8 +5132,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n     }\n \n   template<typename _InputIterator1, typename _InputIterator2,\n-\t   typename _OutputIterator,\n-\t   typename _Compare>\n+\t   typename _OutputIterator, typename _Compare>\n     _GLIBCXX20_CONSTEXPR\n     _OutputIterator\n     __set_union(_InputIterator1 __first1, _InputIterator1 __last1,\n@@ -5142,12 +5141,12 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n     {\n       while (__first1 != __last1 && __first2 != __last2)\n \t{\n-\t  if (__comp(__first1, __first2))\n+\t  if (__comp(*__first1, *__first2))\n \t    {\n \t      *__result = *__first1;\n \t      ++__first1;\n \t    }\n-\t  else if (__comp(__first2, __first1))\n+\t  else if (__comp(*__first2, *__first1))\n \t    {\n \t      *__result = *__first2;\n \t      ++__first2;\n@@ -5209,9 +5208,8 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive2(__first1, __last1);\n       __glibcxx_requires_irreflexive2(__first2, __last2);\n \n-      return _GLIBCXX_STD_A::__set_union(__first1, __last1,\n-\t\t\t\t__first2, __last2, __result,\n-\t\t\t\t__gnu_cxx::__ops::__iter_less_iter());\n+      return _GLIBCXX_STD_A::__set_union(__first1, __last1, __first2, __last2,\n+\t\t\t\t\t __result, __gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -5260,14 +5258,12 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive_pred2(__first1, __last1, __comp);\n       __glibcxx_requires_irreflexive_pred2(__first2, __last2, __comp);\n \n-      return _GLIBCXX_STD_A::__set_union(__first1, __last1,\n-\t\t\t\t__first2, __last2, __result,\n-\t\t\t\t__gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return _GLIBCXX_STD_A::__set_union(__first1, __last1, __first2, __last2,\n+\t\t\t\t\t __result, __comp);\n     }\n \n   template<typename _InputIterator1, typename _InputIterator2,\n-\t   typename _OutputIterator,\n-\t   typename _Compare>\n+\t   typename _OutputIterator, typename _Compare>\n     _GLIBCXX20_CONSTEXPR\n     _OutputIterator\n     __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1,\n@@ -5275,9 +5271,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n \t\t       _OutputIterator __result, _Compare __comp)\n     {\n       while (__first1 != __last1 && __first2 != __last2)\n-\tif (__comp(__first1, __first2))\n+\tif (__comp(*__first1, *__first2))\n \t  ++__first1;\n-\telse if (__comp(__first2, __first1))\n+\telse if (__comp(*__first2, *__first1))\n \t  ++__first2;\n \telse\n \t  {\n@@ -5331,9 +5327,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive2(__first1, __last1);\n       __glibcxx_requires_irreflexive2(__first2, __last2);\n \n-      return _GLIBCXX_STD_A::__set_intersection(__first1, __last1,\n-\t\t\t\t     __first2, __last2, __result,\n-\t\t\t\t     __gnu_cxx::__ops::__iter_less_iter());\n+      return _GLIBCXX_STD_A::\n+\t       __set_intersection(__first1, __last1, __first2, __last2,\n+\t\t\t\t  __result, __gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -5381,14 +5377,13 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive_pred2(__first1, __last1, __comp);\n       __glibcxx_requires_irreflexive_pred2(__first2, __last2, __comp);\n \n-      return _GLIBCXX_STD_A::__set_intersection(__first1, __last1,\n-\t\t\t\t__first2, __last2, __result,\n-\t\t\t\t__gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return _GLIBCXX_STD_A::\n+\t       __set_intersection(__first1, __last1, __first2, __last2,\n+\t\t\t\t  __result, __comp);\n     }\n \n   template<typename _InputIterator1, typename _InputIterator2,\n-\t   typename _OutputIterator,\n-\t   typename _Compare>\n+\t   typename _OutputIterator, typename _Compare>\n     _GLIBCXX20_CONSTEXPR\n     _OutputIterator\n     __set_difference(_InputIterator1 __first1, _InputIterator1 __last1,\n@@ -5396,13 +5391,13 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n \t\t     _OutputIterator __result, _Compare __comp)\n     {\n       while (__first1 != __last1 && __first2 != __last2)\n-\tif (__comp(__first1, __first2))\n+\tif (__comp(*__first1, *__first2))\n \t  {\n \t    *__result = *__first1;\n \t    ++__first1;\n \t    ++__result;\n \t  }\n-\telse if (__comp(__first2, __first1))\n+\telse if (__comp(*__first2, *__first1))\n \t  ++__first2;\n \telse\n \t  {\n@@ -5456,9 +5451,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive2(__first1, __last1);\n       __glibcxx_requires_irreflexive2(__first2, __last2);\n \n-      return _GLIBCXX_STD_A::__set_difference(__first1, __last1,\n-\t\t\t\t   __first2, __last2, __result,\n-\t\t\t\t   __gnu_cxx::__ops::__iter_less_iter());\n+      return _GLIBCXX_STD_A::\n+\t       __set_difference(__first1, __last1, __first2, __last2, __result,\n+\t\t\t\t__gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -5508,9 +5503,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive_pred2(__first1, __last1, __comp);\n       __glibcxx_requires_irreflexive_pred2(__first2, __last2, __comp);\n \n-      return _GLIBCXX_STD_A::__set_difference(__first1, __last1,\n-\t\t\t\t   __first2, __last2, __result,\n-\t\t\t\t   __gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return _GLIBCXX_STD_A::\n+\t       __set_difference(__first1, __last1, __first2, __last2, __result,\n+\t\t\t\t__comp);\n     }\n \n   template<typename _InputIterator1, typename _InputIterator2,\n@@ -5526,13 +5521,13 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n \t\t\t       _Compare __comp)\n     {\n       while (__first1 != __last1 && __first2 != __last2)\n-\tif (__comp(__first1, __first2))\n+\tif (__comp(*__first1, *__first2))\n \t  {\n \t    *__result = *__first1;\n \t    ++__first1;\n \t    ++__result;\n \t  }\n-\telse if (__comp(__first2, __first1))\n+\telse if (__comp(*__first2, *__first1))\n \t  {\n \t    *__result = *__first2;\n \t    ++__first2;\n@@ -5591,9 +5586,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive2(__first1, __last1);\n       __glibcxx_requires_irreflexive2(__first2, __last2);\n \n-      return _GLIBCXX_STD_A::__set_symmetric_difference(__first1, __last1,\n-\t\t\t\t\t__first2, __last2, __result,\n-\t\t\t\t\t__gnu_cxx::__ops::__iter_less_iter());\n+      return _GLIBCXX_STD_A::\n+\t       __set_symmetric_difference(__first1, __last1, __first2, __last2,\n+\t\t\t\t\t  __result, __gnu_cxx::__ops::less());\n     }\n \n   /**\n@@ -5644,9 +5639,9 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO\n       __glibcxx_requires_irreflexive_pred2(__first1, __last1, __comp);\n       __glibcxx_requires_irreflexive_pred2(__first2, __last2, __comp);\n \n-      return _GLIBCXX_STD_A::__set_symmetric_difference(__first1, __last1,\n-\t\t\t\t__first2, __last2, __result,\n-\t\t\t\t__gnu_cxx::__ops::__iter_comp_iter(__comp));\n+      return _GLIBCXX_STD_A::\n+\t       __set_symmetric_difference(__first1, __last1, __first2, __last2,\n+\t\t\t\t\t  __result, __comp);\n     }\n \n   template<typename _ForwardIterator, typename _Compare>\n","prefixes":["v1","02/12"]}