| Message ID | 20260706213320.3909242-4-hjl.tools@gmail.com |
|---|---|
| State | Committed |
| Commit | 7a5bee01193e5b06ea9c4154ec168351c7b93bb1 |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 65D794BA2E16 for <patchwork@sourceware.org>; Mon, 6 Jul 2026 21:34:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65D794BA2E16 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=IN+XrO1P X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 421E44BA2E1E for <gcc-patches@gcc.gnu.org>; Mon, 6 Jul 2026 21:33:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 421E44BA2E1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 421E44BA2E1E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::631 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783373616; cv=none; b=a6PjLxl26LwHB87Tz4ENFqxhVEi7qkONZKij7SversqrF5DyP1vsGDkA08bckcSGwjBkK7oZUQ4VwiUfuvuGnCflMvvcWMGYKWdlQsZuhORkc2edUvMs0OR/JslId3j/+tZY9nb3aFGyXTO5LY6wDyko9bayX0PR3vonVTNW+WU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783373616; c=relaxed/simple; bh=m9cEKbztljECLoQMx9EK+7uuC7S5I0nnKzt5QSfYWwY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=m+sR0vjXfpykQUkprMbIMGFpg9zJSI1kUWugXiiKi/p6CfVbrD81wBUIz/ixe73ZDvJ1UaOQkuLrg8MM/cumJDVPY8G5royedgwrXi0Fx2GUqiy5RcD8HDsuUm/kOz8j1uqS+xLOpouiJGKFGW53m6XHFDAuW/OTymoFGFFUTeA= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=IN+XrO1P DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 421E44BA2E1E Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2cc8bc9d222so19080515ad.1 for <gcc-patches@gcc.gnu.org>; Mon, 06 Jul 2026 14:33:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783373615; x=1783978415; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tDWDVe4k2GI34z7EeerfUXfHdehOgY18hqX7zqWm1sY=; b=IN+XrO1P6AJ6qaXHkBXp8e+IFQzNCPgA1DC9EEOx9oA4XbJOnPQudan0SrTLzpfgaP L/VkqcFOmlqBbAxHS78VQWc90H4t3QM/2ExllK8HO2GNd433VeGnjkcOnipPky2HQnHC mT2gUdhhxAlH9Z701ZaDBU36sl9ZhcL+JQTFSIcZ76s/4WGQnzH+J/Kts61YSWd2LCax /o1mTr4Ln62YE/wJ22OV2QGG9tu3BOgkzT0P3BC410p3lhuXMBLgXgWX+vE/VanLAOUt gmlkSu/OHQ+/MNdsYGw8iK+Z6/PEAqhRiY6ANfnNV04NAcqS+FOql20D+X9S0QdRlCdZ e9xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783373615; x=1783978415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tDWDVe4k2GI34z7EeerfUXfHdehOgY18hqX7zqWm1sY=; b=Xx3orvCx5rFePH06I/sPwtBr5PrlOFZjsjLkUrpYZwi2Lb+vR3hZ8W5Re0Ne/7Wuqx RJAdD539k8rU7LiDjicwWLeieIRFgNICUz1+qoanxDuQS9XGlvV3UPRw1qVSAmmV5pUc YibDJ6Cc2Bjxswog487y+ISs8aW21gpQcfvcXBTsmjNGNLS+0KuFNmnjTMTIq2sNaVzU aLKccueS0lUwADr03sL/E2TlgzeiGGh6Oxw9wXgBBKaiO8QhaNrgpWMnhz5Xuv9Nuwc4 NTRG/W4n/9S+fbKvtIEMyjXfB9DHr9N5acoiw8HPqnkw8sP0e+XGp5+OZ1ZH6ck8r/jE CqFA== X-Gm-Message-State: AOJu0Ywg6icyhVC6y0LtsgZ7m9WYsHTJG/JLJjeo9Ayr7nZ/bBwPcSv3 ouFZTxZ6nbmk316YyMTkdW9dTfCuq3fX9EfRikD5SROkvcacHA02YbWnpj9wLcC4TIhMWQ== X-Gm-Gg: AfdE7cll979zxPUUng7+j2ukW9C9jJnKdcPcvmi1CE+yKqhG7G0Tw4bVfB9kkQ5TBry sKENcWG+KFYAkipgYAixBoXycBso3dDFB3iDCD9dSl8gTHNQjaPQz2naDc/TdbVBmdLifVA1jqq DPfNEqNFx1D4oP9T1XVl74zBVew0XOBPnQgqay5NkfR6sDi+s2RApYJZ3BLMReGIl31VtJnVh/H c/s4+5u9QSI5CdAp5M/YShX3tJTCgNLlNU3ctITyzy1ut8SxeAk7OEtouP8jhi8MV8GhoxQTTb4 gHffVTP4CqC14XNi7+tltwrU6JEIKKW/NFK9aQmgSMohQsxk8gmWb+Q4S03Zk0JXQZcXEUNs16g 8IE507KEmkqLSS1urNLDDY5BHcUXgeLpa4hV7z2o3RwNzfgjT4vxPIBOXKTsz+u/YcfWzCu6M2K 7O8osVc/0J0vZPbTwkuvgLUvXB5h3gbT2kp5Jx/O8kRTs8A+Y= X-Received: by 2002:a05:6a20:487:b0:3b4:6a23:6ba with SMTP id adf61e73a8af0-3c08ee13572mr2877421637.26.1783373615208; Mon, 06 Jul 2026 14:33:35 -0700 (PDT) Received: from gnu-tgl-3.localdomain ([172.56.177.75]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3117483dec6sm595012eec.11.2026.07.06.14.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 14:33:33 -0700 (PDT) Received: from gnu-tgl-3.localdomain (localhost [127.0.0.1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 17D3EC1AD5; Tue, 07 Jul 2026 05:33:30 +0800 (CST) From: "H.J. Lu" <hjl.tools@gmail.com> To: gcc-patches@gcc.gnu.org Cc: rdsandiford@googlemail.com, ubizjak@gmail.com, hongtao.liu@intel.com Subject: [PATCH v3 3/4] i386: Avoid always-true condition Date: Tue, 7 Jul 2026 05:33:19 +0800 Message-ID: <20260706213320.3909242-4-hjl.tools@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260706213320.3909242-1-hjl.tools@gmail.com> References: <20260706213320.3909242-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3011.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on 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~patchwork=sourceware.org@gcc.gnu.org |
| Series | x86: Implement TARGET_FNTYPE_ABI | |
Commit Message
H.J. Lu
July 6, 2026, 9:33 p.m. UTC
From: Richard Sandiford <rdsandiford@googlemail.com>
ix86_function_arg is always passed a cumulative argument structure,
so the ?: test in the patch was redundant.
gcc/
* config/i386/i386.cc (ix86_function_arg): Remove always-true
condition.
---
gcc/config/i386/i386.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index acb8d2db99f..197c71c2f01 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -3601,9 +3601,7 @@ ix86_function_arg (cumulative_args_t cum_v, const function_arg_info &arg) if (TARGET_64BIT) { - enum calling_abi call_abi = cum ? cum->call_abi : ix86_abi; - - if (call_abi == MS_ABI) + if (cum->call_abi == MS_ABI) reg = function_arg_ms_64 (cum, mode, arg.mode, arg.named, arg.type, bytes); else