From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7877) id 77A083858D37; Thu, 22 Feb 2024 03:17:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77A083858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708571827; bh=EoXpZWFO2sU5qq2eAzttP29j7sw0We2OLgTCttTzM84=; h=From:To:Subject:Date:From; b=WSBx2CQa40NEdBP1cA8o2uE2yoQDOC5uzwgpbKZBj5sFFsxpZyPGH9yv2yMwqrQVQ 6bFOm//IwznPopJim0yMyxd03KHNnj9RTl+UYArj7ErBRMI9CDyLaGGKERXi9DUghB KbbY+JnpFa46hY/VoWNqY2/vaqScgkmTtEH7RvlI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: LuluCheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-10172] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] X-Act-Checkin: gcc X-Git-Author: Xi Ruoyao X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 186381812dce832c95cc5c4ace47b0efb0aee41f X-Git-Newrev: 09de4b6b22bd66dacdade65ce633f29f302363b5 Message-Id: <20240222031707.77A083858D37@sourceware.org> Date: Thu, 22 Feb 2024 03:17:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:09de4b6b22bd66dacdade65ce633f29f302363b5 commit r12-10172-g09de4b6b22bd66dacdade65ce633f29f302363b5 Author: Xi Ruoyao Date: Mon Oct 30 19:39:27 2023 +0800 LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] 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) Diff: --- 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 bdf79ecc193c..b4115dd7f85f 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 */