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/jenkins10235889634700790165.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 Updating 8efc38347..b4a4c6382 Fast-forward gcc/value-range.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) + git push -u origin upstream-master To github.com:wangliu-iscas/gcc-patch.git/ 8efc38347..b4a4c6382 upstream-master -> upstream-master 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 Updating 8efc38347..b4a4c6382 Fast-forward gcc/value-range.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) + git push -u origin master To github.com:wangliu-iscas/gcc-patch.git/ 8efc38347..b4a4c6382 master -> master branch 'master' set up to track 'origin/master'. + branchname=series1962-patch2724 ++ git branch -a ++ grep 'series1962-patch2724$' + checkbranch= + checkbranchresult=null + '[' null = series1962-patch2724 ']' + git checkout -b series1962-patch2724 Switched to a new branch 'series1962-patch2724' ++ curl https://patchwork.plctlab.org/api/1.2/series/1962/ % 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 1328 100 1328 0 0 60363 0 --:--:-- --:--:-- --:--:-- 60363 + series_response='{"id":1962,"url":"https://patchwork.plctlab.org/api/1.2/series/1962/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1962","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":"Implement range-op entry for __builtin_copysign.","date":"2022-10-14T15:08:51","submitter":{"id":16,"url":"https://patchwork.plctlab.org/api/1.2/people/16/","name":"Aldy Hernandez","email":"aldyh@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1962/mbox/","cover_letter":null,"patches":[{"id":2724,"url":"https://patchwork.plctlab.org/api/1.2/patches/2724/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/","msgid":"<20221014150851.677560-1-aldyh@redhat.com>","list_archive_url":null,"date":"2022-10-14T15:08:51","name":"Implement range-op entry for __builtin_copysign.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/"}]}' ++ echo '{"id":1962,"url":"https://patchwork.plctlab.org/api/1.2/series/1962/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1962","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":"Implement range-op entry for __builtin_copysign.","date":"2022-10-14T15:08:51","submitter":{"id":16,"url":"https://patchwork.plctlab.org/api/1.2/people/16/","name":"Aldy Hernandez","email":"aldyh@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1962/mbox/","cover_letter":null,"patches":[{"id":2724,"url":"https://patchwork.plctlab.org/api/1.2/patches/2724/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/","msgid":"<20221014150851.677560-1-aldyh@redhat.com>","list_archive_url":null,"date":"2022-10-14T15:08:51","name":"Implement range-op entry for __builtin_copysign.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' + patchid_patchurl='"2724,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/"' + echo '"2724,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/"' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"2724' ++ sed 's/"//g' + series_patch_id=2724 ++ sed 's/"//g' ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/"' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++ git rev-parse HEAD + commitid_before=b4a4c6382b14bc107d6d95ff809f3e9cd71944e7 + eval '+++ declare -p bout bret declare -- bout="Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run \"git am --continue\". If you prefer to skip this patch, run \"git am --skip\" instead. To restore the original branch and stop patching, run \"git am --abort\"." declare -- bret="128" ++ berr='\''++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9509 100 9509 0 0 120k 0 --:--:-- --:--:-- --:--:-- 119k +++ bout='\''\'\'''\''Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''\'\'''\''\'\''\'\'''\'''\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\''\'\''\'\'''\'''\''\'\'''\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\''\'\'''\'' +++ bret=128'\'' ++ declare -p berr declare -- berr="++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9509 100 9509 0 0 120k 0 --:--:-- --:--:-- --:--:-- 119k +++ bout='\''Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''\\'\'''\''git am --show-current-patch=diff'\''\\'\'''\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run \"git am --continue\". If you prefer to skip this patch, run \"git am --skip\" instead. To restore the original branch and stop patching, run \"git am --abort\".'\'' +++ bret=128"' ++ +++ declare -p bout bret /tmp/jenkins10235889634700790165.sh: line 85: +++: command not found ++ declare -- 'bout=Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".' ++ declare -- bret=128 ++ ++ 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9509 100 9509 0 0 120k 0 --:--:-- --:--:-- --:--:-- 119k +++ bout='\''Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\'' +++ bret=128' /tmp/jenkins10235889634700790165.sh: line 110: ++: command not found ++ ++ declare -p berr /tmp/jenkins10235889634700790165.sh: line 111: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9509 100 9509 0 0 120k 0 --:--:-- --:--:-- --:--:-- 119k +++ bout='\''Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".'\'' +++ bret=128' ++ git rev-parse HEAD + commitid_after=b4a4c6382b14bc107d6d95ff809f3e9cd71944e7 + '[' 128 = 0 ']' + [[ ++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9509 100 9509 0 0 120k 0 --:--:-- --:--:-- --:--:-- 119k +++ bout='Applying: Implement range-op entry for __builtin_copysign. error: sha1 information is lacking or useless (gcc/gimple-range-op.cc). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 Implement range-op entry for __builtin_copysign. When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".' +++ bret=128 =~ sha1 information is lacking or useless ]] + submit_check warning Unresolved https://patchwork.plctlab.org/jenkins/job/gcc-patch/1304/consoleText 'Git am fail log' + check_state=warning + patch_state=Unresolved + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1304/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/1304/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/2724/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 11722 15000 --:--:-- --:--:-- --:--:-- 26722 {"id":981,"url":"https://patchwork.plctlab.org/api/patches/2724/checks/981/","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-14T18:15:56.082708","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/1304/consoleText","context":"gcc-patch-check","description":"Git am fail log"}+ curl -X PATCH -H 'Authorization: Token [*******]' -F state=Unresolved https://patchwork.plctlab.org/api/1.2/patches/2724/ % 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":2724,"url":"https://patchwork.plctlab.org/api/1.2/patches/2724/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@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":"<20221014150851.677560-1-aldyh@redhat.com>","list_archive_url":null,"date":"2022-10-14T15:08:51","name":"Implement range-op entry for __builtin_copysign.","commit_ref":null,"pull_url":null,"state":"unresolved","archived":false,"hash":"a7466281b77efbae094c7ba4cff135f8b1fc18b6","submitter":{"id":16,"url":"https://patchwork.plctlab.org/api/1.2/people/16/","name":"Aldy Hernandez","email":"aldyh@redhat.com"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014150851.677560-1-aldyh@redhat.com/mbox/","series":[{"id":1962,"url":"https://patchwork.plctlab.org/api/1.2/series/1962/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1962","date":"2022-10-14T15:08:51","name":"Implement range-op entry for __builtin_copysign.","version":1,"mbox":"https://patchwork.plctlab.org/series/1962/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/2724/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/2724/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 y7csp232034wrs;\n Fri, 14 Oct 2022 08:09:44 -0700 (PDT)","from sourceware.org (server2.sourceware.org. [8.43.85.97])\n by mx.google.com with ESMTPS id\n i6-20020a170906114600b007824b741e7asi2307412eja.236.2022.10.14.08.09.44\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Oct 2022 08:09:44 -0700 (PDT)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 6EA44386076D\n\tfor ; Fri, 14 Oct 2022 15:09:43 +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 020F438582B7\n for ; Fri, 14 Oct 2022 15:08:59 +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-156-p1_jmPS7NmK-P_ZR2UHjrA-1; Fri, 14 Oct 2022 11:08:58 -0400","from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com\n [10.11.54.2])\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 30E748041B5\n for ; Fri, 14 Oct 2022 15:08:58 +0000 (UTC)","from abulafia.quesejoda.com (unknown [10.39.195.163])\n by smtp.corp.redhat.com (Postfix) with ESMTPS id BBBED40C958D;\n Fri, 14 Oct 2022 15:08:57 +0000 (UTC)","from abulafia.quesejoda.com (localhost [127.0.0.1])\n by abulafia.quesejoda.com (8.17.1/8.17.1) with ESMTPS id 29EF8tQn677580\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Fri, 14 Oct 2022 17:08:55 +0200","(from aldyh@localhost)\n by abulafia.quesejoda.com (8.17.1/8.17.1/Submit) id 29EF8tU3677579;\n Fri, 14 Oct 2022 17:08:55 +0200"],"X-Google-Smtp-Source":"\n AMsMyM7EDFvoc7ONRGEILJBca6NbXem0bxAnnrCoQfGPJFBOSd22VSeYza66yZpZwy+tmyCQiRBE","X-Received":"by 2002:a17:906:dac9:b0:780:ab6f:591f with SMTP id\n xi9-20020a170906dac900b00780ab6f591fmr3875329ejb.77.1665760184371;\n Fri, 14 Oct 2022 08:09:44 -0700 (PDT)","ARC-Seal":"i=1; a=rsa-sha256; t=1665760184; cv=none;\n d=google.com; s=arc-20160816;\n b=rOuFQSfvrEVHUCK+2ducXrxtw8WVU1Zy++9nA5yYznoY5o1tKWA5BlUBom3Z3HPA8b\n +ZGQ25iimFZrrVZsHauaw8whFKumiMlCbjotqhBnIBFmylRM28ae3cGgckvtBXMkEzD0\n QXRMdQIKk5/jiMmvQTHpRPlJ9CeQVjThrSf6hMZ2/QrccZ/wq90rajd9rqDutzhpBv88\n 82pZodf4BQmDrsqWADrW6h6uzCw2oex6S5m0Dk8gpZ0NQI1zAGASTeoJHVaLveVME2PE\n jgvAlKKsZzAnWRLlgoGC6E3xbcDH/OyFCQ8uL2irkc0C7yeLfu5dpVMlF0zB/kU7eV1/\n 7how==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help\n :list-post: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=SM0PBSnR5pvfNowfXZoHkVISEdrPA+sr/xi9iiawogg=;\n b=Qseo++EAhBbCaLj+u14CEZi7b9bLvkD/O92/sjNGqxmNi3+mOjydu8Q6P6bEaD9yl+\n FU/kc6j/V3gVEJ/zZILWkylWCtXXbzXrDfd/Rj04TuSv8w7n/YdLOpMPvIo8+plEsEQu\n DgFcI0G4n89DvPW0R7qjZfR6UxNVpocouN+VQKOXihh4TbhIeILZpBarHOdthSisaVEW\n 8GDBWIky3210UPO6/K0mcoZcj3/6WlKQbLdmNMTXdTctFtQy/YY6Nwyoe4W5G2gcp8As\n X3aGf6kO4YhEwaSrLliG/EIAmpXu7S5U9gc066bZVOHiTjf/QCaqfzt2uI3j20h6sdAs\n 7gCA==","ARC-Authentication-Results":"i=1; mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=pVaEuk6V;\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=pVaEuk6V;\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 6EA44386076D","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;\n\ts=default; t=1665760183;\n\tbh=SM0PBSnR5pvfNowfXZoHkVISEdrPA+sr/xi9iiawogg=;\n\th=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\t List-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=pVaEuk6V5c+M21orwQsTg1Pp+uA4z8xzSzyNR23HcR8HZW68Pq+Bpl1JPMiV+SMWe\n\t nYO0GSKtYb21no3d3jW6Nf6UWt9M9pMIpKQzbGNi+jOZXVzxk+qBBCQfkeLoQO1g1Y\n\t zXZ7TYWsybBNa8kbDVg5DdCOOuiBDT8NTFsoswXA=","X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.1 sourceware.org 020F438582B7","X-MC-Unique":"p1_jmPS7NmK-P_ZR2UHjrA-1","To":"Jakub Jelinek ","Subject":"[PATCH] Implement range-op entry for __builtin_copysign.","Date":"Fri, 14 Oct 2022 17:08:51 +0200","Message-Id":"<20221014150851.677560-1-aldyh@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.1 on 10.11.54.2","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain; charset=\"US-ASCII\"; x-default=true","X-Spam-Status":"No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,\n DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0,\n 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":"Aldy Hernandez via Gcc-patches ","Reply-To":"Aldy Hernandez ","Cc":"GCC patches ","Errors-To":"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org","Sender":"\"Gcc-patches\" ","X-getmail-retrieved-from-mailbox":"=?utf-8?q?INBOX?=","X-GMAIL-THRID":"=?utf-8?q?1746676151305066255?=","X-GMAIL-MSGID":"=?utf-8?q?1746676151305066255?="},"content":"[Jakub, while we're on the subject of signed zeros and copysign, does\nthis look OK to you?]\n\ncopysign(MAGNITUDE, SIGN) is implemented as the absolute of MAGNITUDE,\nwith SIGN applied. If the sign of \"SIGN\" cannot be determined, we\nreturn a range of [-MAGNITUDE, +MAGNITUDE].\n\ngcc/ChangeLog:\n\n\t* gimple-range-op.cc (class cfn_copysign): New.\n\t(gimple_range_op_handler::maybe_builtin_call): Add\n\tCFN_BUILT_IN_COPYSIGN*.\n---\n gcc/gimple-range-op.cc | 39 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 39 insertions(+)","diff":"diff --git a/gcc/gimple-range-op.cc b/gcc/gimple-range-op.cc\nindex 527893f66af..8137308f32e 100644\n--- a/gcc/gimple-range-op.cc\n+++ b/gcc/gimple-range-op.cc\n@@ -342,6 +342,38 @@ public:\n }\n } op_cfn_signbit;\n \n+// Implement range operator for CFN_BUILT_IN_COPYSIGN\n+class cfn_copysign : public range_operator_float\n+{\n+public:\n+ using range_operator_float::fold_range;\n+ virtual bool fold_range (frange &r, tree type, const frange &lh,\n+\t\t\t const frange &rh, relation_kind) const override\n+ {\n+ frange neg;\n+ range_op_handler abs_op (ABS_EXPR, type);\n+ range_op_handler neg_op (NEGATE_EXPR, type);\n+ if (!abs_op || !abs_op.fold_range (r, type, lh, frange (type)))\n+ return false;\n+ if (!neg_op || !neg_op.fold_range (neg, type, r, frange (type)))\n+ return false;\n+\n+ bool signbit;\n+ if (rh.signbit_p (signbit))\n+ {\n+\t// If the sign is negative, flip the result from ABS,\n+\t// otherwise leave things positive.\n+\tif (signbit)\n+\t r = neg;\n+ }\n+ else\n+ // If the sign is unknown, keep the positive and negative\n+ // alternatives.\n+ r.union_ (neg);\n+ return true;\n+ }\n+} op_cfn_copysign;\n+\n // Implement range operator for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.\n class cfn_toupper_tolower : public range_operator\n {\n@@ -762,6 +794,13 @@ gimple_range_op_handler::maybe_builtin_call ()\n m_valid = true;\n break;\n \n+ CASE_FLT_FN (CFN_BUILT_IN_COPYSIGN):\n+ m_op1 = gimple_call_arg (call, 0);\n+ m_op2 = gimple_call_arg (call, 1);\n+ m_float = &op_cfn_copysign;\n+ m_valid = true;\n+ break;\n+\n case CFN_BUILT_IN_TOUPPER:\n case CFN_BUILT_IN_TOLOWER:\n // Only proceed If the argument is compatible with the LHS.\n","prefixes":[]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE