Unchanged instances are deliberate.
gcc/ChangeLog:
* doc/invoke.texi: Say 'whole-program' consistently where
appropriate.
---
OK?
gcc/doc/invoke.texi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index a8585b01437a..7ce391428312 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -15287,8 +15287,8 @@ You can always override
the automatic decision to do link-time optimization
by passing @option{-fno-lto} to the link command.
-To make whole program optimization effective, it is necessary to make
-certain whole program assumptions. The compiler needs to know
+To make whole-program optimization effective, it is necessary to make
+certain assumptions. The compiler needs to know
what functions and variables can be accessed by libraries and runtime
outside of the link-time optimized unit. When supported by the linker,
the linker plugin (see @option{-fuse-linker-plugin}) passes information
@@ -19447,14 +19447,14 @@ code generation is forced, a final binary is
produced, and the intermediate
code for later link-time optimization is stripped. When multiple object files
are linked together the resulting code is better optimized than with
link-time optimizations disabled (for example, cross-module inlining
-happens), but most of benefits of whole program optimizations are lost.
+happens), but most of the benefits of whole-program optimizations are lost.
During the incremental link (by @option{-r}) the linker plugin defaults to
@option{rel}. GNU Binutils 2.44 or later is needed to incrementally link
LTO objects and non-LTO objects into a single mixed object file. If any
of the object files in an incremental link cannot be used for link-time
optimization, the linker plugin issues a warning and uses @samp{nolto-rel}.
-To maintain whole program optimization, it is recommended to link such objects
+To maintain whole-program optimization, it is recommended to link such objects
into a static library instead.
@opindex fuse-ld=bfd
--
2.51.0