From patchwork Thu Dec 29 17:14:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1720137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=CcSnRpmP; dkim-atps=neutral Received: from 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NjZlK31rNz23dV for ; Fri, 30 Dec 2022 04:15:09 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 015E33858430 for ; Thu, 29 Dec 2022 17:15:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 015E33858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672334107; bh=VHpYkrQFJAtfzYrmHXSvS1a2HbthTFqOe6TMgWR97+A=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=CcSnRpmP2iAB1tB06MkM9SbThrFS9BlKhafcFq+tLXBOhs49fOO/eHZDO9thUoHTv eAt76hkTt7Wqs22v6ylRyzO0daK+c61Xqm7ngJiJONB7Fcyul8Es8gPva7AFr88gx4 8wPf5/mfuhdre97e81kuk6fCUsbFKiD5ncnmGDaI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 586883858408 for ; Thu, 29 Dec 2022 17:14:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 586883858408 Received: by mail-pj1-x1033.google.com with SMTP id n12so6900578pjp.1 for ; Thu, 29 Dec 2022 09:14:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VHpYkrQFJAtfzYrmHXSvS1a2HbthTFqOe6TMgWR97+A=; b=XjKRbwMOeedkTc+bzc5C7nLPF+D276qF8TPLxBXlZcJaht2QKPxdw5Ki1dqUFjAeq3 uCwIc890olhRUXfveTW8YJm6ha1E+PMeDVaZ2YuPmYnnnNQQG7vO1hbtuleo344fncsC wAbE0SAKh74rnGKrnqNE6xWWwVFeKLlsH1vrTXJyg/oVh2uyEg5kRkU6V7FIKvZItVD+ LLsfvPf4ilIjfWLGPrUuq3HmNUbW9F4VEor3k0oUEGqNVbP+EAFa443ipIDK/U5kpqip OTxXgWU7kHX39TrmPXXCzhESnIjkfhPhuGVgTKhPCqW+HW8ej3GezBV1zlbh2bj27HyL /sTw== X-Gm-Message-State: AFqh2kpcMs4m7bjMyU510leGb37ZWRcQ0eK/b94A75BgCRWEAMCwi8Gw fzbahESkJKFwnJwzhyoGCwtB+96jdfg= X-Google-Smtp-Source: AMrXdXs13kXYXY97ECEyyzcQo4JHkjquvExBktAi2y/r8Ta1VYl8BiGZ+R7M7fkPZP0krk+m+q39dQ== X-Received: by 2002:a17:902:e84c:b0:189:340c:20d2 with SMTP id t12-20020a170902e84c00b00189340c20d2mr47317201plg.23.1672334084078; Thu, 29 Dec 2022 09:14:44 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net ([2601:641:401:1d20:9715:893d:e94c:558d]) by smtp.gmail.com with ESMTPSA id m9-20020a170902db0900b00190efb4071dsm13216467plx.160.2022.12.29.09.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 09:14:43 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Max Filippov Subject: [COMMITTED] gcc: xtensa: use GP_RETURN_* instead of magic constant Date: Thu, 29 Dec 2022 09:14:32 -0800 Message-Id: <20221229171432.236445-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, GIT_PATCH_0, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Max Filippov via Gcc-patches From: Max Filippov Reply-To: Max Filippov Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" gcc/ * config/xtensa/xtensa.cc (xtensa_return_in_memory): Use GP_RETURN_* instead of magic constant. --- gcc/config/xtensa/xtensa.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc index e726a115029f..ae44199bc988 100644 --- a/gcc/config/xtensa/xtensa.cc +++ b/gcc/config/xtensa/xtensa.cc @@ -4516,7 +4516,7 @@ static bool xtensa_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) { return ((unsigned HOST_WIDE_INT) int_size_in_bytes (type) - > 4 * UNITS_PER_WORD); + > (unsigned) (GP_RETURN_LAST - GP_RETURN_FIRST + 1) * UNITS_PER_WORD); } /* Worker function for TARGET_FUNCTION_VALUE. */