From patchwork Wed Feb 21 03:10:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenglulu X-Patchwork-Id: 203880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp804743dyc; Tue, 20 Feb 2024 19:13:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWRnx2B0p50wHPJ4ZWLY+uPD235oKLAnwzy4jNEFXE1L1TUCiRHatUKpDLP2Of3hGNdJ0nGznPWceJwhpcHOg2uGa4i5g== X-Google-Smtp-Source: AGHT+IG2yjHHSsojm30BSBsUJLyDD3gUEyDWRePe0/l5cEFz2Bd2/gAC8A4nL1xMY61ious3BOGy X-Received: by 2002:a05:6214:2268:b0:68f:7f3b:5ef7 with SMTP id gs8-20020a056214226800b0068f7f3b5ef7mr8186780qvb.17.1708485222317; Tue, 20 Feb 2024 19:13:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708485222; cv=pass; d=google.com; s=arc-20160816; b=in3XCOyiTrJCsX2hoavZ0J86gd3VFbiq8iQgxtb9Wy4qlQZtZ5C/bCdebpcir5rcx0 n11RbjDtSH4qxw9xtyMgss/qoWE+zEjZ3Um11Dxdhy0LBXqjH3xweq8rY8gngwrstxZV RmGaV54umXX9lX6YLS6ZOXRD8TTf7vLoO9gVXMoUfOqlpybj8UiEqFpTNqurzmnWwZUW 9JMsrQC/eWkLomUgeVrtJGFWG2HJg5HGEZnxitN0fJyvzOuPLq9mHl6DPTV2nhE3tJQ3 iW+DwmclOJ3kpDDhxW+cOYNEb6djxDva3HqI32IV+0qDt2m8SZkzzqzWcfNtp6FWiuQB vzgw== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to; bh=c9FvseUrSk3iHd//o8vUhoIed666afg/MsvKQWoXBOI=; fh=wYRiZnn9nDBltyuQH1H/s7FMOEBgw7D5UzXRQ9Hnwic=; b=ndTQpYzce9C1Q682GwVZtqlwTDCvuxCLtkIyLXC947fLMREaayTB7ngsER0/DsF8+2 hGI29YZ1Z4VnCe/d24V0NSj3mXs8vSCv0GasOC8owzIGSDILtzsQPOk/KZaYK0tVHJss GjwvcasDq05zkeAAQvRxzu0wjbwUHQ0dIH5gjBXEZrbjPFcoS9/Z3y4zH7U0TuFQLUux zO0vPNP893WqnDBgqHyWjlbSL9GlZ7Z/7DNm8LTYw7TUPPwN7V7Ha8l8LxGbXP6vvKN9 S65tAv75ZjweXKpBFju/4BsG0Q0lTjH5bVwyk7F+zPyTBmn4nVPvDSrubVt+tRtJPs/D h0uw==; dara=google.com 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 r4-20020a0562140c8400b0068f56eb7362si8252140qvr.558.2024.02.20.19.13.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 19:13:42 -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 F3A433858C66 for ; Wed, 21 Feb 2024 03:13:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 90FCA3858C60 for ; Wed, 21 Feb 2024 03:11:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 90FCA3858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 90FCA3858C60 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708485110; cv=none; b=DBTYPWMiCfyAXZGVRdmOCCcER0fqYMMUzP6o3zzNuoUEGStZTjrwhJD1ooyrGB2RsNV4LLg93EmhsnL0N/g2IU4uGQFR6bUmKLHt9zVP85Lm4GrqpOjVGSUD27POqrMH2gs4sq2rNmf/QTUN8bJs/4FhhI6F7Nh54enkF73h8jQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708485110; c=relaxed/simple; bh=6uAJMDiYvN5Hc3Z+evhF49Gqdj0sog0+pcfYZJLccto=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=TPKwGhSr4q/UBpeSHka7AoV7+eJDLqNP7SrltbTT0NCEbAq4o658mgCE2akHly1DSot89ShorMcGH5hlaU1w6gU+b/QpDU4jXcKIUwch9witNPhpW8+wwN337GHbKuJ5UT+ACHkTLDDiIHVBRT2+DFHY0mKxWV6Bq8RySOhpSuk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcd1M-0000vP-B3 for gcc-patches@gcc.gnu.org; Tue, 20 Feb 2024 22:11:45 -0500 Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8DxaOjtadVl_6cPAA--.21077S3; Wed, 21 Feb 2024 11:11:41 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxbs3LadVlN209AA--.25488S6; Wed, 21 Feb 2024 11:11:40 +0800 (CST) From: Lulu Cheng To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Subject: [PATCH v1 4/4] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] Date: Wed, 21 Feb 2024 11:10:50 +0800 Message-Id: <20240221031050.24343-5-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240221031050.24343-1-chenglulu@loongson.cn> References: <20240221031050.24343-1-chenglulu@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Cxbs3LadVlN209AA--.25488S6 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj9xXoWrZFWfXw45Gr47CFW8JF1fAFc_yoWfKFc_X3 Waqr9rWr48Ga10yw1qqFZ3t3WDXa1kJFnIvaykZr4fC3s8Jr13A3y7Wa45AF13KrW8XF98 urWkKr15ur17tosvyTuYvTs0mTUanT9S1TB71UUUU1UqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbSxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1q6r43M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26rWY 6Fy7McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1l4IxYO2xFxVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_Ar0_tr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8V AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E 14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU-KsUDUUUU Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_FAIL, SPF_HELO_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: 1791476600189188341 X-GMAIL-MSGID: 1791476600189188341 From: Xi Ruoyao Now loongarch.md uses HAVE_AS_TLS, we need this to fix the failure building a cross compiler if the cross assembler is not installed yet. gcc/ChangeLog: PR target/112299 * config/loongarch/loongarch-opts.h (HAVE_AS_TLS): Define to 0 if not defined yet. (cherry picked from commit 6bf2cebe2bf49919c78814cb447d3aa6e3550d89) --- gcc/config/loongarch/loongarch-opts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/loongarch/loongarch-opts.h b/gcc/config/loongarch/loongarch-opts.h index bdf79ecc193..b4115dd7f85 100644 --- a/gcc/config/loongarch/loongarch-opts.h +++ b/gcc/config/loongarch/loongarch-opts.h @@ -95,4 +95,8 @@ loongarch_config_target (struct loongarch_target *target, #define HAVE_AS_COND_BRANCH_RELAXATION 0 #endif +#ifndef HAVE_AS_TLS +#define HAVE_AS_TLS 0 +#endif + #endif /* LOONGARCH_OPTS_H */