summaryrefslogtreecommitdiff
path: root/debian/patches/gcc-lto-jobserver-doc.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/gcc-lto-jobserver-doc.diff')
-rw-r--r--debian/patches/gcc-lto-jobserver-doc.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/gcc-lto-jobserver-doc.diff b/debian/patches/gcc-lto-jobserver-doc.diff
new file mode 100644
index 0000000..00b3a3e
--- /dev/null
+++ b/debian/patches/gcc-lto-jobserver-doc.diff
@@ -0,0 +1,24 @@
+# DP: Backport LTO jobserver support (documentation).
+
+--- a/src/gcc/doc/invoke.texi
++++ b/src/gcc/doc/invoke.texi
+@@ -10327,7 +10327,7 @@ If you specify the optional @var{n}, the
+ generation done at link time is executed in parallel using @var{n}
+ parallel jobs by utilizing an installed @command{make} program. The
+ environment variable @env{MAKE} may be used to override the program
+-used. The default value for @var{n} is 1.
++used.
+
+ You can also specify @option{-flto=jobserver} to use GNU make's
+ job server mode to determine the number of parallel jobs. This
+@@ -10336,6 +10336,10 @@ You must prepend a @samp{+} to the comma
+ for this to work. This option likely only works if @env{MAKE} is
+ GNU make.
+
++Use @option{-flto=auto} to use GNU make's job server, if available,
++or otherwise fall back to autodetection of the number of CPU threads
++present in your system.
++
+ @item -flto-partition=@var{alg}
+ @opindex flto-partition
+ Specify the partitioning algorithm used by the link-time optimizer.