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/jenkins6019786658758390373.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 a75e9bee7..8efc38347 Fast-forward gcc/cp/constexpr.cc | 2 +- gcc/cp/rtti.cc | 4 ++ gcc/gimple-range-op.cc | 43 ++++++++++++++++++++-- gcc/real.h | 2 +- gcc/testsuite/g++.dg/modules/pr106304_a.C | 12 ++++++ gcc/testsuite/g++.dg/modules/pr106304_b.C | 8 ++++ .../gfortran.dg/c-interop/deferred-character-2.f90 | 2 +- gcc/value-range.cc | 17 +++++++++ libstdc++-v3/libsupc++/eh_alloc.cc | 20 +++++++++- libstdc++-v3/src/c++11/debug.cc | 21 ++++------- 10 files changed, 111 insertions(+), 20 deletions(-) create mode 100644 gcc/testsuite/g++.dg/modules/pr106304_a.C create mode 100644 gcc/testsuite/g++.dg/modules/pr106304_b.C + git push -u origin upstream-master To github.com:wangliu-iscas/gcc-patch.git/ a75e9bee7..8efc38347 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 a75e9bee7..8efc38347 Fast-forward gcc/cp/constexpr.cc | 2 +- gcc/cp/rtti.cc | 4 ++ gcc/gimple-range-op.cc | 43 ++++++++++++++++++++-- gcc/real.h | 2 +- gcc/testsuite/g++.dg/modules/pr106304_a.C | 12 ++++++ gcc/testsuite/g++.dg/modules/pr106304_b.C | 8 ++++ .../gfortran.dg/c-interop/deferred-character-2.f90 | 2 +- gcc/value-range.cc | 17 +++++++++ libstdc++-v3/libsupc++/eh_alloc.cc | 20 +++++++++- libstdc++-v3/src/c++11/debug.cc | 21 ++++------- 10 files changed, 111 insertions(+), 20 deletions(-) create mode 100644 gcc/testsuite/g++.dg/modules/pr106304_a.C create mode 100644 gcc/testsuite/g++.dg/modules/pr106304_b.C + git push -u origin master To github.com:wangliu-iscas/gcc-patch.git/ a75e9bee7..8efc38347 master -> master branch 'master' set up to track 'origin/master'. + branchname=series1948-patch2696 ++ git branch -a ++ grep 'series1948-patch2696$' + checkbranch= + checkbranchresult=null + '[' null = series1948-patch2696 ']' + git checkout -b series1948-patch2696 Switched to a new branch 'series1948-patch2696' ++ curl https://patchwork.plctlab.org/api/1.2/series/1948/ % 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 1413 100 1413 0 0 39250 0 --:--:-- --:--:-- --:--:-- 40371 + series_response='{"id":1948,"url":"https://patchwork.plctlab.org/api/1.2/series/1948/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1948","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":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","date":"2022-10-14T13:38:55","submitter":{"id":176,"url":"https://patchwork.plctlab.org/api/1.2/people/176/","name":"Julian Brown","email":"julian@codesourcery.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1948/mbox/","cover_letter":null,"patches":[{"id":2696,"url":"https://patchwork.plctlab.org/api/1.2/patches/2696/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/","msgid":"<20221014133856.3388109-1-julian@codesourcery.com>","list_archive_url":null,"date":"2022-10-14T13:38:55","name":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' ++ echo '{"id":1948,"url":"https://patchwork.plctlab.org/api/1.2/series/1948/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1948","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":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","date":"2022-10-14T13:38:55","submitter":{"id":176,"url":"https://patchwork.plctlab.org/api/1.2/people/176/","name":"Julian Brown","email":"julian@codesourcery.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1948/mbox/","cover_letter":null,"patches":[{"id":2696,"url":"https://patchwork.plctlab.org/api/1.2/patches/2696/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/","msgid":"<20221014133856.3388109-1-julian@codesourcery.com>","list_archive_url":null,"date":"2022-10-14T13:38:55","name":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/"}]}' + patchid_patchurl='"2696,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/"' + echo '"2696,https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/"' + IFS=, + read -r series_patch_id series_patch_url ++ echo '"2696' ++ sed 's/"//g' + series_patch_id=2696 ++ sed 's/"//g' ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/"' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++ git rev-parse HEAD + commitid_before=8efc38347a7444dde3fb173f0f2c59a60b7db53d + eval '+++ declare -p bout bret declare -- bout="Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9296 100 9296 0 0 275k 0 --:--:-- --:--:-- --:--:-- 283k +++ bout='\''\'\'''\''Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''\'\'''\''\'\''\'\'''\'''\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\''\'\''\'\'''\'''\''\'\'''\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9296 100 9296 0 0 275k 0 --:--:-- --:--:-- --:--:-- 283k +++ bout='\''Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''\\'\'''\''git am --show-current-patch=diff'\''\\'\'''\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/jenkins6019786658758390373.sh: line 85: +++: command not found ++ declare -- 'bout=Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9296 100 9296 0 0 275k 0 --:--:-- --:--:-- --:--:-- 283k +++ bout='\''Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/jenkins6019786658758390373.sh: line 110: ++: command not found ++ ++ declare -p berr /tmp/jenkins6019786658758390373.sh: line 111: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9296 100 9296 0 0 275k 0 --:--:-- --:--:-- --:--:-- 283k +++ bout='\''Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''\'\'''\''git am --show-current-patch=diff'\''\'\'''\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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=8efc38347a7444dde3fb173f0f2c59a60b7db53d + '[' 128 = 0 ']' + [[ ++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/ ++++ git am -3 --empty=drop % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 9296 100 9296 0 0 275k 0 --:--:-- --:--:-- --:--:-- 283k +++ bout='Applying: amdgcn: Use FLAT addressing for all functions with pointer arguments error: sha1 information is lacking or useless (gcc/ChangeLog.omp). error: could not build fake ancestor hint: Use '\''git am --show-current-patch=diff'\'' to see the failed patch Patch failed at 0001 amdgcn: Use FLAT addressing for all functions with pointer arguments 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/1296/consoleText 'Git am fail log' + check_state=warning + patch_state=Unresolved + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1296/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/1296/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/2696/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":973,"url":"https://patchwork.plctlab.org/api/patches/2696/checks/973/","user":{"id":1,"url":"https://patchwork.plctlab.org/api/users/1/","username":"snail","first_name":"","last_name":"","email":"wangliu@iscas.ac.cn"},"date":"2022-10-14T17:15:58.346023","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/1296/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/2696/ % 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":2696,"url":"https://patchwork.plctlab.org/api/1.2/patches/2696/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.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":"<20221014133856.3388109-1-julian@codesourcery.com>","list_archive_url":null,"date":"2022-10-14T13:38:55","name":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","commit_ref":null,"pull_url":null,"state":"unresolved","archived":false,"hash":"9e1b0c43dd6eb5c6206659bbd381de58d633438c","submitter":{"id":176,"url":"https://patchwork.plctlab.org/api/1.2/people/176/","name":"Julian Brown","email":"julian@codesourcery.com"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221014133856.3388109-1-julian@codesourcery.com/mbox/","series":[{"id":1948,"url":"https://patchwork.plctlab.org/api/1.2/series/1948/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1948","date":"2022-10-14T13:38:55","name":"[og12] amdgcn: Use FLAT addressing for all functions with pointer arguments","version":1,"mbox":"https://patchwork.plctlab.org/series/1948/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/2696/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/2696/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 y7csp188629wrs;\n Fri, 14 Oct 2022 06:40:03 -0700 (PDT)","from sourceware.org (server2.sourceware.org. [8.43.85.97])\n by mx.google.com with ESMTPS id\n e14-20020a056402190e00b004587e99bcc2si2905978edz.383.2022.10.14.06.40.02\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Oct 2022 06:40:03 -0700 (PDT)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id A986E3851155\n\tfor ; Fri, 14 Oct 2022 13:39:36 +0000 (GMT)","from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153])\n by sourceware.org (Postfix) with ESMTPS id 98CB33858C83;\n Fri, 14 Oct 2022 13:39:11 +0000 (GMT)","from orw-gwy-02-in.mentorg.com ([192.94.38.167])\n by esa1.mentor.iphmx.com with ESMTP; 14 Oct 2022 05:39:10 -0800"],"X-Google-Smtp-Source":"\n AMsMyM74nS1NJ5oGBMtiQAN34WpdCF+zormBHFAlh7ewwqeOei/rdb6LBf2xztHXqWD4/P/HLRSG","X-Received":"by 2002:a05:6402:11c9:b0:459:9f7d:6453 with SMTP id\n j9-20020a05640211c900b004599f7d6453mr4332896edw.372.1665754803038;\n Fri, 14 Oct 2022 06:40:03 -0700 (PDT)","ARC-Seal":"i=1; a=rsa-sha256; t=1665754803; cv=none;\n d=google.com; s=arc-20160816;\n b=di7XjEZyld6O4omhw/pj1oEX+jHgiOFtNLKcbb0oaE7lEfJtOloSUgXt1l4bv53gIA\n p4vei+4h+2GLQDlYNjBYYYMOaFQUyQSbfdpKTBRMH+AuKCjlqc3Vv4hJ04/D50aFmMTn\n MrKnFpin6maoqcPURI6CXI/hD+SWbf/x8ye3t4hpVxs272YjIXW6aosjF4DiCdY2QjQ0\n DJWowSF9Dn+E6S7trZHqSD5SLzZtqwUeTO5JC5e4APvjlt5V11n3O/HDQ+Ep6/1g4i2/\n ABz8vIpyPm2KKxnbvJYPn7JQwaw9+P/psIlr0VbNIK2n5jRU3/CKkfT/1nl8x6C9YPkt\n IVOA==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20160816;\n h=sender:errors-to:list-subscribe:list-help:list-post:list-archive\n :list-unsubscribe:list-id:precedence:content-transfer-encoding\n :mime-version:message-id:date:subject:to:from:ironport-sdr\n :dmarc-filter:delivered-to;\n bh=dRFGxNvAJYd1xJZfDCFmgaY4SYWaFPavb6LGZ2ql1gY=;\n b=YcbVDwsJ5eZSBGCZWChBjTDJ1X9IAVDj1JnW0O2OJN27pFPaecHQIL2KR8/4YL0NH1\n xN7Eln7HGXotwbFO7ugaYPxOgFNmQnbgD9jeI0et8IUlNiWHUIQxI4g3J9NX5eKRrJjo\n zHZNg6plK9O4mBXW7lxRWEO6zs9PSJINoiD4quTNoJUeadezb5NoXrZ8MG/nVQaxlRw5\n z9reVNbZFEOVlKuMWhnJnu5Q9dSmucZUGwP1KzrFQ2EFmtA45l+6xUzgeqSB2+scI4P6\n P/l4I5TNxokt6qZ9obq0HR7O2R0fhPzzkpp0pty1+RGEW0opSa/TQyjO6cShaJdPm/vO\n bQiw==","ARC-Authentication-Results":"i=1; mx.google.com;\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\"","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 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\"","sourceware.org; dmarc=none (p=none dis=none)\n header.from=codesourcery.com","sourceware.org; spf=pass smtp.mailfrom=mentor.com"],"X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.1 sourceware.org 98CB33858C83","X-IronPort-AV":"E=Sophos;i=\"5.95,184,1661846400\"; d=\"scan'208\";a=\"87526903\"","IronPort-SDR":"\n BWZKKZtNYpbKPtZYnZGSdpKJafcU0CxBFhelzLjZ1o6fPotXv49xr19VxOXoN2dkTEJ4INK5BD\n JoUv8RTtA3bLNU8AurKKbodQeAsWm0vst7o3YdAUuwm4rlw4YJMxkd0xQqGMTd5Kb+EonU7/rb\n Xe/lJRHRCJyXSdI4FBny2JOWCUy1ZlWFXqHi6Cj3udsmiesxozzd9yTPr+IyAn9ImZaIosorpY\n f+kV2R5NngxoB0kB6tPUDhZ/LBtARsSAxEz4+kO68KSkuftXl9r7gCKFp/lq4R4Wx84fOv9hTG\n rm8=","From":"Julian Brown ","To":", \"Stubbs, Andrew\" ,\n ","Subject":"[PATCH] [og12] amdgcn: Use FLAT addressing for all functions with\n pointer arguments","Date":"Fri, 14 Oct 2022 13:38:55 +0000","Message-ID":"<20221014133856.3388109-1-julian@codesourcery.com>","X-Mailer":"git-send-email 2.29.2","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain","X-Originating-IP":"[137.202.0.90]","X-ClientProxiedBy":"svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To\n svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11)","X-Spam-Status":"No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, 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 ","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?1746670508061788577?=","X-GMAIL-MSGID":"=?utf-8?q?1746670508061788577?="},"content":"The GCN backend uses a heuristic to determine whether to use FLAT or\nGLOBAL addressing in a particular (offload) function: namely, if a\nfunction takes a pointer-to-scalar parameter, it is assumed that the\npointer may refer to \"flat scratch\" space, and thus FLAT addressing must\nbe used instead of GLOBAL.\n\nI came up with this heuristic initially whilst working on support for\nmoving OpenACC gang-private variables into local-data share (scratch)\nmemory. The assumption that only scalar variables would be transformed in\nthat way turned out to be wrong. For example, prior to the next patch in\nthe series, Fortran compiler-generated temporary structures were treated\nas 100 11183 100 11033 100 150 215k 3000 --:--:-- --:--:-- --:--:-- 218k gang private and moved to LDS space, typically overflowing the region\nallocated for such variables. That will no longer happen after that\npatch is applied, but there may be other cases of structs moving to LDS\nspace now or in the future that this patch may be needed for.\n\nTested with offloading to AMD GCN. I will apply shortly (to og12).\n\n2022-10-14 Julian Brown \n\ngcc/\n\t* config/gcn/gcn.cc (gcn_detect_incoming_pointer_arg): Any pointer\n\targument forces FLAT addressing mode, not just\n\tpointer-to-non-aggregate.\n---\n gcc/ChangeLog.omp | 6 ++++++\n gcc/config/gcn/gcn.cc | 15 +++++++++------\n 2 files changed, 15 insertions(+), 6 deletions(-)","diff":"diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp\nindex d296eb137e8..ceed4da9799 100644\n--- a/gcc/ChangeLog.omp\n+++ b/gcc/ChangeLog.omp\n@@ -1,3 +1,9 @@\n+2022-10-14 Julian Brown \n+\n+\t* config/gcn/gcn.cc (gcn_detect_incoming_pointer_arg): Any pointer\n+\targument forces FLAT addressing mode, not just\n+\tpointer-to-non-aggregate.\n+\n 2022-10-12 Andrew Stubbs \n \n \t* config/gcn/gcn.cc (gcn_expand_builtin_1): Change gcn_full_exec_reg\ndiff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc\nindex 1f8d8e19971..b01131c0dc2 100644\n--- a/gcc/config/gcn/gcn.cc\n+++ b/gcc/config/gcn/gcn.cc\n@@ -2819,10 +2819,14 @@ gcn_arg_partial_bytes (cumulative_args_t cum_v, const function_arg_info &arg)\n return (NUM_PARM_REGS - cum_num) * regsize;\n }\n \n-/* A normal function which takes a pointer argument (to a scalar) may be\n- passed a pointer to LDS space (via a high-bits-set aperture), and that only\n- works with FLAT addressing, not GLOBAL. Force FLAT addressing if the\n- function has an incoming pointer-to-scalar parameter. */\n+/* A normal function which takes a pointer argument may be passed a pointer to\n+ LDS space (via a high-bits-set aperture), and that only works with FLAT\n+ addressing, not GLOBAL. Force FLAT addressing if the function has an\n+ incoming pointer parameter. NOTE: This is a heuristic that works in the\n+ offloading case, but in general, a function might read global pointer\n+ variables, etc. that may refer to LDS space or other special memory areas\n+ not supported by GLOBAL instructions, and then this argument check would not\n+ suffice. */\n \n static void\n gcn_detect_incoming_pointer_arg (tree fndecl)\n@@ -2832,8 +2836,7 @@ gcn_detect_incoming_pointer_arg (tree fndecl)\n for (tree arg = TYPE_ARG_TYPES (TREE_TYPE (fndecl));\n arg;\n arg = TREE_CHAIN (arg))\n- if (POINTER_TYPE_P (TREE_VALUE (arg))\n-\t&& !AGGREGATE_TYPE_P (TREE_TYPE (TREE_VALUE (arg))))\n+ if (POINTER_TYPE_P (TREE_VALUE (arg)))\n cfun->machine->use_flat_addressing = true;\n }\n \n","prefixes":["og12"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE