From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7877) id BBC843858D1E; Thu, 22 Feb 2024 03:24:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBC843858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708572297; bh=/qAjqL0ofqBOOxGdho4oCW7FISOH7eSk1ILcOT11vu4=; h=From:To:Subject:Date:From; b=nt9z/CJ5MzPt+bZxqiM4dNlXKRF8hVIKfKzXgi9VLuJK5TrEWZM9EF9EPAOXAavr5 XWh7gnfSKOzS0gN6gFnNyU9oPDSE+8eluIAlUtP4jPh1l4t+j3WNO+SVC5Q4285E5o 02MBTgLVz3DqSsySg5WL2hqknnBRAy95JIJlTv6U= 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 r13-8349] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. X-Act-Checkin: gcc X-Git-Author: Lulu Cheng X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: b58f639bce17bc40455c3c2d1dffd738c7423464 X-Git-Newrev: b781cc27ca1894f8b1f9f8d621f0d2147e1af016 Message-Id: <20240222032457.BBC843858D1E@sourceware.org> Date: Thu, 22 Feb 2024 03:24:57 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b781cc27ca1894f8b1f9f8d621f0d2147e1af016 commit r13-8349-gb781cc27ca1894f8b1f9f8d621f0d2147e1af016 Author: Lulu Cheng Date: Fri Sep 15 11:56:01 2023 +0800 LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP. There are two reasons for removing this macro definition: 1. The default in the assembler is to use the nop instruction for filling. 2. For assembly directives: .align [abs-expr[, abs-expr[, abs-expr]]] The third expression it is the maximum number of bytes that should be skipped by this alignment directive. Therefore, it will affect the display of the specified alignment rules and affect the operating efficiency. This modification relies on binutils commit 1fb3cdd87ec61715a5684925fb6d6a6cf53bb97c. (Since the assembler will add nop based on the .align information when doing relax, it will cause the conditional branch to go out of bounds during the assembly process. This submission of binutils solves this problem.) gcc/ChangeLog: * config/loongarch/loongarch.h (ASM_OUTPUT_ALIGN_WITH_NOP): Delete. Co-authored-by: Chenghua Xu (cherry picked from commit b20c7ee066cb7d952fa193972e8bc6362c6e4063) Diff: --- gcc/config/loongarch/loongarch.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gcc/config/loongarch/loongarch.h b/gcc/config/loongarch/loongarch.h index f0db67f8c7b8..cc719d0c7967 100644 --- a/gcc/config/loongarch/loongarch.h +++ b/gcc/config/loongarch/loongarch.h @@ -982,11 +982,6 @@ typedef struct { #define ASM_OUTPUT_ALIGN(STREAM, LOG) fprintf (STREAM, "\t.align\t%d\n", (LOG)) -/* "nop" instruction 54525952 (andi $r0,$r0,0) is - used for padding. */ -#define ASM_OUTPUT_ALIGN_WITH_NOP(STREAM, LOG) \ - fprintf (STREAM, "\t.align\t%d,54525952,4\n", (LOG)) - /* This is how to output an assembler line to advance the location counter by SIZE bytes. */