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 18981635127c6701733dc052aa054e569271b733 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 18981635127c6701733dc052aa054e569271b733 # timeout=10 Commit message: "c: C2x storage class specifiers in compound literals" > git rev-list --no-walk ab8477af9949a7e6fcaf89c5f1dcf32788accf88 # timeout=10 First time build. Skipping changelog. [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/jenkins8189178589519581569.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=series1806-patch2353 ++ git branch -a ++ grep 'series1806-patch2353$' + checkbranch= + checkbranchresult=null + '[' null = series1806-patch2353 ']' + git checkout -b series1806-patch2353 Switched to a new branch 'series1806-patch2353' ++ curl https://patchwork.plctlab.org/api/1.2/series/1806/ % 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 1372 100 1372 0 0 16938 0 --:--:-- --:--:-- --:--:-- 16938 + series_response='{"id":1806,"url":"https://patchwork.plctlab.org/api/1.2/series/1806/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1806","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","date":"2022-10-13T20:13:32","submitter":{"id":17,"url":"https://patchwork.plctlab.org/api/1.2/people/17/","name":"David Malcolm","email":"dmalcolm@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1806/mbox/","cover_letter":null,"patches":[{"id":2353,"url":"https://patchwork.plctlab.org/api/1.2/patches/2353/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/","msgid":"<20221013201332.1157829-1-dmalcolm@redhat.com>","list_archive_url":null,"date":"2022-10-13T20:13:32","name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/"}]}' ++ jq '.patches[] | (.id|tostring) + "," + .mbox' ++ echo '{"id":1806,"url":"https://patchwork.plctlab.org/api/1.2/series/1806/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1806","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","date":"2022-10-13T20:13:32","submitter":{"id":17,"url":"https://patchwork.plctlab.org/api/1.2/people/17/","name":"David Malcolm","email":"dmalcolm@redhat.com"},"version":1,"total":1,"received_total":1,"received_all":true,"mbox":"https://patchwork.plctlab.org/series/1806/mbox/","cover_letter":null,"patches":[{"id":2353,"url":"https://patchwork.plctlab.org/api/1.2/patches/2353/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/","msgid":"<20221013201332.1157829-1-dmalcolm@redhat.com>","list_archive_url":null,"date":"2022-10-13T20:13:32","name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/"}]}' + patchid_patchurl='"2353,https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/"' + IFS=, + read -r series_patch_id series_patch_url + echo '"2353,https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/"' ++ sed 's/"//g' ++ echo '"2353' + series_patch_id=2353 ++ sed 's/"//g' ++ echo 'https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/"' + series_patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++ git rev-parse HEAD + commitid_before=18981635127c6701733dc052aa054e569271b733 + eval '+++ declare -p bout bret declare -- bout="Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.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/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ git am -3 --empty=drop ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ % 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 8762 100 8762 0 0 145k 0 --:--:-- --:--:-- --:--:-- 145k +++ bout='\''\'\'''\''Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.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/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ git am -3 --empty=drop ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ % 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 8762 100 8762 0 0 145k 0 --:--:-- --:--:-- --:--:-- 145k +++ bout='\''Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0"' ++ +++ declare -p bout bret /tmp/jenkins8189178589519581569.sh: line 85: +++: command not found ++ declare -- 'bout=Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.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/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ git am -3 --empty=drop ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ % 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 8762 100 8762 0 0 145k 0 --:--:-- --:--:-- --:--:-- 145k +++ bout='\''Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' /tmp/jenkins8189178589519581569.sh: line 104: ++: command not found ++ ++ declare -p berr /tmp/jenkins8189178589519581569.sh: line 105: ++: command not found ++ declare -- 'berr=++++ git_am https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ patch_url=https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ ++++ git am -3 --empty=drop ++++ curl https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/ % 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 8762 100 8762 0 0 145k 0 --:--:-- --:--:-- --:--:-- 145k +++ bout='\''Applying: analyzer: fix ICE introduced in r13-3168 [PR107210] Using index info to reconstruct a base tree... M gcc/analyzer/svalue.cc Falling back to patching base and 3-way merge... No changes -- Patch already applied.'\'' +++ bret=0' ++ git rev-parse HEAD + commitid_after=18981635127c6701733dc052aa054e569271b733 + '[' 0 = 0 ']' + '[' 18981635127c6701733dc052aa054e569271b733 = 18981635127c6701733dc052aa054e569271b733 ']' + submit_check warning 'Repeat Merge' https://patchwork.plctlab.org/jenkins/job/gcc-patch/1272/consoleText 'Git am fail log' + check_state=warning + patch_state='Repeat Merge' + repo_url=https://patchwork.plctlab.org/jenkins/job/gcc-patch/1272/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/1272/consoleText -F context=gcc-patch-check -F 'description=Git am fail log' https://patchwork.plctlab.org/api/patches/2353/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 14066 18000 --:--:-- --:--:-- --:--:-- 32066 {"id":949,"url":"https://patchwork.plctlab.org/api/patches/2353/checks/949/","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-14T02:57:32.775570","state":"warning","target_url":"https://patchwork.plctlab.org/jenkins/job/gcc-patch/1272/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/2353/ % 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":2353,"url":"https://patchwork.plctlab.org/api/1.2/patches/2353/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/","project":{"id":1,"url":"https://patchwork.plctlab.org/api/1.2/projects/1/","name":"gcc-patch","link_name":"gcc-patch","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":"https://gcc.gnu.org/mailman/listinfo/gcc-patches","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20221013201332.1157829-1-dmalcolm@redhat.com>","list_archive_url":null,"date":"2022-10-13T20:13:32","name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","commit_ref":null,"pull_url":null,"state":"repeat-merge","archived":false,"hash":"66fcdef769d06ff65de368491060dbf1881f4b4e","submitter":{"id":17,"url":"https://patchwork.plctlab.org/api/1.2/people/17/","name":"David Malcolm","email":"dmalcolm@redhat.com"},"delegate":null,"mbox":"https://patchwork.plctlab.org/project/gcc-patch/patch/20221013201332.1157829-1-dmalcolm@redhat.com/mbox/","series":[{"id":1806,"url":"https://patchwork.plctlab.org/api/1.2/series/1806/","web_url":"https://patchwork.plctlab.org/project/gcc-patch/list/?series=1806","date":"2022-10-13T20:13:32","name":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","version":1,"mbox":"https://patchwork.plctlab.org/series/1806/mbox/"}],"comments":"https://patchwork.plctlab.org/api/patches/2353/comments/","check":"warning","checks":"https://patchwork.plctlab.org/api/patches/2353/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 y7csp461940wrs;\n Thu, 13 Oct 2022 13:15:04 -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 md5-20020a170906ae8500b00783c42d2da2si512014ejb.415.2022.10.13.13.15.04\n for \n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 13 Oct 2022 13:15:04 -0700 (PDT)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 9F6EE385087A\n\tfor ; Thu, 13 Oct 2022 20:14:31 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTPS id 475A63858C56\n for ; Thu, 13 Oct 2022 20:13:48 +0000 (GMT)","from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-297-76LnPYe-M6eo3RRiQlA7AA-1; Thu, 13 Oct 2022 16:13:46 -0400","from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com\n [10.11.54.4])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9145E88B7A7\n for ; Thu, 13 Oct 2022 20:13:40 +0000 (UTC)","from t14s.localdomain.com (unknown [10.2.17.92])\n by smtp.corp.redhat.com (Postfix) with ESMTP id DC472208DDB6;\n Thu, 13 Oct 2022 20:13:33 +0000 (UTC)"],"X-Google-Smtp-Source":"\n AMsMyM7T0j5VEDoa/Q2NV773Ojwc0wn8Q0nmhJfo5Q05GOYHjuW5bO634JKlhQfqxJ+Qm9/zbZXa","X-Received":"by 2002:a17:907:2710:b0:78d:9be4:492a with SMTP id\n w16-20020a170907271000b0078d9be4492amr1057155ejk.151.1665692104571;\n Thu, 13 Oct 2022 13:15:04 -0700 (PDT)","ARC-Seal":"i=1; a=rsa-sha256; t=1665692104; cv=none;\n d=google.com; s=arc-20160816;\n b=EX92PufaHR/KVFfWHgPv+3Gf/2U99V8plQht6J03pcUx5tTSWQxcmkzvzd2Ke3xb4V\n 9ALzKTY359EnCQVTp2XIwffUzlYiTK7Obz+L4+tyKbH2bji8jb+GkLAg9NSY0UPdH3AA\n prX//ftdmk5z1WEoPSTdalBKuP9DRqKDPyDmNRT/yCoP64/uCpSsm701yVYpFcXykU5s\n U9uVV2lXVICqGpQVah9ItipryqAKDJMRyGVwaetmB6s3Ke/jqBtHxexNBsK9DHyCb0Xn\n 2E114Os9YLXhEtnCKpNCXbVpevLUV+PwugAyyHwln08g/TDJnaBH5Nfbsou82Y4XBAOY\n a1lA==","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=x0vuePBa72jdlo9kf6P6gW8aV+FWKoXXJ5+ZI2iTRT8=;\n b=wmWlDmFAoRiijd8EAHd71QggcY+bL+Zw7HbIxvqtC9OeqELpFV1U026j60JZcQwKyH\n z/cn8DLWT2Met5EvU9yjlMdt1fe2ZR3a53+Bohs0bUIahceJ/yjJqUaltiN4TNLbCicy\n 7BQir97TaddcVSLrUF2fJF7qw8OQIJYO4yxC9XUcHvRGyNcAH82S+fJKwgnxI2tc2Z21\n ksHHfHcQpp1W16dBERPz3e6+DYLbPIuSKbu2a2VLOkPkySjd+srw3dRdzOhs4XzFCQo6\n OBXIirLkMnRjgp4mQ+E4xl2ubi1ODVnezSIbV+YC0WBcHCyY5r/81cjBh6Uri83FWPOd\n bwKA==","ARC-Authentication-Results":"i=1; mx.google.com;\n dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tsngyE8D;\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=tsngyE8D;\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 9F6EE385087A","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;\n\ts=default; t=1665692071;\n\tbh=x0vuePBa72jdlo9kf6P6gW8aV+FWKoXXJ5+ZI2iTRT8=;\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=tsngyE8Do54ES5ZKxnk6dvjt80hVrjYvvcpVzntFw1nLLnkKuIxOyNStZB8mbzikq\n\t QixNDrk+XmuoQNichrpCD/gTUiAwl7gNrTpiE3GkQQcVJfql2RFK0mz7VIaEjB1QC9\n\t rE78+qMq2hkQNj8nuWYYwBJv+79vO46zyH5jnHR4=","X-Original-To":"gcc-patches@gcc.gnu.org","DMARC-Filter":"OpenDMARC Filter v1.4.1 sourceware.org 475A63858C56","X-MC-Unique":"76LnPYe-M6eo3RRiQlA7AA-1","To":"gcc-patches@gcc.gnu.org","Subject":"[committed] analyzer: fix ICE introduced in r13-3168 [PR107210]","Date":"Thu, 13 Oct 2022 16:13:32 -0400","Message-Id":"<20221013201332.1157829-1-dmalcolm@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.1 on 10.11.54.4","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain; charset=\"US-ASCII\"; x-default=true","X-Spam-Status":"No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,\n DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0,\n RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE,\n TXREP autolearn=ham autolearn_force=no version=3.4.6","X-Spam-Checker-Version":"SpamAssassin 3.4.6 (2021-04-09) on\n server2.sourceware.org","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Gcc-patches mailing list ","List-Unsubscribe":",\n ","List-Archive":"","List-Post":"","List-Help":"","List-Subscribe":",\n ","From":"David Malcolm via Gcc-patches ","Reply-To":"David Malc 100 10616 100 10464 100 152 208k 3102 --:--:-- --:--:-- --:--:-- 211k olm ","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?1746604764145325792?=","X-GMAIL-MSGID":"=?utf-8?q?1746604764145325792?="},"content":"Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.\nPushed to trunk as r13-3285-g99da523359e933.\n\ngcc/analyzer/ChangeLog:\n\tPR analyzer/107210\n\t* svalue.cc (constant_svalue::maybe_fold_bits_within): Only\n\tattempt to extract individual bits when tree_fits_uhwi_p.\n\ngcc/testsuite/ChangeLog:\n\tPR analyzer/107210\n\t* gfortran.dg/analyzer/pr107210.f90: New test.\n\nSigned-off-by: David Malcolm \n---\n gcc/analyzer/svalue.cc | 3 ++-\n gcc/testsuite/gfortran.dg/analyzer/pr107210.f90 | 16 ++++++++++++++++\n 2 files changed, 18 insertions(+), 1 deletion(-)\n create mode 100644 gcc/testsuite/gfortran.dg/analyzer/pr107210.f90","diff":"diff --git a/gcc/analyzer/svalue.cc b/gcc/analyzer/svalue.cc\nindex a0838c0f588..4b00a81b31d 100644\n--- a/gcc/analyzer/svalue.cc\n+++ b/gcc/analyzer/svalue.cc\n@@ -884,7 +884,8 @@ constant_svalue::maybe_fold_bits_within (tree type,\n if (bits.m_size_in_bits == 1\n && TREE_CODE (m_cst_expr) == INTEGER_CST\n && type\n- && INTEGRAL_TYPE_P (type))\n+ && INTEGRAL_TYPE_P (type)\n+ && tree_fits_uhwi_p (m_cst_expr))\n {\n unsigned HOST_WIDE_INT bit = bits.m_start_bit_offset.to_uhwi ();\n unsigned HOST_WIDE_INT mask = (1 << bit);\ndiff --git a/gcc/testsuite/gfortran.dg/analyzer/pr107210.f90 b/gcc/testsuite/gfortran.dg/analyzer/pr107210.f90\nnew file mode 100644\nindex 00000000000..6132db48817\n--- /dev/null\n+++ b/gcc/testsuite/gfortran.dg/analyzer/pr107210.f90\n@@ -0,0 +1,16 @@\n+! { dg-additional-options \"-O1\" }\n+\n+subroutine check_int (j)\n+ INTEGER(4) :: i, ia(5), ib(5,4), ip, ipa(:)\n+ target :: ib\n+ POINTER :: ip, ipa\n+ logical :: l(5)\n+\n+ ipa=>ib(2:3,1)\n+\n+ l = (/ sizeof(i) == 4, sizeof(ia) == 20, sizeof(ib) == 80, &\n+ sizeof(ip) == 4, sizeof(ipa) == 8 /)\n+\n+ if (any(.not.l)) STOP 4\n+\n+end subroutine check_int\n","prefixes":["committed"]}+ exit 1 Build step 'Execute shell' marked build as failure Finished: FAILURE