From patchwork Fri Mar 29 02:39:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 161381 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1477399jan; Thu, 28 Mar 2019 19:40:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUY69IZAcFjy5fOzKy5UCE7yBkzn2X1PIcM/UFe5+npMd1fN45PfnVTRsha4tf9xXUY9pM X-Received: by 2002:a63:464c:: with SMTP id v12mr42927726pgk.431.1553827220396; Thu, 28 Mar 2019 19:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553827220; cv=none; d=google.com; s=arc-20160816; b=yccORj7W+aDbU+lx+fbTIPqf8a2a5+pumt8zuikKgilf+Ex04Iv9E9Pct47bY9kWCQ /ez8kYa91OsNAdXP4pCLhi5UvkyvXBvmxhqrkL+eslqB7rLWaGqs4aKatiiqYLqZD1Ik /KSPOqrEkNlkeQ0mI2xTIM6PwGBOf1NK6Tr1XvQkIHzPeYNSnDLmg4GYxW+WK3SK5fZ5 AzHENlpaUvSKy0HBoGUmgSxo5JZA2QmD6x+46nTIdGEdjoWOT7nUxKcXDmpQSTwJMtun cwLnxht8YzIibWbhoiUb54lrS/yFoaRWAZF9XM/x5YaluXSZG5HAR1kdYR3u+mKLwKdt I3Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:mime-version:dkim-signature :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=+Yl3hpmhYCnegBT+uHTnLvFl0XA9xprLA4LFTYa97zM=; b=bfhlcZBu/sVB8UpmxJhySsGUJOkCqP4yUO2NB6QzOf9M+/KEu9WccZSGDxtlWTSPob pyWN08EtkSUksR/6A+N/S3t0rIyJI3wqINeSeWtRADx0VUrC8Evvupy+zCrdvolKF4Jn fQXD/zOHEYaXXpMEibIuwny4810Wgp9rnF1dbXNEgZiQTKG6YX4zWyl5n4xNLIgZKgSH c9lW+5GMt3qgF209NMLU/uv1klhA66H6vrNCUlDs4P139/+JMW4gMNIBaoDEE0PXlWW9 tH8VhhYtw6BaJ0CONmg5aLlfz97Kh/5W2mrJOSeDa4SHjItlq4i0AGDEfz+F3NZmXLt8 eu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NFb1VGNT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NHwjUP10; spf=pass (google.com: domain of gcc-patches-return-498585-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-498585-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id c23si810745pgk.54.2019.03.28.19.40.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 19:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-498585-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NFb1VGNT; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NHwjUP10; spf=pass (google.com: domain of gcc-patches-return-498585-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-498585-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=nFcgUDgLQRKUBsFWfaHz+ZSIJKXghsxiN0PPKztc2lw ViBkcQCBlOw14oLHZATKNl9/xdTMiwMMYkR0Ezxj7mT/FJQmtvb5oXIlyTKB9TB1 Eaj6hbAa3sl8HxFLjRnjPFqwllEl747BZ3eQP6NJrMWMFCfIXeR3bE6zZC5kb4A0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; s=default; bh=8TDAYHwA1bgT9RH7s8BY77ABj7M=; b=NFb1VGNT2DPSyRbr+ FY8xtEokmjwkr4UneiUj+KS/nqsi9wQUkk8/GyVOCzsdg7tJbP36yTA4RqsNG9A/ ZiMRfpdelQLG7QVZF2pm5mhyvyAKMjjeUH9wWbZBZVqPubVD9jy4vCxw+1lgixPu Bbhk/VVU9Pegxpo9VgKm2YQrao= Received: (qmail 125639 invoked by alias); 29 Mar 2019 02:40:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 125622 invoked by uid 89); 29 Mar 2019 02:40:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:U*ebotcazou, HX-Languages-Length:1085 X-HELO: mail-lj1-f170.google.com Received: from mail-lj1-f170.google.com (HELO mail-lj1-f170.google.com) (209.85.208.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Mar 2019 02:40:04 +0000 Received: by mail-lj1-f170.google.com with SMTP id t4so624166ljc.2 for ; Thu, 28 Mar 2019 19:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=btzP0b/4sMo0ZUYjicMxt/B1+pRCNncRXqlh8eV3oFs=; b=NHwjUP10Iis16gXaJntae46nfa7q/VCgRz/cs5fdVKZRNIOfdXe9yjaLJMp6KBjBUr kZYjfbGHaBOog+hU9KCLjEIBcu9rthnf0eNHrxF1UKbXJXYCgDg/5N8LMVHC/J5tdBzb /a6hWZe1wiUs1dhU/ejBgOS9xnYC+XPNpyoGE9xt13pPvacxIucSKhm39q/r4CTrfwzl /ycBuTBoBmy2FnP4JZYMUhsb+nDz21KCf5+Ll6fJzZlLVvIPhXs4P3FweycCCOA3VPeB qd5gv3S819CooLEzX26CKRPwtEHuCrwKYJxx3AUV1FfhLjilsA6zaoohY+ItIaOhutk9 2YrA== MIME-Version: 1.0 From: Kugan Vivekanandarajah Date: Fri, 29 Mar 2019 13:39:26 +1100 Message-ID: Subject: [PR89862] Fix ARM lto bootstrap To: GCC Patches Cc: Eric Botcazou X-IsSubscribed: yes Hi All, LTO bootstrap for ARM fails with the commit commit 67c18bce7054934528ff5930cca283b4ac967dca * combine.c (record_dead_and_set_regs_1): Record the source unmodified for a paradoxical SUBREG on a WORD_REGISTER_OPERATIONS target. It fails with an internal compiler error: in operator+=, at profile-count.h:792. With the commit now we are not generating gen_lowpart for CONST_INT as in (set (subreg:SI (reg:QI 1434) 0) (const_int 224 [0xe0])) and likes. As discussed in the PR, attached patch fixes this and fixes the bootstrap failure. I am not able to create a reduced testcase for this. However, it is being tested with LTO bootstrap for ARM. I therefore believe that it is OK. I have also tested the patch with x86_64-linux-gnu with no new regressions. Is this OK for trunk? Thanks, Kugan diff --git a/gcc/rtl.h b/gcc/rtl.h index f991919..52ecd5a 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -4401,6 +4401,7 @@ word_register_operation_p (const_rtx x) { switch (GET_CODE (x)) { + case CONST_INT: case ROTATE: case ROTATERT: case SIGN_EXTRACT: