Message ID | 20240221030841.23454-1-chenglulu@loongson.cn |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp803461dyc; Tue, 20 Feb 2024 19:09:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW/q/fdJTpEBIQvo20o25iKTFaHcY/nCHNYsua6SoZKG0YZuAz/KL1s9zbTg9KlhpGlFYQD7m2dHnwNXjroKjosMXETdw== X-Google-Smtp-Source: AGHT+IFakonXvWLrmHf9qZD5is+phY35IKNTTQOYJ3qBnGu0CR+upIqgzwK5ETCWZyMDVh1BOTRM X-Received: by 2002:a05:6214:2b06:b0:68f:3263:d94d with SMTP id jx6-20020a0562142b0600b0068f3263d94dmr9770111qvb.26.1708484995956; Tue, 20 Feb 2024 19:09:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708484995; cv=pass; d=google.com; s=arc-20160816; b=sNTDm8L+n5DzDBXKqZyCEI07tcaPyhKdGPiCJa00wAGH5kMQzj/QxV/3loFpXJ/6sZ Bgmjk1fdAvkcitMeVjZocNSVD6vfkq3Na+qogr934BK+r7yKfQP7aqqCP4iKGRLdo6Hz p5YZi8RMqbIuYl0u2ccSvvIvCue+g+EdzwfyDT/niBkpRWk/lFie6vzwwizlw4IkdhLC 97wUDF8abBrIuercjXcMfNBt9lynuikBLkxyIwL8B6dqJGLxNmpK4eIOgd3EaOBlMUdB OyLEXRNj2Ak2yfRaxHGaWbNy2PtRU0bOkdWv38h/kdxVYiEbQ71xYxtTLndEL0NLBcNT Dt8Q== 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:arc-filter :dmarc-filter:delivered-to; bh=N9PtwrOhmj76q46K6NBIZkgygwvUKO+7oETfFxZy/Ro=; fh=wYRiZnn9nDBltyuQH1H/s7FMOEBgw7D5UzXRQ9Hnwic=; b=AMsVuJYSTIalSAO3+crnQx/r7uVycymtCzv8cdJWN+btWeALgOLsCsSln+XkMmeQpT xQM7OAY8xueRC0TP3BQn0RR1LT7L3xEdPcczA5qkGPZXe5E7aZoEGjrlUo+WPWkWp8m8 F+AAJM+9RF0KNU15At5UWtPRVa5T+s5UiBjQHqopGyZbyWOLrmhdMaKw2QNOESP+deSq XCsEFsxMU28tQPrSeeC3rpkVEM5+3GhL8yS3jJBlbsMen/71MnWjlQ4HJ4Vgj8dNS/ND gQrI4s29GYLuDmgGi7MdWBgodMP/cpTV3GaYKJ0I2PDf52Xh6DVT/SbE6ncEpNocJJyk joVg==; 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 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q1-20020ad45ca1000000b0068cb633507asi10121397qvh.575.2024.02.20.19.09.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 19:09:55 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; 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 8.43.85.97 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 A5D2C3858408 for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 03:09:55 +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 2E5B73858D28 for <gcc-patches@gcc.gnu.org>; Wed, 21 Feb 2024 03:08:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E5B73858D28 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 2E5B73858D28 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=1708484941; cv=none; b=pFS52D7Ws2bKXrxRdiS0byIYWuCcIOJxBBgg5MfYEoa0YwcYBIP8jAZcIs8QZ33DI0KtgIfpCawFdH3sQNq4l3gB9eqtS6D7pl8NMPeGqeq90ziK7h/3CBGh54RKbhrrK8qac8GaZ0Y8QeLKPp5HkxL1DxAgubOq5tcU5UNAnDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708484941; c=relaxed/simple; bh=UMGvDOwIQ03h7vG6fwkEvAya/S5bssYmBVxQ9F1jszg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=d/1CnaGysvaUo+b/pLuKTPPKbSTLwFEod+MFIHzcpQ6z36Qv7coFW3g9DI57LyFa3AejEDgqP/Ms19q1owdfnvkUHcyPv8qOJEXyQRgf/w0wLM3XAL5fS/6/F+PGflEIbIQCYC0Nw7/SKA/6wZovGiLYTxE6urHHoQ2QOK7v7g0= 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 <chenglulu@loongson.cn>) id 1rccyd-0000KF-Di for gcc-patches@gcc.gnu.org; Tue, 20 Feb 2024 22:08:58 -0500 Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8BxiehEadVly6cPAA--.21420S3; Wed, 21 Feb 2024 11:08:52 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxLs88adVlyGw9AA--.26359S2; Wed, 21 Feb 2024 11:08:50 +0800 (CST) From: Lulu Cheng <chenglulu@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Subject: [PATCH v1 0/4] Fix a series of problems caused by Date: Wed, 21 Feb 2024 11:08:37 +0800 Message-Id: <20240221030841.23454-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxLs88adVlyGw9AA--.26359S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7AFW3Cw47tr1xuF18Ar45twc_yoW8Xw1kp3 y7ZrsayFWrJrs3XwnIqryfX3W3trs2kry7Xa13tr1jkw4UZr1jyF4rtrZIgF1v9a4fXr12 qr1rK3W5W3Z0vFbCm3ZEXasCq-sJn29KB7ZKAUJUUUUx529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUBFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4j6r4UJwAaw2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWU JVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26c xKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAF wI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j5BMNUUUUU= 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=-6.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 <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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791476120969127908 X-GMAIL-MSGID: 1791476363118009440 |
Series |
Fix a series of problems caused by
|
|
Message
chenglulu
Feb. 21, 2024, 3:08 a.m. UTC
Because binutils2.42 corrects the implementation of ".align [abs-expr,[abs-expr[,abs-expr]]]". The macro ASM_OUTPUT_ALIGN_WITH_NOP in GCC uses this assembler directive, and an error occurs. See link below for detailed description. https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645067.html In order to solve the above problems, do the following operations: 1. Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. (cherry pick r14-4674) 2. Check whether binutils supports the relax function. (cherry pick r14-4160) 3. Disable relaxation if the assembler don't support conditional branch relaxation. (cherry pick r14-5434) PR112299 is also fixed here. Lulu Cheng (2): LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default. Xi Ruoyao (2): LoongArch: Disable relaxation if the assembler don't support conditional branch relaxation [PR112330] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] gcc/config.in | 18 +++++ gcc/config/loongarch/genopts/loongarch.opt.in | 9 +++ gcc/config/loongarch/gnu-user.h | 4 +- gcc/config/loongarch/loongarch-opts.h | 12 ++++ gcc/config/loongarch/loongarch.h | 22 +++++-- gcc/config/loongarch/loongarch.opt | 9 +++ gcc/configure | 66 +++++++++++++++++++ gcc/configure.ac | 14 ++++ gcc/doc/invoke.texi | 24 ++++++- 9 files changed, 169 insertions(+), 9 deletions(-)
Comments
Sorry, this title is incomplete and has been resent. 在 2024/2/21 上午11:08, Lulu Cheng 写道: > Because binutils2.42 corrects the implementation of > ".align [abs-expr,[abs-expr[,abs-expr]]]". > The macro ASM_OUTPUT_ALIGN_WITH_NOP in GCC uses this assembler directive, > and an error occurs. See link below for detailed description. > https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645067.html > > In order to solve the above problems, do the following operations: > > 1. Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. (cherry pick r14-4674) > 2. Check whether binutils supports the relax function. (cherry pick r14-4160) > 3. Disable relaxation if the assembler don't support > conditional branch relaxation. (cherry pick r14-5434) > > PR112299 is also fixed here. > > Lulu Cheng (2): > LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. > LoongArch: Check whether binutils supports the relax function. If > supported, explicit relocs are turned off by default. > > Xi Ruoyao (2): > LoongArch: Disable relaxation if the assembler don't support > conditional branch relaxation [PR112330] > LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] > > gcc/config.in | 18 +++++ > gcc/config/loongarch/genopts/loongarch.opt.in | 9 +++ > gcc/config/loongarch/gnu-user.h | 4 +- > gcc/config/loongarch/loongarch-opts.h | 12 ++++ > gcc/config/loongarch/loongarch.h | 22 +++++-- > gcc/config/loongarch/loongarch.opt | 9 +++ > gcc/configure | 66 +++++++++++++++++++ > gcc/configure.ac | 14 ++++ > gcc/doc/invoke.texi | 24 ++++++- > 9 files changed, 169 insertions(+), 9 deletions(-) >