loongarch: gcc-pass1: Adapt the new note about -i.orig

This commit is contained in:
Xi Ruoyao
2025-08-17 21:04:48 +08:00
parent 75857b5bc0
commit f68f1c829e

View File

@@ -72,11 +72,15 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
<para>
This example demonstrates the use of the
<parameter>-i.orig</parameter> switch. It makes the
<command>sed</command> copy the <filename>t-linux64</filename> file
to <filename>t-linux64.orig</filename>, and then edit the original
<filename>t-linux64</filename> file inplace. So you may run
<command>diff -u gcc/config/i386/t-linux64{.orig,}</command>
to visualize the change done by the <command>sed</command> command
<command>sed</command> copy the <filename>t-linux</filename> and
<filename>linux.h</filename> files
to <filename>t-linux.orig</filename> and
<filename>linux.h.orig</filename>, and then edit the original
<filename>t-linux64</filename> and <filename>linux.h</filename>
files inplace. So you may run
<command>diff -u gcc/config/loongarch/t-linux{.orig,}</command>
to visualize the change to <filename>t-linux</filename> done by the
<command>sed</command> command
afterwards. We'll simply use <parameter>-i</parameter> (which just
edits the original file inplace without copying it) for all other
packages in the book, but you can change it to