From patchwork Mon Oct 30 11:42:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xi Ruoyao X-Patchwork-Id: 159693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2143312vqb; Mon, 30 Oct 2023 04:44:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/oOp+axZdynd8TCdgoG+7UmFMvlc0z0mINSc8Sw3XfquNv3FYZRsyxpJY1CkANEy1smyc X-Received: by 2002:a05:620a:4714:b0:775:9e64:f5be with SMTP id bs20-20020a05620a471400b007759e64f5bemr11608731qkb.55.1698666242538; Mon, 30 Oct 2023 04:44:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698666242; cv=pass; d=google.com; s=arc-20160816; b=H812Cf+aR5r1H7Bu1uGBu4uYCPcDNc8l0ed7EgPgaPhsMakZ5WvQ8vnr3SEqdPTACX 2k5c4axDhYfN3bb4RgYohzbY07vncYeLCSEO6oiR6nJ0zU6UuA749+JRr9OXJEzJSe60 V/1tf9twrdVU4I6BVjyFfD+Lb0LqNdcWTFk6VvML1m4lqXOHF24LxWt3hW9XzU2VWAip bLgFTYWGP49R8Qa9tbdLCa5ZW8BH4snzktzhe7d4FMZtdXfaRKxYNMeX0DMgwYMnN9GY n9BLrTFi+8fwT9scnd0lk0p6v4pE+ZViyIrHjwwIhC5O3IUs+0E8esqoGoq19ixW2jyb zDrQ== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=/qyDqVts5cq1RqeUCHeYswKfCuTtzBGmp1BFfC/e/rk=; fh=oUCfM/eMlWtMCtZZKY1bglzxCo7b3kw9D5LTFFWuz38=; b=ubIHB4b1emDc2t1oqnUWAEsJ9mHdUf6/GiVqKapuo85u2zvChEY/+m2ut0got7afNy 9Yh+wUtnrDNq5bn0EGrbpE6kQ6CGv/6mpXecUEyb9HYUECdu6zpsGD63Fd+o5es8TkjX BJvpLeznT0OBoqaB02/St/gkY/AhFhoQGpVeI/KKgnQf5pgZqoQ5igd6lQz36Y/z0S7V 2+Y0hQl92zK0gGFJt4gg6n751i42S2GzjEUwK+Tf4KOnMUJ1SI47NPbX/GlvAw9MLBU3 YuXIwLlXEzk0r/RM/6sILjDMkaJUAbMv5rnQ/v2PluKAnh5QN/5IRQWPsPrQo2YyDgyo ivuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=b3JplBD3; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v11-20020a05620a440b00b00773ae74632asi5673369qkp.604.2023.10.30.04.44.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:44:02 -0700 (PDT) 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; dkim=pass header.i=@xry111.site header.s=default header.b=b3JplBD3; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4E4983858D33 for ; Mon, 30 Oct 2023 11:44:02 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id D5A183858D28 for ; Mon, 30 Oct 2023 11:43:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D5A183858D28 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D5A183858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=89.208.246.23 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698666220; cv=none; b=G/ds2/szDywz9HUqU+2dkEWV5F6+yjFVjWlBhvtyIV486pQBnsrcGuSXaKwjIZO2m+l0WeQWqyT3e/meLBT7mkkwH/57oXBmZwMZBv/1mqLba4rge26GRJYpaT0gWx8KnXjcr9nXCRcLvWsGQY0sWK3cZ1b+wFdvR2CSOg1heBc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698666220; c=relaxed/simple; bh=cS4++ADhe4Q7KqXc0V3km8bE1CK4pIbOP6UvriNXk+k=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=OuIzZfdLcZASni0z8jGayrL6+hU8rRu5McUR3YL3cCNBHjEGDAYrF0/RCJycLl0shoMp1ltvqX9XFCmcwiwkzmbbkG+nE4QMb5ffgp23xbuunkx2VwhbUu+PLHTrEfQGZypIiWteTeCZVrlceHYuU/ARfhAJtCjvNY3GT0qtixQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1698666217; bh=cS4++ADhe4Q7KqXc0V3km8bE1CK4pIbOP6UvriNXk+k=; h=From:To:Cc:Subject:Date:From; b=b3JplBD3tDJt4xF8x227eouISjWnM/F5M+eGtl8GYDLzex1DeKWENwxXm2MzpjvxZ bgllYtrnxHaJoQIVFbFKI0s9oFrOWo1+XdupgJ6ijfCO1FQYd06R+YU8avb11EOXra Ld5BGXuZ3ebc01AM8TqIIiIPQguESkoFOYWwPJzg= Received: from stargazer.. (unknown [113.140.11.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 138F366BB0; Mon, 30 Oct 2023 07:43:35 -0400 (EDT) From: Xi Ruoyao To: gcc-patches@gcc.gnu.org Cc: chenglulu , i@xen0n.name, xuchenghua@loongson.cn, Xi Ruoyao Subject: [PATCH] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined Date: Mon, 30 Oct 2023 19:42:03 +0800 Message-ID: <20231030114329.64025-1-xry111@xry111.site> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, LIKELY_SPAM_FROM, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, 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 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: 1781180653746618521 X-GMAIL-MSGID: 1781180653746618521 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: * config/loongarch/loongarch-opts.h (HAVE_AS_TLS): Define to 0 if not defined yet. --- Ok for trunk? 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 2756939b05d..f204828015e 100644 --- a/gcc/config/loongarch/loongarch-opts.h +++ b/gcc/config/loongarch/loongarch-opts.h @@ -101,4 +101,8 @@ loongarch_update_gcc_opt_status (struct loongarch_target *target, #define HAVE_AS_MRELAX_OPTION 0 #endif +#ifndef HAVE_AS_TLS +#define HAVE_AS_TLS 0 +#endif + #endif /* LOONGARCH_OPTS_H */