Message ID | 2331579.ElGaqSPkdT@fomalhaut |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=BtT9SEcB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WGQrX2yDJz1xr3 for <incoming@patchwork.ozlabs.org>; Sat, 6 Jul 2024 20:01:14 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8536F3888C78 for <incoming@patchwork.ozlabs.org>; Sat, 6 Jul 2024 10:01:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 005E23888C54 for <gcc-patches@gcc.gnu.org>; Sat, 6 Jul 2024 10:00:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 005E23888C54 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 005E23888C54 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720260048; cv=none; b=W9wtRY7XZa96IZisDynn/xuKBUyFaCobJYPRDz7syBa1+EEXDAEqgfBePJPVLeFCkbZH6UAudx4u9M9rjAWUxbHJuK+LX7Pdvcm3Mrt+sLl8vc1Go1Va58PGQo9Mcghoy0TTw/Wx1F8TycWlLiq6gh/8dJV5D3Dhg0vg+fSu7E8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720260048; c=relaxed/simple; bh=9wrvq4y0TrN1XNIihI5846OXD670pNTJLWNxE+7g6yA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UC29Tjf8huvqNz/PR3xBfVclyKaAG81LHZk9KZbyhmowZx8cKmxBfN67pYSy9NMOi3+KWWr14hwyTUKIvIa+JM7jwuLXH4MdRzo9YM7oiJu9X03NjHF29/DkZh5LeyH533zpwJmsdmYSd124Qb/+azRWVNx5moNQeLV1VVp9eUs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-52ea2ce7abaso2761077e87.0 for <gcc-patches@gcc.gnu.org>; Sat, 06 Jul 2024 03:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1720260044; x=1720864844; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=CpCPnqPYaqLDwLC9ZqGSjjfrSHoCedCxKGzRHkD+oeg=; b=BtT9SEcBWYxMUup+KLwZglIZNRC3NjKnfPc9ehvOV6YZ90hENJM8uVL0JlFRkM0YFE ruFNxTG6odPlCnhpsvuvVkBB4ut6G05/3do1/dNI5U6cZmgVfGu9QguLa8arW2A1fGdE hw/nwAQpHdWTR+xWkd8zoY3/d6C6pvxsRKHLdQ4oFtEgFvFl2YbrnbMEeaqlfPHOBk9n 0WF8hMR0Dn/GR0gVlY3prv/3YtDqLoFcu1ngaahYpcNg0jVDnPF75Woixv0+YBCN23/V Fl4QQ/5ikotxscTv+rKxFbJtriqO8s/uLrmT10rYiVnx6mWcrAeOq4PU/IipLOd7Nqia AIWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720260044; x=1720864844; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CpCPnqPYaqLDwLC9ZqGSjjfrSHoCedCxKGzRHkD+oeg=; b=rb5Eb24kCff3unRIqBI2kzLDtEI9o+xNMypohzczigrMHeQDiFM0dyUkxWDuhXsGch VxilAS6yN4qDndSy3qFdRccBkSJZbMjJbbU7In+ziZxLPpSaXwFOCf0CGioPMzl50cSR QG7ODd2Ql1RTf4D+chw4qhtx5YMzY16N0bqMzJkK0UZYWOgOU3/n8AfwltnPgjUCjhBV XZpGYVA1k4vG5oBFv3ml9V3yfeEIXb1SdwpFGHrzqdTO4iOztgelNjQmJfO6VWO7OcKQ 7HiYBkS5I0l1X0P7GyH8sg5R6ehF0ISgTrOX8lSv7EyelbMeeNYiw055thk87cds00Dv T/lw== X-Gm-Message-State: AOJu0YzZcYHULpIEvq5ClyxgReNWsm4452A/fk8NUWLB0jz5x9SYMYGw 5Qhy+v7K9qRwTLbJT+eCxJPxRBH2xWhfjCzw4Db+HDdtubj6PcAXjY+6Wm88rXpRufsSg+PbKCU = X-Google-Smtp-Source: AGHT+IGfQSi/K6WinZ9Wlyz+sxEk4g2WrukCd2bDwytcTfJT5RWAJ7TGOnBV4I50Vp/3TuKYj9h2Vw== X-Received: by 2002:a05:6512:2822:b0:52e:9951:7881 with SMTP id 2adb3069b0e04-52ea06b0d1amr5548688e87.52.1720260044011; Sat, 06 Jul 2024 03:00:44 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367b164799csm2356858f8f.56.2024.07.06.03.00.43 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jul 2024 03:00:43 -0700 (PDT) From: Eric Botcazou <botcazou@adacore.com> X-Google-Original-From: Eric Botcazou <ebotcazou@adacore.com> To: gcc-patches@gcc.gnu.org Subject: [RISC-V] Fix PR target/115591 Date: Sat, 06 Jul 2024 12:00:42 +0200 Message-ID: <2331579.ElGaqSPkdT@fomalhaut> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart4904783.GXAFRqVoOG" Content-Transfer-Encoding: 7Bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[RISC-V] Fix PR target/115591
|
expand
|
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index c17141d909a..5e34dc92210 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -1702,7 +1702,9 @@ riscv_valid_lo_sum_p (enum riscv_symbol_type sym_type, machine_mode mode, align = (SYMBOL_REF_DECL (x) ? DECL_ALIGN (SYMBOL_REF_DECL (x)) : 1); - size = (SYMBOL_REF_DECL (x) && DECL_SIZE (SYMBOL_REF_DECL (x)) + size = (SYMBOL_REF_DECL (x) + && DECL_SIZE (SYMBOL_REF_DECL (x)) + && tree_fits_uhwi_p (DECL_SIZE (SYMBOL_REF_DECL (x))) ? tree_to_uhwi (DECL_SIZE (SYMBOL_REF_DECL (x))) : 2*BITS_PER_WORD); }