[lfs] branch xry111/loongarch updated: loongarch: also apply the patch for GCC pass 1 and 2

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <176975655144.2831.17616810103065904844@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch xry111/loongarch
in repository lfs.

The following commit(s) were added to refs/heads/xry111/loongarch by this push:
     new d202a589a loongarch: also apply the patch for GCC pass 1 and 2
d202a589a is described below

commit d202a589a2cdd07a981899e23507d8889f185ed4
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Jan 30 13:29:10 2026 +0800

    loongarch: also apply the patch for GCC pass 1 and 2
    
    The output from GCC pass 1 and 2 can get in the final system: before
    installing the final GCC, the packages are built with GCC pass 2, and
    they may link to static libraries compiled by GCC pass 1, for example
    libc_nonshared.a, libgcc.a, crt1.o, and etc.
    
    As the patch has an effect to code generation, apply it to all passes to
    ensure the consistency of the compiler output.
---
 chapter05/gcc-pass1.xml | 5 +++++
 chapter06/gcc-pass2.xml | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 81d9bf510..4746f296c 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -43,6 +43,11 @@
   <sect2 role="installation">
     <title>Installation of Cross GCC</title>
 
+    <para>Fix a severe performance issue and two compiler crash issues
+    on LoongArch:</para>
+
+    <screen><userinput remap="pre">patch -Np1 -i ../&gcc-loongarch-fixes-patch;</userinput></screen>
+
     <para>GCC requires the GMP, MPFR and MPC packages. As these packages may
     not be included in your host distribution, they will be built with
     GCC.  Unpack each package into the GCC source directory and rename the
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index f4d20b35a..07fe50eca 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -43,6 +43,11 @@
   <sect2 role="installation">
     <title>Installation of GCC</title>
 
+    <para>Fix a severe performance issue and two compiler crash issues
+    on LoongArch:</para>
+
+    <screen><userinput remap="pre">patch -Np1 -i ../&gcc-loongarch-fixes-patch;</userinput></screen>
+
     <para>As in the first build of GCC, the GMP, MPFR, and MPC packages are
     required. Unpack the tarballs and move them into the required directories:</para>
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.