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 [thread overview]
Message-ID: <20240221030841.23454-1-chenglulu@loongson.cn> (raw)
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(-)
--
2.39.3
next reply other threads:[~2024-02-21 3:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 3:08 Lulu Cheng [this message]
2024-02-21 3:08 ` [PATCH v1 1/4] LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP Lulu Cheng
2024-02-21 3:08 ` [PATCH v1 2/4] LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default Lulu Cheng
2024-02-21 3:08 ` [PATCH v1 3/4] LoongArch: Disable relaxation if the assembler don't support conditional branch relaxation [PR112330] Lulu Cheng
2024-02-21 3:08 ` [PATCH v1 4/4] LoongArch: Define HAVE_AS_TLS to 0 if it's undefined [PR112299] Lulu Cheng
2024-02-21 3:12 ` [PATCH v1 0/4] Fix a series of problems caused by chenglulu
-- strict thread matches above, loose matches on Subject: below --
2024-02-21 3:04 Lulu Cheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240221030841.23454-1-chenglulu@loongson.cn \
--to=chenglulu@loongson.cn \
--cc=gcc-patches@gcc.gnu.org \
--cc=i@xen0n.name \
--cc=xry111@xry111.site \
--cc=xuchenghua@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).