Message ID | 20240221031050.24343-1-chenglulu@loongson.cn |
---|---|
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 server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2710C3858C5E for <patchwork@sourceware.org>; Wed, 21 Feb 2024 03:11:50 +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 D4A8B3858413 for <gcc-patches@gcc.gnu.org>; Wed, 21 Feb 2024 03:11:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D4A8B3858413 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 D4A8B3858413 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=1708485078; cv=none; b=TQThtmGD2km8Q6l6zt7pn5xtl6SC+lMvuzN63nJbG30y7gi6ugmbI8L+8XJDw/H3lqzbsDyIamVKWgWFQwHOvlhzf3uGb9PGrG5UUI2Xd+vVVw3BiMZgVOY+XyC3e4hzepj82HEXv9xvpVUaRbWCVOEElzAHPr2CRdj7VychYP0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708485078; c=relaxed/simple; bh=UMGvDOwIQ03h7vG6fwkEvAya/S5bssYmBVxQ9F1jszg=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=bqh/D7Gvi0NnQH8WpHtq8bHlQKyhxKkQ0uPEWoZKofSAjsB6UIz6VmhgD1R7xOsZhq/2Hs6gDZJCseYjbbePtYEse/TNibTXJ7jWJjg86Yb0fK4Q2LLX30lOXVuCPVynKreLqKW49axDf/VFgVSKptVOOZ22fa3MokoE6Kb8H3c= 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 1rcd0r-0000p5-5U for gcc-patches@gcc.gnu.org; Tue, 20 Feb 2024 22:11:15 -0500 Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8Axz+vOadVl8KcPAA--.40746S3; Wed, 21 Feb 2024 11:11:10 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxbs3LadVlN209AA--.25488S2; Wed, 21 Feb 2024 11:11:08 +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 ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12). Date: Wed, 21 Feb 2024 11:10:46 +0800 Message-Id: <20240221031050.24343-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cxbs3LadVlN209AA--.25488S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7AFW3Cw47tr1xuF18Ar45twc_yoW8Xw1kp3 y7ZrsayFWrJrs3XwnIqryfX3W3trs2kry7Xa13tr1jkw4UZr1jyF4rtrZIgF1v9a4fXr12 qr1rK3W5W3Z0vFbCm3ZEXasCq-sJn29KB7ZKAUJUUUUd529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUB2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1q6r43M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q 6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1l4IxYO2xFxVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8Gjc xK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0 cI8IcVAFwI0_Xr0_Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8V AvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E 14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUI75rDUUUU 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+patchwork=sourceware.org@gcc.gnu.org |
Series |
Fix a series of problems caused by ASM_OUTPUT_ALIGN_WITH_NOP (release/gcc-12).
|
|
Message
Lulu Cheng
Feb. 21, 2024, 3:10 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
Pushed to r12-10169...r12-10172. 在 2024/2/21 上午11:10, 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(-) >