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 a75e9bee7c23403d3cc7085a249f230de50c4c3e (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f a75e9bee7c23403d3cc7085a249f230de50c4c3e # timeout=10 Commit message: "Add cases for CFN_BUILT_IN_SIGNBIT[FL]." > git rev-list --no-walk a75e9bee7c23403d3cc7085a249f230de50c4c3e # 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/jenkins14295103595752502547.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=series1925-patch2634 ++ git branch -a ++ grep 'series1925-patch2634$' + checkbranch= + checkbranchresult=null + '[' null = series1925-patch2634 ']' + git checkout -b series1925-patch2634 Switched to a new branch 'series1925-patch2634' ++ curl https://patchwork.plctlab.org/api/1.2/series/1925/ % 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 1255 100 1255 0 0 34861 0 --:--:-- --:--:-- --:--:-- 34861 + series_response='{"id":1925,"url":"https://patchwork.plctlab.org/api/1.2/series/1925/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1925","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":"[SPARC] Fix PR target/107248","date":"2022-10-14T10:00:44","submitter":{"id":54,"url":"https://patchwork.plctlab.org/api/1.2/people/54/","name":"Eric Botcazou","email":"botcazou@adacore.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1925/mbox/","cover_letter":null,"patches":[{"id":2634,"url":"https://patchwork.plctlab.org/api/1.2/patches/2634/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/","msgid":"<2850050.e9J7NaK4W3@fomalhaut>","list_archive_url":null,"date":"2022-10-14T10:00:44","name":"[SPARC] Fix PR target/107248","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/"}]}' ++ echo '{"id":1925,"url":"https://patchwork.plctlab.org/api/1.2/series/1925/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1925","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":"[SPARC] Fix PR target/107248","date":"2022-10-14T10:00:44","submitter":{"id":54,"url":"https://patchwork.plctlab.org/api/1.2/people/54/","name":"Eric Botcazou","email":"botcazou@adacore.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1925/mbox/","cover_letter":null,"patches":[{"id":2634,"url":"https://patchwork.plctlab.org/api/1.2/patches/2634/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/","msgid":"<2850050.e9J7NaK4W3@fomalhaut>","list_archive_url":null,"date":"2022-10-14T10:00:44","name":"[SPARC] Fix PR target/107248","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' + patchid_patchurl='"2634,https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/"' + echo '"2634,https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/"' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"2634' ++ sed 's/"//g' + series_patch_id=2634 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++ git rev-parse HEAD + commitid_before=a75e9bee7c23403d3cc7085a249f230de50c4c3e + eval '+++ declare -p bout bret declare -- bout="Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.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/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/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 10613 100 10613 0 0 76352 0 --:--:-- --:--:-- --:--:-- 75807 +++ bout='\''\'\'''\''Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.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/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/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 10613 100 10613 0 0 76352 0 --:--:-- --:--:-- --:--:-- 75807 +++ bout='\''Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0"' ++ +++ declare -p bout bret /tmp/jenkins14295103595752502547.sh: line 85: +++: command not found ++ declare -- 'bout=Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.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/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/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 10613 100 10613 0 0 76352 0 --:--:-- --:--:-- --:--:-- 75807 +++ bout='\''Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' /tmp/jenkins14295103595752502547.sh: line 104: ++: command not found ++ ++ declare -p berr /tmp/jenkins14295103595752502547.sh: line 105: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/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 10613 100 10613 0 0 76352 0 --:--:-- --:--:-- --:--:-- 75807 +++ bout='\''Applying: Fix PR target/107248 Using index info to reconstruct a base tree... M gcc/config/sparc/sparc.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' ++ git rev-parse HEAD + commitid_after=a75e9bee7c23403d3cc7085a249f230de50c4c3e + '[' 0 = 0 ']' + '[' a75e9bee7c23403d3cc7085a249f230de50c4c3e = a75e9bee7c23403d3cc7085a249f230de50c4c3e ']' + submit_check warning 'Repeat Merge' https://patchwork.plctlab.org/jenkins/job/gcc-patch/1293/consoleText 'Git am fail log' + check_state=warning + patch_state='Repeat Merge' + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1293/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/1293/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/2634/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 10292 13170 --:--:-- --:--:-- --:--:-- 23463 {"id":970,"url":"https://patchwork.plctlab.org/api/patches/2634/checks/970/","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-14T12:19:09.363694","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/1293/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/2634/ % 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":2634,"url":"https://patchwork.plctlab.org/api/1.2/patches/2634/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/","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":"<2850050.e9J7NaK4W3@fomalhaut>","list_archive_url":null,"date":"2022-10-14T10:00:44","name":"[SPARC] Fix PR target/107248","commit_ref":null,"pull_url":null,"state":"repeat-merge","archived":false,"hash":"84bbed4ac58acf82f52fc2b3d915ce13fd11a72e","submitter":{"id":54,"url":"https://patchwork.plctlab.org/api/1.2/people/54/","name":"Eric Botcazou","email":"botcazou@adacore.com"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/2850050.e9J7NaK4W3@fomalhaut/mbox/","series":[{"id":1925,"url":"https://patchwork.plctlab.org/api/1.2/series/1925/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1925","date":"2022-10-14T10:00:44","name":"[SPARC] Fix PR target/107248","version":1,"mbox":"https://patchwork.plctlab.org/series/1925/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/2634/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/2634/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 y7csp93495wrs;\n Fri, 14 Oct 2022 03:01:47 -0700 (PDT)","from sourceware.org (server2.sourceware.org.\n [2620:52:3:1:0:246e:9693:128c])\n by mx.google.com with ESMTPS id\n e18-20020a50a692000000b004511944f801si1789595edc.270.2022.10.14.03.01.47\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Oct 2022 03:01:47 -0700 (PDT)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 1FCF63850845\n\tfor ; Fri, 14 Oct 2022 10:01:31 +0000 (GMT)","from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com\n [IPv6:2a00:1450:4864:20::32f])\n by sourceware.org (Postfix) with ESMTPS id 78FFD385356C\n for ; Fri, 14 Oct 2022 10:00:47 +0000 (GMT)","by mail-wm1-x32f.google.com with SMTP id\n c7-20020a05600c0ac700b003c6cad86f38so5026752wmr.2\n for ; Fri, 14 Oct 2022 03:00:47 -0700 (PDT)","from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6])\n by smtp.gmail.com with ESMTPSA id\n i11-20020adfefcb000000b0022cc895cc11sm1462894wrp.104.2022.10.14.03.00.44\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Oct 2022 03:00:45 -0700 (PDT)"],"X-Google-Smtp-Source":"\n AMsMyM5z0HaebhO6gZLtAbAwXlTNuhogcc7JGKz62VjmMTb30on5jOjjZUcQfMhfK7Q51EQ8Q7S3","X-Received":["by 2002:a17:907:2c4b:b0:78d:bb0c:4a42 with SMTP id\n hf11-20020a1709072c4b00b0078dbb0c4a42mr3021283ejc.546.1665741707348;\n Fri, 14 Oct 2022 03:01:47 -0700 (PDT)","by 2002:a05:600c:4448:b0:3c6:dddf:8451 with SMTP id\n v8-20020a05600c444800b003c6dddf8451mr2967558wmn.1.1665741646053;\n Fri, 14 Oct 2022 03:00:46 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; t=1665741707; cv=none;\n d=google.com; s=arc-20160816;\n b=ZgGalA/YejLTu1YrZsuipIWvyvvo0j9X7jomHI4bHPIzGRpWXtNyHSScNySqRbj//i\n 61OtTSbobNG5IB9PMhEQoU/sqhVcb9HigWSnjP4wmrmJRjhHeXktPRv9P3OuiYQUJhg0\n YmjM/EsYGB9Jv+aVojRgS4shcI4XUn4NpZl8SSLzHOxmJYx7cx9iFmzZSEnLJ8I1jeVc\n 9unpx2mYKaOp9qGgtNecRsSjm5rnWnh0/B86jCknkSOOaCPvOXl0Itd0F10Mcud7nBwH\n CG2IJTpzH9ACD2iGvbP5qIY8pFzLN+uUdDJQFXgf/7WTaxfxYe+VHY2EDo/Z7OZGQEqW\n PJzw==","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=9jKEHiBbhM7Tpz9EBnjy7MKrlZW/Naw8JDy5bMtT5BE=;\n b=ASYhpCJxcnJCzKgzv6jJC1S+n5a3RUyz5KS4B6b8vSSvUH+U3Olo+kKtnUKliBa0vr\n eEbFdaNXEmLejdkBIjKCgVEyTbivKWXQj6YBy0AQ1LXQozuCOfGfsTRab5M6evXk+ZXW\n J1BnFC/42hHjUlH3uzVhW7SycGoy0+/K7Y2RVr4FYG9KBN3/kZvPp0DigP9eUAGU90Qd\n NGehwlZA4rBEj2lT1UcgPcplByQWEClAqi6DbdFynXj0Enq6gh9qCjJshVPvBJEBXAh1\n S2CbxyBkB4q4SGvkd7QE4qW9uX4nRapt/JuMDOixbb8ACDsMDVxPt1ZgR986J6iHOsi+\n AuLw==","ARC-Authentication-Results":"i=1; mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iP24a4Cg;\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates\n 2620:52:3:1:0:246e:9693:128c as 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\n 2620:52:3:1:0:246e:9693:128c as permitted sender)\n client-ip=2620:52:3:1:0:246e:9693:128c;","Authentication-Results":"mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iP24a4Cg;\n spf=pass (google.com: domain of\n gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates\n 2620:52:3:1:0:246e:9693:128c as 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 1FCF63850845","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;\n\ts=default; t=1665741691;\n\tbh=9jKEHiBbhM7Tpz9EBnjy7MKrlZW/Naw8JDy5bMtT5BE=;\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=iP24a4CgsOM1R93VNDbfxuXJClLpkZQfxDFtKe67Vgan4TZCD6E14+IIFKglxWDni\n\t fpZvIGOY+QV+u6pKkJXBBtMCJvEEoNKcSDAR/XxH4Xkoh/D9nGT1NNK3P/wWuzgmMn\n\t cZFHdv5MHhre+7XRNo/KaviSBNxsOsTJnC6scO0A=","X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.1 sourceware.org 78FFD385356C","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=9jKEHiBbhM7Tpz9EBnjy7MKrlZW/Naw8JDy5bMtT5BE=;\n b=UyvaOAP0TXtehpIcl5LOId+VTyF3qzdWs3ameOPPkVH8U6FoB7lFHxPfSfCiogq0uj\n wmc3IeJKjy/CawW7ub1fL9ybuTUt61uNsqrurSWZP1uMjo33HDpX+WQjdBQphjhk23xU\n hEsXz76oiARPPYcxjIKLkEYT3rYukCMmDmMiUVHNpcN2WZCfuoLB1g37ESxURR6fTe98\n uPvzU5w0+gHS6X+1HakSVNNUtYJVGAaMc8+SiS8TnkEIgGYyiSiAgmBeq2XK45brGajY\n d8PyCE4Ed5yKVNSW5jS+u0oFxg0fqE/Wcs1icM6HW4uEbsBOBVnU54ocAmWgMi7Ir+2F\n Ufnw==","X-Gm-Message-State":"ACrzQf0dbijJJfpaDVqDf8OF/zYDKygRc+jhIUhw7APegYgmX1dj+OV6\n 33JRxouHlfKeV9Y9hNat9W4ei5syGmjF7g==","X-Google-Original-From":"Eric Botcazou ","To":"gcc-patches@gcc.gnu.org","Subject":"[SPARC] Fix PR target/107248","Date":"Fri, 14 Oct 2022 12:00:44 +0200","Message-ID":"<2850050.e9J7NaK4W3@fomalhaut>","MIME-Version":"1.0","Content-Type":"multipart/mixed; boundary=\"nextPart3193704.aeNJFYEL58\"","Content-Transfer-Encoding":"7Bit","X-Spam-Status":"No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,\n DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT,\n RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,\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":"Eric Botcazou via Gcc-patches ","Reply-To":"Eric Botcazou ","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?1746656776851459126?=","X-GMAIL-MSGID":"=?utf-8?q?1746656776851459126?="},"content":"This is the infamous PR rtl-optimization/38644 rearing its ugly head for leaf \nfunctions on SPARC more than a decade later... Richard E.'s generic solution \nhas never been implemented so let's do as other RISC back-ends did.\n\nTested on SPARC64/Linux, applied on all active branches.\n\n\n2022-10-14 Eric Botcazou \n\n\tPR target/107248\n\t* config/sparc/sparc.cc (sparc_expand_prologue): Emit a frame\n\tblockage for leaf functions.\n\t(sparc_flat_expand_prologue): Emit frame instead of full blockage.\n\t(sparc_expand_epilogue): Emit a frame blockage for leaf functions.\n\t(sparc_flat_expand_epilogue): Emit frame instead of full blockage.","diff":"diff --git a/gcc/config/sparc/sparc.cc b/gcc/config/sparc/sparc.cc\nindex c72c38e1999..10c0f52d3d9 100644\n--- a/gcc/config/sparc/sparc.cc\n+++ b/gcc/config/sparc/sparc.cc\n@@ -6051,6 +6051,9 @@ sparc_expand_prologue (void)\n \t}\n \n RTX_FRAME_RELATED_P (insn) = 1;\n+\n+ /* Ensure no memory access is done before the frame is established. */\n+ emit_insn (gen_frame_blockage ());\n }\n else\n {\n@@ -6065,13 +6068,7 @@ sparc_expand_prologue (void)\n \t /* %sp is not the CFA register anymore. */\n \t emit_insn (gen_stack_pointer_inc (GEN_INT (4096 - size)));\n \n-\t /* Make sure no %fp-based store is issued until after the frame is\n-\t established. The offset between the frame pointer and the stack\n-\t pointer is calculated relative to the value of the stack pointer\n-\t at the end of the function prologue, and moving instructions that\n-\t access the stack via the frame pointer between the instructions\n-\t that decrement the stack pointer could result in accessing the\n-\t register window save area, which is volatile. */\n+\t /* Likewise. */\n \t emit_insn (gen_frame_blockage ());\n \t}\n else\n@@ -6167,8 +6164,8 @@ sparc_flat_expand_prologue (void)\n \t}\n RTX_FRAME_RELATED_P (insn) = 1;\n \n- /* Ensure nothing is scheduled until after the frame is established. */\n- emit_insn (gen_blockage ());\n+ /* Ensure no memory access is done before the frame is established. */\n+ emit_insn (gen_frame_blockage ());\n \n if (frame_pointer_needed)\n \t{\n@@ -6255,6 +6252,9 @@ sparc_expand_epilogue (bool for_eh)\n ; /* do nothing. */\n else if (sparc_leaf_function_p)\n {\n+ /* Ensure no memory access is done after the frame is destroyed. */\n+ emit_insn (gen_frame_blockage ());\n+\n if (size <= 4096)\n \temit_insn (gen_stack_pointer_inc (GEN_INT (size)));\n else if (size <= 8192)\n@@ -6305,15 +6305,15 @@ sparc_flat_expand_epilogue (bool for_eh)\n ; /* do nothing. */\n else if (frame_pointer_needed)\n {\n- /* Make sure the frame is destroyed after everything else is done. */\n- emit_insn (gen_blockage ());\n+ /* Ensure no memory access is done after the frame is destroyed. */\n+ emit_insn (gen_frame_blockage ());\n \n emit_move_insn (stack_pointer_rtx, gen_rtx_REG (Pmode, 1));\n }\n else\n {\n /* Likewise. */\n- emit_insn (gen_blockage ());\n+ emit_insn (gen_frame_blockage ());\n \n if (size <= 4096)\n \temit_insn (gen_stack_pointer_inc (GEN_INT (size)));\n","prefixes":["SPARC"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE