From patchwork Wed Nov 22 20:26:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 168549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:6f03:b0:164:83eb:24d7 with SMTP id r3csp1482769rwn; Wed, 22 Nov 2023 12:32:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRWeVXFMeamVVRSVO0vbxC3uQeOmpr5Y/i7G34CDf7CFEdhnDvkJxmtmxVXiTKt8zMRMVh X-Received: by 2002:a05:6870:31c8:b0:1e9:b599:1aab with SMTP id x8-20020a05687031c800b001e9b5991aabmr3911044oac.58.1700685173269; Wed, 22 Nov 2023 12:32:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700685173; cv=pass; d=google.com; s=arc-20160816; b=jvR10XQdnZ6mRzJ6qBRyZHtAMP0BgzdxG+j5zPYOmqyNFIcSKxcIFSXL8RFK9rm3k2 nw6Fcnh8O3Y5e4GGJa3Lzm/4URnghgCmKYqy4CiGAvMYTvgRZosZIrbEybc8vmtQ04Tu Lr3YXYviN3GpwPTlOcjnfVCtyKXzgwN+vMqyU3Mb7znPq+ww56041cG7Fx8vu7ui2jBd 6jtwvmZdjTWLrVRhKcWI1y76vsHyliTtrW5f3qPHVnnX913Jq8iWIBusVUUUb7/cA0jH OnDSBkLERryml4WWUXFV/AeP0j6+hL4dhszyF9uJ+wjhKKEeo5PsZ02O5sq4CmOSKkAc Dv7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=6NPp+YR8/MBd+JgYLvGUsppTyCsxwJ/PpwPFn2jngUY=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=gZ2NNzoyS5RPdVLTiAxLQIv+B+VM5jxvZnrU+sF6q8sIXLT7hE9iUCXYivQfrFLqkG UV/2Go94HPWhr38iRADSf608hpy+kg/8qQmKK7p9drZ8yqoVeEWsmjrNSRFMl3I1DpD6 y0SYhLzJJ/Li0vWcexzF+1KLrqVKdxa3FGPjTqIMaLQ+Mpge2jH0gcBxbkeFWdK9TRXp ZVIp9n9K0QS2exuiOx8AME0d6QBZfmP5ba0YzQGBGY4njIZ8KLESUPCcp9jM2ZBeW4B7 gjgeOyf7JLvKtGH1Lt599FeXYzYdfzaOO8v8206Dci0AIoV8jyuO5dfm4FDn+QDlcdTN xHLQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y16-20020a05622a165000b004237189e0d2si217508qtj.669.2023.11.22.12.32.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 12:32:53 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D6A4338708F5 for ; Wed, 22 Nov 2023 20:27:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 40F5C3858409 for ; Wed, 22 Nov 2023 20:26:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 40F5C3858409 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 40F5C3858409 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700684809; cv=none; b=RJnNuVUq77T0a0QKOv6UY5U0/V50RSRN0taXRV23YAzbIYCLDlgNIniYTrj4NYgRqniWmeaci4+7Hh6IRU3ed6FSbqiIRwmknjzILAXrZT1GXLhd5oeOaC1VQzAawrSYXTXrFZK5VOwRYZx6RoStPkFdrtlqlySPB9JhRwam0mU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700684809; c=relaxed/simple; bh=HqjE4JMkuq/tcDBs3LuHbLLmkvcBq0LlSwo/xEoju0E=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=d6STrrEZRBYFGYg+BVtQbfNnKDdO8veyOqFS3Pgd5Wa041NBeT+6gJ4amI95unZuWYhmbrskQ33FV7dLlyjiiZbx63i6y1uElufyfhdA+nB8J+2KGy2GwZCwypjjUwtKq/Hvu69Q7AK4MmmfLAsAEUw/9ZaZXY4+yA3v9a9k3WU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 9046A16003B0 for ; Wed, 22 Nov 2023 21:26:37 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id 6DCB922012C; Wed, 22 Nov 2023 20:26:16 +0000 (UTC) Date: Wed, 22 Nov 2023 20:26:16 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Define MAX_FIXED_MODE_SIZE Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, 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 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: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783297656216873894 X-GMAIL-MSGID: 1783297656216873894 Tested on hppa-unknown-linux-gnu and hppa64-hp-hpux11.11. Committed to trunk. Fixes FAIL: c-c++-common/pr111309-1.c ICE. Dave --- hppa: Define MAX_FIXED_MODE_SIZE Replace default define. We support TImode when TARGET_64BIT is true. 2023-11-22 John David Anglin gcc/ChangeLog: PR target/112592 * config/pa/pa.h (MAX_FIXED_MODE_SIZE): Define. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index aba2cec7357..d73428682e7 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1310,3 +1310,7 @@ do { \ /* Output default function prologue for hpux. */ #define TARGET_ASM_FUNCTION_PROLOGUE pa_output_function_prologue + +/* An integer expression for the size in bits of the largest integer machine + mode that should actually be used. We allow pairs of registers. */ +#define MAX_FIXED_MODE_SIZE GET_MODE_BITSIZE (TARGET_64BIT ? TImode : DImode)