Started by user snail Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on docker-jenkins-agent in workspace /home/jenkins/agent/workspace/gcc-patch [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done The recommended git tool is: NONE using credential 0adb5fc7-caa2-429d-97d2-c7fa2fa1d884 Cloning the remote Git repository Using shallow clone with depth 1 Avoid fetching tags Cloning repository git@github.com:wangliu-iscas/gcc-patch.git/ > git init /home/jenkins/agent/workspace/gcc-patch # timeout=10 Fetching upstream changes from git@github.com:wangliu-iscas/gcc-patch.git/ > git --version # timeout=10 > git --version # 'git version 2.37.2' using GIT_SSH to set credentials patchwork github wangliu-iscas git ssh key Verifying host key using known hosts file, will automatically accept unseen keys > git fetch --no-tags --force --progress --depth=1 -- git@github.com:wangliu-iscas/gcc-patch.git/ +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:wangliu-iscas/gcc-patch.git/ # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 8efc38347a7444dde3fb173f0f2c59a60b7db53d (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 8efc38347a7444dde3fb173f0f2c59a60b7db53d # timeout=10 Commit message: "Implement range-op entry for __builtin_copysign." > git rev-list --no-walk 8efc38347a7444dde3fb173f0f2c59a60b7db53d # timeout=10 [EnvInject] - Mask passwords that will be passed as build parameters. [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content GITHUB_REPO=https://github.com/wangliu-iscas/ PATCHWORK_URL=https://patchwork.plctlab.org [EnvInject] - Variables injected successfully. [gcc-patch] $ /usr/bin/env bash /tmp/jenkins8895717687352196273.sh + git config pull.rebase false + git fetch origin master From github.com:wangliu-iscas/gcc-patch * branch master -> FETCH_HEAD + git checkout master Switched to a new branch 'master' branch 'master' set up to track 'origin/master'. + git pull origin master From github.com:wangliu-iscas/gcc-patch * branch master -> FETCH_HEAD Already up to date. + git fetch origin upstream-master From github.com:wangliu-iscas/gcc-patch * branch upstream-master -> FETCH_HEAD + git checkout upstream-master Switched to a new branch 'upstream-master' branch 'upstream-master' set up to track 'origin/upstream-master'. + git remote add upstream https://github.com/gcc-mirror/gcc.git + git pull upstream master From https://github.com/gcc-mirror/gcc * branch master -> FETCH_HEAD * [new branch] master -> upstream/master Already up to date. + git push -u origin upstream-master Everything up-to-date branch 'upstream-master' set up to track 'origin/upstream-master'. + git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'. + git merge upstream-master Already up to date. + git push -u origin master Everything up-to-date branch 'master' set up to track 'origin/master'. + branchname=series1959-patch2715 ++ grep 'series1959-patch2715$' ++ git branch -a + checkbranch= + checkbranchresult=null + '[' null = series1959-patch2715 ']' + git checkout -b series1959-patch2715 Switched to a new branch 'series1959-patch2715' ++ curl https://patchwork.plctlab.org/api/1.2/series/1959/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1394 100 1394 0 0 55760 0 --:--:-- --:--:-- --:--:-- 55760 + series_response='{"id":1959,"url":"https://patchwork.plctlab.org/api/1.2/series/1959/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1959","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","date":"2022-10-14T14:36:55","submitter":{"id":67,"url":"https://patchwork.plctlab.org/api/1.2/people/67/","name":"Jonathan Wakely","email":"jwakely@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1959/mbox/","cover_letter":null,"patches":[{"id":2715,"url":"https://patchwork.plctlab.org/api/1.2/patches/2715/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/","msgid":"<20221014143655.2512929-1-jwakely@redhat.com>","list_archive_url":null,"date":"2022-10-14T14:36:55","name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' ++ echo '{"id":1959,"url":"https://patchwork.plctlab.org/api/1.2/series/1959/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1959","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","date":"2022-10-14T14:36:55","submitter":{"id":67,"url":"https://patchwork.plctlab.org/api/1.2/people/67/","name":"Jonathan Wakely","email":"jwakely@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1959/mbox/","cover_letter":null,"patches":[{"id":2715,"url":"https://patchwork.plctlab.org/api/1.2/patches/2715/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/","msgid":"<20221014143655.2512929-1-jwakely@redhat.com>","list_archive_url":null,"date":"2022-10-14T14:36:55","name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/"}]}' + patchid_patchurl='"2715,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/"' + echo '"2715,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/"' + IFS=, + read -r series_patch_id series_patch_url ++ sed 's/"//g' ++ echo '"2715' + series_patch_id=2715 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++ git rev-parse HEAD + commitid_before=8efc38347a7444dde3fb173f0f2c59a60b7db53d + eval '+++ declare -p bout bret declare -- bout="Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied." declare -- bret="0" ++ berr='\''++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10300 100 10300 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k +++ bout='\''\'\'''\''Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\''\'\'''\'' +++ bret=0'\'' ++ declare -p berr declare -- berr="++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10300 100 10300 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k +++ bout='\''Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0"' ++ +++ declare -p bout bret /tmp/jenkins8895717687352196273.sh: line 85: +++: command not found ++ declare -- 'bout=Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.' ++ declare -- bret=0 ++ ++ 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10300 100 10300 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k +++ bout='\''Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' /tmp/jenkins8895717687352196273.sh: line 104: ++: command not found ++ ++ declare -p berr /tmp/jenkins8895717687352196273.sh: line 105: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10300 100 10300 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k +++ bout='\''Applying: libstdc++: Disable all emergency EH pool code if obj-count == 0 Using index info to reconstruct a base tree... M libstdc++-v3/libsupc++/eh_alloc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' ++ git rev-parse HEAD + commitid_after=8efc38347a7444dde3fb173f0f2c59a60b7db53d + '[' 0 = 0 ']' + '[' 8efc38347a7444dde3fb173f0f2c59a60b7db53d = 8efc38347a7444dde3fb173f0f2c59a60b7db53d ']' + submit_check warning 'Repeat Merge' https://patchwork.plctlab.org/jenkins/job/gcc-patch/1303/consoleText 'Git am fail log' + check_state=warning + patch_state='Repeat Merge' + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1303/consoleText + DESCRIPTION='Git am fail log' + curl -X POST -H 'Authorization: Token [*******]' -F state=warning -F target_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1303/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/2715/checks/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 962 100 422 100 540 6028 7714 --:--:-- --:--:-- --:--:-- 13742 {"id":980,"url":"https://patchwork.plctlab.org/api/patches/2715/checks/980/","user":{"id":1,"url":"https://patchwork.plctlab.org/api/users/1/","username":"snail","first_name":"","last_name":"","email":"wangliu@iscas.ac.cn"},"date":"2022-10-14T17:21:29.607555","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/1303/consoleText","context":"gcc-patch-check","description":"Git am fail log"}+ curl -X PATCH -H 'Authorization: Token [*******]' -F 'state=Repeat Merge' https://patchwork.plctlab.org/api/1.2/patches/2715/ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{"id":2715,"url":"https://patchwork.plctlab.org/api/1.2/patches/2715/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20221014143655.2512929-1-jwakely@redhat.com>","list_archive_url":null,"date":"2022-10-14T14:36:55","name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","commit_ref":null,"pull_url":null,"state":"repeat-merge","archived":false,"hash":"67968b855be459ac01d6bd60822a2be8171baa42","submitter":{"id":67,"url":"https://patchwork.plctlab.org/api/1.2/people/67/","name":"Jonathan Wakely","email":"jwakely@redhat.com"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014143655.2512929-1-jwakely@redhat.com/mbox/","series":[{"id":1959,"url":"https://patchwork.plctlab.org/api/1.2/series/1959/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1959","date":"2022-10-14T14:36:55","name":"[committed] libstdc++: Disable all emergency EH pool code if obj-count == 0","version":1,"mbox":"https://patchwork.plctlab.org/series/1959/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/2715/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/2715/checks/","tags":{},"headers":{"Return-Path":"","Delivered-To":["ouuuleilei@gmail.com","gcc-patches@gcc.gnu.org"],"Received":["by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp216963wrs;\n Fri, 14 Oct 2022 07:38:03 -0700 (PDT)","from sourceware.org (server2.sourceware.org. [8.43.85.97])\n by mx.google.com with ESMTPS id\n t20-20020a1709066bd400b00783698dd8b4si2114080ejs.722.2022.10.14.07.38.03\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Oct 2022 07:38:03 -0700 (PDT)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 2F66C384D183\n\tfor ; Fri, 14 Oct 2022 14:37:58 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTPS id 9574E384D16D\n for ; Fri, 14 Oct 2022 14:36:57 +0000 (GMT)","from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-378-C2a0CG_bPLGIEESMJ9KP9A-1; Fri, 14 Oct 2022 10:36:56 -0400","from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com\n [10.11.54.6])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F3D0387B2A3;\n Fri, 14 Oct 2022 14:36:55 +0000 (UTC)","from localhost (unknown [10.33.36.64])\n by smtp.corp.redhat.com (Postfix) with ESMTP id BCF982144B2D;\n Fri, 14 Oct 2022 14:36:55 +0000 (UTC)"],"X-Google-Smtp-Source":"\n AMsMyM5Z77yOhVR1N6inpXnagaoVGkFTLGbsMBAvLNOzZhjESErNh1MjCmqctnYXGntGotEZUJmL","X-Received":"by 2002:aa7:cad5:0:b0:454:88dc:2c22 with SMTP id\n l21-20020aa7cad5000000b0045488dc2c22mr4535622edt.352.1665758283820;\n Fri, 14 Oct 2022 07:38:03 -0700 (PDT)","ARC-Seal":"i=1; a=rsa-sha256; t=1665758283; cv=none;\n d=google.com; s=arc-20160816;\n b=D3CDvlpwP0yjKSr1YThbHD/cU85aaUjjaO202yl47OWqg0kxz5w9qlFGi8dZfWBKyc\n cBdNEBuqlLdyy07iA15Ka0MQvwCcYJgBZU5ermkY3dD7BRfk86OHGuCQK634P3w63Nmf\n HEbryI75g8bCm7a1lLf3n6zUV0ETiiIlJVqEGRbzq6GGgf9J67pwo/uhwUrpnKiFdVsK\n a3oHxcOM+8jy0LE3rB1CnVOAi9IsJbi6FWC+kKlMmIlbrp1AH0LBnGCZPwf0OzdiFBkB\n B1jpBAXNep0PNKcQJUBkKiAokOZWrmapHZ2Sehz7uMAmT41Dg10AXh1WFOCZyar/l93s\n bdJQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post\n :list-archive:list-unsubscribe:list-id:precedence\n :content-transfer-encoding:mime-version:message-id:date:subject:to\n :dmarc-filter:delivered-to:dkim-signature:dkim-filter;\n bh=EDqsHUrwZwXuhLtHaI9tVjtAFOBCyRhZgPYpQ3pUlWY=;\n b=Nm60qStnBb+bhD0zHxtiDk41OReqvrXSRxfKB2samgkGVofeOWkPHEqIMF98SES3AL\n bd3rpkQiGJvAFkch+sjs/BsWp3PSZr4/aH8jSkyF/00K8s9vjPqI0Yk0E8puR5xph51y\n avpFKEQYbiHbKb43DVUgx7BAiS8pIEuucm30Enfvk4qkAdtEwQ6egih97dTtweuhb/sL\n evO2UmT+R0YE1iqLnYVYbWX1oDLPKcf5cqGh16j31X6X96ztXM7DhNkE13il2pax+Vk7\n ZV2xypeghGrYOhpNw+qiz2OtcSOvnKSAthbIZFQ/F4YavW0EHeZY3JPkLyIug3jXtPYA\n EV6g==","ARC-Authentication-Results":"i=1; mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fF7eRD7h;\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as\n permitted sender)\n smtp.mailfrom=\"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org\";\n dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org","Received-SPF":"pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as\n permitted sender) client-ip=8.43.85.97;","Authentication-Results":"mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fF7eRD7h;\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as\n permitted sender)\n smtp.mailfrom=\"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org\";\n dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org","DKIM-Filter":"OpenDKIM Filter v2.11.0 sourceware.org 2F66C384D183","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;\n\ts=default; t=1665758278;\n\tbh=EDqsHUrwZwXuhLtHaI9tVjtAFOBCyRhZgPYpQ3pUlWY=;\n\th=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\t List-Help:List-Subscribe:From:Reply-To:From;\n\tb=fF7eRD7hdHKzMbyw6crUpj5XBYk69oT0AgoHvL2EgfIgngl+7V4WE9E7Z3CB6ll8q\n\t 0lH39FgAkTN8cIp0eJGWbvrlwDvqryUJe7x5c/OMd19plzOuttwo6MyiUZoEg8THDy\n\t 4cZLeyxGxuG8WoDrsgNxsRxTg3ZyEKWj++/AuOpk=","X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.1 sourceware.org 9574E384D16D","X-MC-Unique":"C2a0CG_bPLGIEESMJ9KP9A-1","To":"libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org","Subject":"[committed] libstdc++: Disable all emergency EH pool code if\n obj-count == 0","Date":"Fri, 14 Oct 2022 15:36:55 +0100","Message-Id":"<20221014143655.2512929-1-jwakely@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.1 on 10.11.54.6","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain","Content-Transfer-Encoding":"8bit","X-Spam-Status":"No, score=-11.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,\n DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0,\n KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE,\n TXREP autolearn=ham autolearn_force=no version=3.4.6","X-Spam-Checker-Version":"SpamAssassin 3.4.6 (2021-04-09) on\n server2.sourceware.org","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Gcc-patches mailing list ","List-Unsubscribe":",\n ","List-Archive":"","List-Post":"","List-Help":"","List-Subscribe":",\n ","From":"Jonathan Wakely via Gcc-patches ","Reply-To":"Jonathan Wakely ","Errors-To":"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" 100 12212 100 12060 100 152 128k 1652 --:--:-- --:--:-- --:--:-- 129k ,"Sender":"\"Gcc-patches\" ","X-getmail-retrieved-from-mailbox":"=?utf-8?q?INBOX?=","X-GMAIL-THRID":"=?utf-8?q?1746674158539098329?=","X-GMAIL-MSGID":"=?utf-8?q?1746674158539098329?="},"content":"Tested x86_64-linux. Pushed to trunk.\n\n-- >8 --\n\nFor a zero-sized static pool we can completely elide all code for the EH\npool.\n\nWe no longer need to adjust the static buffer size to ensure at least\none free_entry can be created in it, because we no longer use a static\nbuffer at all if obj_count == 0. If the buffer exists, obj_count >= 1\nand the buffer will be much larger than sizeof(free_entry).\n\nlibstdc++-v3/ChangeLog:\n\n\t* libsupc++/eh_alloc.cc [USE_POOL]: New macro.\n\t[!USE_POOL] (__gnu_cxx::__freeres, pool): Do not define.\n\t[_GLIBCXX_EH_POOL_STATIC] (pool::arena): Do not use std::max.\n\t(__cxxabiv1::__cxa_allocate_exception) [!USE_POOL]: Do not use\n\tpool.\n\t(__cxxabiv1::__cxa_free_exception) [!USE_POOL]: Likewise.\n\t(__cxxabiv1::__cxa_allocate_dependent_exception) [!USE_POOL]:\n\tLikewise.\n\t(__cxxabiv1::__cxa_free_dependent_exception) [!USE_POOL]:\n\tLikewise.\n---\n libstdc++-v3/libsupc++/eh_alloc.cc | 20 +++++++++++++++++++-\n 1 file changed, 19 insertions(+), 1 deletion(-)","diff":"diff --git a/libstdc++-v3/libsupc++/eh_alloc.cc b/libstdc++-v3/libsupc++/eh_alloc.cc\nindex 81b8a1548c6..e93f14c887b 100644\n--- a/libstdc++-v3/libsupc++/eh_alloc.cc\n+++ b/libstdc++-v3/libsupc++/eh_alloc.cc\n@@ -101,12 +101,21 @@ using namespace __cxxabiv1;\n #ifdef _GLIBCXX_EH_POOL_NOBJS\n # if _GLIBCXX_EH_POOL_NOBJS > MAX_OBJ_COUNT\n # warning \"_GLIBCXX_EH_POOL_NOBJS value is too large; ignoring it\"\n+# elif _GLIBCXX_EH_POOL_NOBJS < 0\n+# warning \"_GLIBCXX_EH_POOL_NOBJS value is negative; ignoring it\"\n # else\n # undef EMERGENCY_OBJ_COUNT\n # define EMERGENCY_OBJ_COUNT _GLIBCXX_EH_POOL_NOBJS\n # endif\n #endif\n \n+#if defined _GLIBCXX_EH_POOL_STATIC && EMERGENCY_OBJ_COUNT == 0\n+# define USE_POOL 0\n+#else\n+# define USE_POOL 1\n+#endif\n+\n+#if USE_POOL\n namespace __gnu_cxx\n {\n void __freeres() noexcept;\n@@ -161,7 +170,7 @@ namespace\n #ifdef _GLIBCXX_EH_POOL_STATIC\n static constexpr std::size_t arena_size\n \t= buffer_size_in_bytes(EMERGENCY_OBJ_COUNT, EMERGENCY_OBJ_SIZE);\n- alignas(void*) char arena[std::max(arena_size, sizeof(free_entry))];\n+ alignas(void*) char arena[arena_size];\n #else\n char *arena = nullptr;\n std::size_t arena_size = 0;\n@@ -374,6 +383,7 @@ namespace __gnu_cxx\n #endif\n }\n }\n+#endif // USE_POOL\n \n extern \"C\" void *\n __cxxabiv1::__cxa_allocate_exception(std::size_t thrown_size) noexcept\n@@ -382,8 +392,10 @@ __cxxabiv1::__cxa_allocate_exception(std::size_t thrown_size) noexcept\n \n void *ret = malloc (thrown_size);\n \n+#if USE_POOL\n if (!ret)\n ret = emergency_pool.allocate (thrown_size);\n+#endif\n \n if (!ret)\n std::terminate ();\n@@ -398,9 +410,11 @@ extern \"C\" void\n __cxxabiv1::__cxa_free_exception(void *vptr) noexcept\n {\n char *ptr = (char *) vptr - sizeof (__cxa_refcounted_exception);\n+#if USE_POOL\n if (emergency_pool.in_pool (ptr)) [[__unlikely__]]\n emergency_pool.free (ptr);\n else\n+#endif\n free (ptr);\n }\n \n@@ -410,8 +424,10 @@ __cxxabiv1::__cxa_allocate_dependent_exception() noexcept\n {\n void *ret = malloc (sizeof (__cxa_dependent_exception));\n \n+#if USE_POOL\n if (!ret)\n ret = emergency_pool.allocate (sizeof (__cxa_dependent_exception));\n+#endif\n \n if (!ret)\n std::terminate ();\n@@ -426,8 +442,10 @@ extern \"C\" void\n __cxxabiv1::__cxa_free_dependent_exception\n (__cxa_dependent_exception *vptr) noexcept\n {\n+#if USE_POOL\n if (emergency_pool.in_pool (vptr)) [[__unlikely__]]\n emergency_pool.free (vptr);\n else\n+#endif\n free (vptr);\n }\n","prefixes":["committed"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE