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:plctlab/patchwork-gcc.git > git init /home/jenkins/agent/workspace/gcc-patch # timeout=10 Fetching upstream changes from git@github.com:plctlab/patchwork-gcc.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:plctlab/patchwork-gcc.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:plctlab/patchwork-gcc.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 c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a # timeout=10 Commit message: "RISC-V: Reorganize binary autovec testcases" > git rev-list --no-walk c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a # 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/plctlab/patchwork-gcc PATCHWORK_URL=https://patchwork.plctlab.org [EnvInject] - Variables injected successfully. [gcc-patch] $ /usr/bin/env bash /tmp/jenkins1560599857326284734.sh + git config pw.server https://patchwork.plctlab.org/api/1.2/ + git config pw.project gcc-patch + git config pw.token [*******] ++ date +%Y-%m + now_date=2024-02 ++ date +%Y + now_date_year=2024 + bundle_name=gcc-patch_2024-02 ++ curl -s -H 'Authorization: Token [*******]' 'https://patchwork.plctlab.org/api/1.2/bundles/?project=gcc-patch&per_page=999' + bundle_response=' Site Maintenance

We’ll be back soon!

Sorry for the inconvenience. We’re performing some maintenance at the moment.

' ++ jq -rc '.[].name' ++ echo ' Site Maintenance

We’ll be back soon!

Sorry for the inconvenience. We’re performing some maintenance at the moment.

' parse error: Invalid numeric literal at line 1, column 10 + bundle_name_list= + [[ '' =~ 2024-02 ]] + git-pw bundle create --public gcc-patch_2024-02 203879 Server error. Please report this issue to https://github.com/getpatchwork/patchwork Traceback (most recent call last): File "/usr/local/bin/git-pw", line 8, in sys.exit(cli()) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 418, in new_func return ctx.invoke(f, *args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/local/lib/python3.9/dist-packages/git_pw/bundle.py", line 232, in create_cmd bundle = api.create('bundles', data) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 363, in create return _post(url, data).json() File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 180, in _post _handle_error('create', exc) File "/usr/local/lib/python3.9/dist-packages/git_pw/api.py", line 178, in _post rsp.raise_for_status() File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://patchwork.plctlab.org/api/1.2/bundles/ + git clone git@github.com:wangliu-iscas/Patchwork-Bundles.git Cloning into 'Patchwork-Bundles'... + cd Patchwork-Bundles + sed -i '/## 2024/a[2024-02](https://patchwork.plctlab.org/bundle/patchwork-bot/gcc-patch_2024-02) ' gcc-patch.md + git add gcc-patch.md + git commit -m 'gcc-patch add 2024-02 bundle' [main 8494f92] gcc-patch add 2024-02 bundle 1 file changed, 1 insertion(+) + git push To github.com:wangliu-iscas/Patchwork-Bundles.git 9f108d8..8494f92 main -> main + cd - /home/jenkins/agent/workspace/gcc-patch + git config pull.rebase false + git fetch origin master From github.com:plctlab/patchwork-gcc * 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:plctlab/patchwork-gcc * branch master -> FETCH_HEAD Already up to date. + git fetch origin upstream-master From github.com:plctlab/patchwork-gcc * 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 fatal: refusing to merge unrelated histories + 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 fatal: refusing to merge unrelated histories + git push -u origin master Everything up-to-date branch 'master' set up to track 'origin/master'. + branchname=series83950-patch203879 ++ git branch -a ++ grep 'series83950-patch203879$' + checkbranch= + checkbranchresult=null + '[' null = series83950-patch203879 ']' + git checkout -b series83950-patch203879 Switched to a new branch 'series83950-patch203879' ++ curl https://patchwork.plctlab.org/api/1.2/series/83950/ % 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 3501 100 3501 0 0 29669 0 --:--:-- --:--:-- --:--:-- 29923 + series_response='{"id":83950,"url":"https://patchwork.plctlab.org/api/1.2/series/83950/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83950","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://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).","date":"2024-02-21T03:10:46","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"version":1,"total":4,"received_total":4,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/83950/mbox/","cover_letter":{"id":20704,"url":"https://patchwork.plctlab.org/api/1.2/covers/20704/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221031050.24343-1-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-1-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:46","name":"[v1,0/4] Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).","mbox":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221031050.24343-1-chenglulu@loongson.cn/mbox/"},"patches":[{"id":203877,"url":"https://patchwork.plctlab.org/api/1.2/patches/203877/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-2-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:47","name":"[v1,1/4] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/"},{"id":203878,"url":"https://patchwork.plctlab.org/api/1.2/patches/203878/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-3-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:48","name":"[v1,2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/"},{"id":203879,"url":"https://patchwork.plctlab.org/api/1.2/patches/203879/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-4-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:49","name":"[v1,3/4] LoongArch: Disable relaxation if the assembler don'\''t support conditional branch relaxation [PR112330]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/mbox/"},{"id":203880,"url":"https://patchwork.plctlab.org/api/1.2/patches/203880/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-5-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:50","name":"[v1,4/4] LoongArch: Define HAVE_AS_TLS to 0 if it'\''s undefined [PR112299]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' ++ echo '{"id":83950,"url":"https://patchwork.plctlab.org/api/1.2/series/83950/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83950","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://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).","date":"2024-02-21T03:10:46","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"version":1,"total":4,"received_total":4,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/83950/mbox/","cover_letter":{"id":20704,"url":"https://patchwork.plctlab.org/api/1.2/covers/20704/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221031050.24343-1-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-1-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:46","name":"[v1,0/4] Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).","mbox":"https://patchwork.plctlab.org/project/gcc-patch/cover/20240221031050.24343-1-chenglulu@loongson.cn/mbox/"},"patches":[{"id":203877,"url":"https://patchwork.plctlab.org/api/1.2/patches/203877/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-2-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:47","name":"[v1,1/4] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/"},{"id":203878,"url":"https://patchwork.plctlab.org/api/1.2/patches/203878/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-3-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:48","name":"[v1,2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/"},{"id":203879,"url":"https://patchwork.plctlab.org/api/1.2/patches/203879/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-4-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:49","name":"[v1,3/4] LoongArch: Disable relaxation if the assembler don'\''t support conditional branch relaxation [PR112330]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/mbox/"},{"id":203880,"url":"https://patchwork.plctlab.org/api/1.2/patches/203880/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/","msgid":"<20240221031050.24343-5-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:50","name":"[v1,4/4] LoongArch: Define HAVE_AS_TLS to 0 if it'\''s undefined [PR112299]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/mbox/"}]}' + patchid_patchurl='"203877,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/" "203878,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/" "203879,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/mbox/" "203880,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/mbox/"' + echo '"203877,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/" "203878,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/" "203879,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/mbox/" + IFS=, + read -r series_patch_id series_patch_url "203880,https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-5-chenglulu@loongson.cn/mbox/"' ++ echo '"203877' ++ sed 's/"//g' + series_patch_id=203877 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++ git rev-parse HEAD + commitid_before=c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a + eval '+++ declare -p bout bret declare -- bout="Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP." declare -- bret="0" ++ berr='\''++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/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 9714 100 9714 0 0 338k 0 --:--:-- --:--:-- --:--:-- 338k +++ bout='\''\'\'''\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\''\'\'''\'' +++ bret=0'\'' ++ declare -p berr declare -- berr="++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/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 9714 100 9714 0 0 338k 0 --:--:-- --:--:-- --:--:-- 338k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0"' ++ +++ declare -p bout bret /tmp/jenkins1560599857326284734.sh: line 129: +++: command not found ++ declare -- 'bout=Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.' ++ declare -- bret=0 ++ ++ 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/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 9714 100 9714 0 0 338k 0 --:--:-- --:--:-- --:--:-- 338k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0' /tmp/jenkins1560599857326284734.sh: line 140: ++: command not found ++ ++ declare -p berr /tmp/jenkins1560599857326284734.sh: line 141: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-2-chenglulu@loongson.cn/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 9714 100 9714 0 0 338k 0 --:--:-- --:--:-- --:--:-- 338k +++ bout='\''Applying: LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP.'\'' +++ bret=0' ++ git rev-parse HEAD + commitid_after=2c12d363bcaf23f879d1e48b7a818e0024e96394 + '[' 0 = 0 ']' + '[' 2c12d363bcaf23f879d1e48b7a818e0024e96394 = c2d62cdd63f34c2f5187687d4c7b9f00f7d8fa3a ']' + '[' 203877 = 203879 ']' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"203878' ++ sed 's/"//g' + series_patch_id=203878 ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/"' ++ sed 's/"//g' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++ git rev-parse HEAD + commitid_before=2c12d363bcaf23f879d1e48b7a818e0024e96394 + eval '+++ declare -p bout bret declare -- bout="Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/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 14418 100 14418 0 0 234k 0 --:--:-- --:--:-- --:--:-- 234k +++ bout='\''\'\'''\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''\'\''\'\'''\'''\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\''\'\''\'\'''\'''\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/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 14418 100 14418 0 0 234k 0 --:--:-- --:--:-- --:--:-- 234k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\\'\'''\''git am --show-current-patch=diff'\''\\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/jenkins1560599857326284734.sh: line 129: +++: command not found ++ declare -- 'bout=Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/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 14418 100 14418 0 0 234k 0 --:--:-- --:--:-- --:--:-- 234k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/jenkins1560599857326284734.sh: line 154: ++: command not found ++ ++ declare -p berr /tmp/jenkins1560599857326284734.sh: line 155: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/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 14418 100 14418 0 0 234k 0 --:--:-- --:--:-- --:--:-- 234k +++ bout='\''Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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=2c12d363bcaf23f879d1e48b7a818e0024e96394 + '[' 128 = 0 ']' + [[ ++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-3-chenglulu@loongson.cn/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 14418 100 14418 0 0 234k 0 --:--:-- --:--:-- --:--:-- 234k +++ bout='Applying: LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. error: sha1 information is lacking or useless (gcc/config.in). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. 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/17055/consoleText 'Git am fail log' + check_state=warning + patch_state=Unresolved + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/17055/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/17055/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/203879/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 970 100 429 100 541 5362 6762 --:--:-- --:--:-- --:--:-- 12125 {"id":19782,"url":"https://patchwork.plctlab.org/api/patches/203879/checks/19782/","user":{"id":1,"url":"https://patchwork.plctlab.org/api/users/1/","username":"snail","first_name":"","last_name":"","email":"wangliu@iscas.ac.cn"},"date":"2024-02-21T04:11:55.671322","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/17055/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/203879/ % 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":203879,"url":"https://patchwork.plctlab.org/api/1.2/patches/203879/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/","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://github.com/wangliu-iscas/Patchwork-Bundles/blob/main/gcc-patch.md","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20240221031050.24343-4-chenglulu@loongson.cn>","list_archive_url":null,"date":"2024-02-21T03:10:49","name":"[v1,3/4] LoongArch: Disable relaxation if the assembler don't support conditional branch relaxation [PR112330]","commit_ref":null,"pull_url":null,"state":"unresolved","archived":false,"hash":"8d00c339eeb4ef3fba5eeee97642d0365cc82968","submitter":{"id":6,"url":"https://patchwork.plctlab.org/api/1.2/people/6/","name":"Lulu Cheng","email":"chenglulu@loongson.cn"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20240221031050.24343-4-chenglulu@loongson.cn/mbox/","series":[{"id":83950,"url":"https://patchwork.plctlab.org/api/1.2/series/83950/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=83950","date":"2024-02-21T03:10:46","name":"Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).","version":1,"mbox":"https://patchwork.plctlab.org/series/83950/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/203879/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/203879/checks/","tags":{},"headers":{"Return-Path":"","Delivered-To":["ouuuleilei@gmail.com","gcc-patches@gcc.gnu.org"],"Received":["by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp804380dyc;\n Tue, 20 Feb 2024 19:12:42 -0800 (PST)","from server2.sourceware.org (server2.sourceware.org.\n [2620:52:3:1:0:246e:9693:128c])\n by mx.google.com with ESMTPS id\n m10-20020ac8444a000000b0042c2dd58efasi9385380qtn.758.2024.02.20.19.12.41\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 20 Feb 2024 19:12:41 -0800 (PST)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 64E553858C41\n\tfor ; Wed, 21 Feb 2024 03:12:41 +0000 (GMT)","from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10])\n by sourceware.org (Postfix) with ESMTPS id 8E1D83858C5F\n for ; Wed, 21 Feb 2024 03:11:47 +0000 (GMT)","from mail.loongson.cn ([114.242.206.163])\n by eggs.gnu.org with esmtp (Exim 4.90_1)\n (envelope-from ) id 1rcd1M-0000vM-4W\n for gcc-patches@gcc.gnu.org; Tue, 20 Feb 2024 22:11:46 -0500","from loongson.cn (unknown [10.20.4.107])\n by gateway (Coremail) with SMTP id _____8BxSOjsadVl_KcPAA--.21396S3;\n Wed, 21 Feb 2024 11:11:40 +0800 (CST)","from loongson-pc.loongson.cn (unknown [10.20.4.107])\n by localhost.localdomain (Coremail) with SMTP id\n AQAAf8Cxbs3LadVlN209AA--.25488S5;\n Wed, 21 Feb 2024 11:11:38 +0800 (CST)"],"X-Forwarded-Encrypted":"i=3;\n AJvYcCXJDu2QIzmVmM9I22jBTsDWFQQ5/vWPau7NAMxrQqPpKyaGs0wuAgnvMMwpc9x67yyM2tWNES63Zm8/WxZF4FeDvuilfw==","X-Google-Smtp-Source":"\n AGHT+IHeKGV1gSDxl4Vz6zZ0VfXeFiNqDcuviObQZ5IFVgv8b1M6/3vV/rAVbJDimsJepPaOId3F","X-Received":"by 2002:a05:622a:5209:b0:42c:dcd7:bbc9 with SMTP id\n dq9-20020a05622a520900b0042cdcd7bbc9mr16283052qtb.38.1708485161774;\n Tue, 20 Feb 2024 19:12:41 -0800 (PST)","ARC-Seal":["i=2; a=rsa-sha256; t=1708485161; cv=pass;\n d=google.com; s=arc-20160816;\n b=n7ZslR4m7uywCCT2V/IHrgjbau1iLi2bdJTQrkr4loGIf+YcCf/udt5wDXjfRFwTtu\n I5pIwYtSNlssn9eInfXOOllmM2aNOPg2oIkFfwVeatkj6aXZFfw++vsE65ciKisVbxbO\n Xcu7YlqlzT2HNxj2gsqDo5TU8dt2s+74/4dQw8wCHyyoe+I8TOotd9Jxf3O66F36K+nO\n pBp+1SqZqWmEFpVWiHZo3j0g6Fjmy26JqL9hXTSTr05XMjYdk28yeUb4NNeJiBNvhd9S\n nAlExlIij+/O+W+I5Mg1hJEJt6kiwjlD+woqYe3BXHJ1XCwSexY3EcYSICAuZPG+U8HS\n EkXQ==","i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708485110; cv=none;\n b=e2C6Qmekw/JGdOAY8DCEpI8WDNT4uAsR2ENVXgtzEOA1nGq5Fg267f5EAi/1HdtmA8kZbCg5lUFxRjY5a7tSVd+3lkDThs9aS1YQnf7iWZrEjHI6c3STLfKONfYNb/GiS7x5+KF+r0PsqeRlp2zqQcFx+cgH4hP1NPcliZ6uOng="],"ARC-Message-Signature":["i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n h=errors-to:list-subscribe:list-help:list-post:list-archive\n :list-unsubscribe:list-id:precedence:content-transfer-encoding\n :mime-version:references:in-reply-to:message-id:date:subject:cc:to\n :from:arc-filter:dmarc-filter:delivered-to;\n bh=0XOiSJuUlYHJ5XDPJhOP9Mv6ohanvdAc5GMYAa9E0LA=;\n fh=wYRiZnn9nDBltyuQH1H/s7FMOEBgw7D5UzXRQ9Hnwic=;\n b=T2X7bBYQgW6oZa9ozjqoKC1fF22+jvomRy3TjGvVfn3+ojoKUi4/8J7vjwZEZ6yR7G\n Z5y0wu3/+HK7T+lqv2FeokUmxDamt0NPXVzmCkyMvoalzS+r6umdDVvx0EpsS12g4LK2\n wXYl2wZRwPYgv0hKWqatpzwpxl4nhnnulsCsLaD5gtDQFjh6O7tgMx/qx3IR4ybcyqbZ\n tZoWW8STt8FlGtQrxNFTBzX9G08kT33a9oaCkPQBWfV7CdxalOTgpi9GApEyMovbsHnX\n H1EA7wrhnIltTO3Wc4fZbWhDnpnkih+4BAGb+3WDM40eA5EykGrRWKnOMc/kUEbUtZjO\n Ktqw==;\n dara=google.com","i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1708485110; c=relaxed/simple;\n bh=HnqPv7SDvjx9MTTdAypZryGQFa18Aw3L2T2YZzta04Q=;\n h=From:To:Subject:Date:Message-Id:MIME-Version;\n b=n65HJ4IXy328FfAGIf7Azz1OMylKuJFkz5aZfoaZhlyJaD4DWh2mMkWjoRsiMEFiYGVleVzXwtveqHI8eOZjOCagKOSSZ+yeXTSr3t1OJdhy3q6/tyRJeVTOTBwi6fqwDjcO8cnvngbKedAVr9AJX9pl8X3WyiGoWi9/jAaGNP8="],"ARC-Authentication-Results":["i=2; mx.google.com;\n arc=pass (i=1);\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\"","i=1; server2.sourceware.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;","pass client-ip=114.242.206.163;\n envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn"],"Authentication-Results":["mx.google.com;\n arc=pass (i=1);\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\"","sourceware.org;\n dmarc=none (p=none dis=none) header.from=loongson.cn","sourceware.org; spf=fail smtp.mailfrom=loongson.cn","server2.sourceware.org;\n arc=none smtp.remote-ip=2001:470:142:3::10"],"X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 8E1D83858C5F","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 8E1D83858C5F","From":"Lulu Cheng ","To":"gcc-patches@gcc.gnu.org","Cc":"xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,\n chenglulu@loongson.cn","Subject":"[PATCH v1 3/4] LoongArch: Disable relaxation if the assembler don't\n support conditional branch relaxation [PR112330]","Date":"Wed, 21 Feb 2024 11:10:49 +0800","Message-Id":"<20240221031050.24343-4-chenglulu@loongson.cn>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20240221031050.24343-1-chenglulu@loongson.cn>","References":"<20240221031050.24343-1-chenglulu@loongson.cn>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-CM-TRANSID":"AQAAf8Cxbs3LadVlN209AA--.25488S5","X-CM-SenderInfo":"xfkh0wpoxo3qxorr0wxvrqhubq/","X-Coremail-Antispam":"1Uk129KBj93XoW3ury5ZFykKw13Gw4kWryxXrc_yoWDtw1Dpa\n 47urnxtF48Grn3Gw1Dt34fWwnxA3Z2gr12va1aqr18Ca15Xr10vF40yFnxXFn7Ww4rWry2\n qrnYka17uF1DA3XCm3ZEXasCq-sJn29KB7ZKAUJUUUU3529EdanIXcx71UUUUU7KY7ZEXa\n sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU\n 0xBIdaVrnRJUUUB2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2\n IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v\n e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI\n 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2\n 6r4UJVWxJr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12\n xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26rWY\n 6Fy7McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64\n vIr41lc7CjxVAaw2AFwI0_JF0_Jw1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_\n Jr0_Gr1l4IxYO2xFxVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc\n xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0\n cI8IcVAFwI0_Xr0_Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8V\n AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E\n 14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUsoUDDUUUU","X-Spam_score_int":"-18","X-Spam_score":"-1.9","X-Spam_bar":"-","X-Spam_report":"(-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-Spam-Status":"No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_PASS, TXREP,\n T_SCC_BODY_TEXT_LINE 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.30","Precedence":"list","List-Id":"Gcc-patches mailing list ","List-Unsubscribe":",\n ","List-Archive":"","List-Post":"","List-Help":"","List-Subscribe":",\n ","Errors-To":"gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org","X-getmail-retrieved-from-mailbox":"INBOX","X-GMAIL-THRID":"1791476536755617948","X-GMAIL-MSGID":"1791476536755617948"},"content":"From: Xi Ruoyao \n\nAs the commit message of r14-4674 has indicated, if the assembler does\nnot support conditional branch relaxation, a relocation overflow may\nhappen on conditional branches when relaxation is enabled because the\nnumber of NOP instructions inserted by the assembler will be more than\nthe number estimated by GCC.\n\nTo work around this issue, disable relaxation by default if the\nassembler is detected incapable to perform conditional branch relaxation\nat GCC build time. We also need to pass -mno-relax to the assembler to\nreally disable relaxation. But, if the assembler does not support\n-mrelax option at all, we should not pass -mno-relax to the assembler or\nit will immediately error out. Also handle this with the build time\nassembler capability probing, and add a pair of options\n-m[no-]pass-mrelax-to-as to allow using a different assembler from the\nbuild-time one.\n\nWith this change, if GCC is built with GAS 2.41, relaxation will be\ndisabled by default. So the default value of -mexplicit-relocs= is also\nchanged to 'always' if -mno-relax is specified or implied by the\nbuild-time default, because using assembler macros for symbol addresses\nproduces no benefit when relaxation is disabled.\n\ngcc/ChangeLog:\n\n\tPR target/112330\n\t* config/loongarch/genopts/loongarch.opt.in: Add\n\t-m[no]-pass-relax-to-as. Change the default of -m[no]-relax to\n\taccount conditional branch relaxation support status.\n\t* config/loongarch/loongarch.opt: Regenerate.\n\t* configure.ac (gcc_cv_as_loongarch_cond_branch_relax): Check if\n\tthe assembler supports conditional branch relaxation.\n\t* configure: Regenerate.\n\t* config.in: Regenerate. Note that there are some unrelated\n\tchanges introduced by r14-5424 (which does not contain a\n\tconfig.in regeneration).\n\t* config/loongarch/loongarch-opts.h\n\t(HAVE_AS_COND_BRANCH_RELAXATION): Define to 0 if not defined.\n\t* config/loongarch/loongarch-driver.h (ASM_MRELAX_DEFAULT):\n\tDefine.\n\t(ASM_MRELAX_SPEC): Define.\n\t(ASM_SPEC): Use ASM_MRELAX_SPEC instead of \"%{mno-relax}\".\n\t* config/loongarch/loongarch.cc: Take the setting of\n\t-m[no-]relax into account when determining the default of\n\t-mexplicit-relocs=.\n\t* doc/invoke.texi: Document -m[no-]relax and\n\t-m[no-]pass-mrelax-to-as for LoongArch. Update the default\n\tvalue of -mexplicit-relocs=.\n\n(cherry picked from commit fe23a2ff1f5072559552be0e41ab55bf72f5c79f)\n---\n gcc/config.in | 6 ++++\n gcc/config/loongarch/genopts/loongarch.opt.in | 6 +++-\n gcc/config/loongarch/loongarch-opts.h | 4 +++\n gcc/config/loongarch/loongarch.h | 17 ++++++++-\n gcc/config/loongarch/loongarch.opt | 6 +++-\n gcc/configure | 35 +++++++++++++++++++\n gcc/configure.ac | 10 ++++++\n gcc/doc/invoke.texi | 24 ++++++++++++-\n 8 files changed, 104 insertions(+), 4 deletions(-)","diff":"diff --git a/gcc/config.in b/gcc/config.in\nindex f5b6287a96a..f3bdcb4cdda 100644\n--- a/gcc/config.in\n+++ b/gcc/config.in\n@@ -367,6 +367,12 @@\n #endif\n \n \n+/* Define if your assembler supports conditional branch relaxation. */\n+#ifndef USED_FOR_TARGET\n+#undef HAVE_AS_COND_BRANCH_RELAXATION\n+#endif\n+\n+\n /* Define if your assembler supports the --debug-prefix-map option. */\n #ifndef USED_FOR_TARGET\n #undef HAVE_AS_DEBUG_PREFIX_MAP\ndiff --git a/gcc/config/loongarch/genopts/loongarch.opt.in b/gcc/config/loongarch/genopts/loongarch.opt.in\nindex edc2ed045d7..420a3941b3b 100644\n--- a/gcc/config/loongarch/genopts/loongarch.opt.in\n+++ b/gcc/config/loongarch/genopts/loongarch.opt.in\n@@ -179,6 +179,10 @@ Target RejectNegative Joined Enum(cmodel) Var(la_opt_cmodel) Init(CMODEL_NORMAL)\n Specify the code model.\n \n mrelax\n-Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION)\n+Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION && HAVE_AS_COND_BRANCH_RELAXATION)\n Take advantage of linker relaxations to reduce the number of instructions\n required to materialize symbol addresses.\n+\n+mpass-mrelax-to-as\n+Target Var(loongarch_pass_mrelax_to_as) Init(HAVE_AS_MRELAX_OPTION)\n+Pass -mrelax or -mno-relax option to the assembler.\ndiff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h\nindex 60e682f57a0..bdf79ecc193 100644\n--- a/gcc/config/loongarch/loongarch-opts.h\n+++ b/gcc/config/loongarch/loongarch-opts.h\n@@ -91,4 +91,8 @@ loongarch_config_target (struct loongarch_target *target,\n #define HAVE_AS_MRELAX_OPTION 0\n #endif\n \n+#ifndef HAVE_AS_COND_BRANCH_RELAXATION\n+#define HAVE_AS_COND_BRANCH_RELAXATION 0\n+#endif\n+\n #endif /* LOONGARCH_OPTS_H */\ndiff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h\nindex 8d08b84c8eb..28ab87eb660 100644\n--- a/gcc/config/loongarch/loongarch.h\n+++ b/gcc/config/loongarch/loongarch.h\n@@ -69,8 +69,23 @@ along with GCC; see the file COPYING3. If not see\n #define SUBTARGET_ASM_SPEC \"\"\n #endif\n \n+#if HAVE_AS_MRELAX_OPTION && HAVE_AS_COND_BRANCH_RELAXATION\n+#define ASM_MRELAX_DEFAULT \"%{!mrelax:%{!mno-relax:-mrelax}}\"\n+#else\n+#define ASM_MRELAX_DEFAULT \"%{!mrelax:%{!mno-relax:-mno-relax}}\"\n+#endif\n+\n+#if HAVE_AS_MRELAX_OPTION\n+#define ASM_MRELAX_SPEC \\\n+ \"%{!mno-pass-mrelax-to-as:%{mrelax} %{mno-relax} \" ASM_MRELAX_DEFAULT \"}\"\n+#else\n+#define ASM_MRELAX_SPEC \\\n+ \"%{mpass-mrelax-to-as:%{mrelax} %{mno-relax} \" ASM_MRELAX_DEFAULT \"}\"\n+#endif\n+\n #undef ASM_SPEC\n-#define ASM_SPEC \"%{mabi=*} %{subtarget_asm_spec}\"\n+#define ASM_SPEC \\\n+ \"%{mabi=*} \" ASM_MRELAX_SPEC \" %(subtarget_asm_spec)\"\n \n /* Extra switches sometimes passed to the linker. */\n \ndiff --git a/gcc/config/loongarch/loongarch.opt b/gcc/config/loongarch/loongarch.opt\nindex 78b5e0cc452..3a39dcbd92e 100644\n--- a/gcc/config/loongarch/loongarch.opt\n+++ b/gcc/config/loongarch/loongarch.opt\n@@ -186,6 +186,10 @@ Target RejectNegative Joined Enum(cmodel) Var(la_opt_cmodel) Init(CMODEL_NORMAL)\n Specify the code model.\n \n mrelax\n-Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION)\n+Target Var(loongarch_mrelax) Init(HAVE_AS_MRELAX_OPTION && HAVE_AS_COND_BRANCH_RELAXATION)\n Take advantage of linker relaxations to reduce the number of instructions\n required to materialize symbol addresses.\n+\n+mpass-mrelax-to-as\n+Target Var(loongarch_pass_mrelax_to_as) Init(HAVE_AS_MRELAX_OPTION)\n+Pass -mrelax or -mno-relax option to the assembler.\ndiff --git a/gcc/configure b/gcc/configure\nindex 67cdd92a4f3..ac904c88f9f 100755\n--- a/gcc/configure\n+++ b/gcc/configure\n@@ -28900,6 +28900,41 @@ if test $gcc_cv_as_loongarch_relax = yes; then\n \n $as_echo \"#define HAVE_AS_MRELAX_OPTION 1\" >>confdefs.h\n \n+fi\n+\n+ { $as_echo \"$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support\" >&5\n+$as_echo_n \"checking assembler for conditional branch relaxation support... \" >&6; }\n+if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :\n+ $as_echo_n \"(cached) \" >&6\n+else\n+ gcc_cv_as_loongarch_cond_branch_relax=no\n+ if test x$gcc_cv_as != x; then\n+ $as_echo 'a:\n+ .rept 32769\n+ nop\n+ .endr\n+ beq $a0,$a1,a' > conftest.s\n+ if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'\n+ { { eval echo \"\\\"\\$as_me\\\":${as_lineno-$LINENO}: \\\"$ac_try\\\"\"; } >&5\n+ (eval $ac_try) 2>&5\n+ ac_status=$?\n+ $as_echo \"$as_me:${as_lineno-$LINENO}: \\$? = $ac_status\" >&5\n+ test $ac_status = 0; }; }\n+ then\n+\tgcc_cv_as_loongarch_cond_branch_relax=yes\n+ else\n+ echo \"configure: failed program was\" >&5\n+ cat conftest.s >&5\n+ fi\n+ rm -f conftest.o conftest.s\n+ fi\n+fi\n+{ $as_echo \"$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax\" >&5\n+$as_echo \"$gcc_cv_as_loongarch_cond_branch_relax\" >&6; }\n+if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then\n+\n+$as_echo \"#define HAVE_AS_COND_BRANCH_RELAXATION 1\" >>confdefs.h\n+\n fi\n \n ;;\ndiff --git a/gcc/configure.ac b/gcc/configure.ac\nindex e08ac5f4b49..87ae2d88e79 100644\n--- a/gcc/configure.ac\n+++ b/gcc/configure.ac\n@@ -5340,6 +5340,16 @@ x:\n [-mrelax], [.text],,\n [AC_DEFINE(HAVE_AS_MRELAX_OPTION, 1,\n \t\t[Define if your assembler supports -mrelax option.])])\n+ gcc_GAS_CHECK_FEATURE([conditional branch relaxation support],\n+ gcc_cv_as_loongarch_cond_branch_relax,\n+ [--fatal-warnings],\n+ [a:\n+ .rept 32769\n+ nop\n+ .endr\n+ beq $a0,$a1,a],,\n+ [AC_DEFINE(HAVE_AS_COND_BRANCH_RELAXATION, 1,\n+\t\t[Define if your assembler supports conditional branch relaxation.])])\n ;;\n s390*-*-*)\n gcc_GAS_CHECK_FEATURE([.gnu_attribute support],\ndiff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi\nindex f4fdd8e6509..8f5c7abea64 100644\n--- a/gcc/doc/invoke.texi\n+++ b/gcc/doc/invoke.texi\n@@ -1004,7 +1004,7 @@ Objective-C and Objective-C++ Dialects}.\n -mcond-move-float -mno-cond-move-float @gol\n -memcpy -mno-memcpy -mstrict-align -mno-strict-align @gol\n -mmax-inline-memcpy-size=@var{n} @gol\n--mcmodel=@var{code-model}}\n+-mcmodel=@var{code-model} -mrelax -mpass-mrelax-to-as}\n \n @emph{M32R/D Options}\n @gccoptlist{-m32r2 -m32rx -m32r @gol\n@@ -24626,6 +24626,28 @@ global symbol: The data got table must be within +/-8EiB addressing space.\n @end itemize\n @end table\n The default code model is @code{normal}.\n+\n+@item -mrelax\n+@itemx -mno-relax\n+Take (do not take) advantage of linker relaxations. If\n+@option{-mpass-mrelax-to-as} is enabled, this option is also passed to\n+the assembler. The default is determined during GCC build-time by\n+detecting corresponding assembler support:\n+@option{-mrelax} if the assembler supports both the @option{-mrelax}\n+option and the conditional branch relaxation (it's required or the\n+@code{.align} directives and conditional branch instructions in the\n+assembly code outputted by GCC may be rejected by the assembler because\n+of a relocation overflow), @option{-mno-relax} otherwise.\n+\n+@item 100 21183 100 21033 100 150 311k 2272 --:--:-- --:--:-- --:--:-- 313k -mpass-mrelax-to-as\n+@itemx -mno-pass-mrelax-to-as\n+Pass (do not pass) the @option{-mrelax} or @option{-mno-relax} option\n+to the assembler. The default is determined during GCC build-time by\n+detecting corresponding assembler support:\n+@option{-mpass-mrelax-to-as} if the assembler supports the\n+@option{-mrelax} option, @option{-mno-pass-mrelax-to-as} otherwise.\n+This option is mostly useful for debugging, or interoperation with\n+assemblers different from the build-time one.\n @end table\n \n @node M32C Options\n","prefixes":["v1","3/4"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE