diff options
author | Sam James <sam@gentoo.org> | 2025-09-04 23:55:36 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2025-09-06 19:41:05 +0100 |
commit | 99e8a240843c32152bc26bb891844ec568356207 (patch) | |
tree | e8f817074e16d385961a872765d731371496c7da /gcc | |
parent | 57e7176e9af93f0c39f8a284772386d8d6ff49ee (diff) | |
download | gcc-99e8a240843c32152bc26bb891844ec568356207.zip gcc-99e8a240843c32152bc26bb891844ec568356207.tar.gz gcc-99e8a240843c32152bc26bb891844ec568356207.tar.bz2 |
doc: consistently say 'whole-program' where appropriate
Unchanged instances are deliberate.
gcc/ChangeLog:
* doc/invoke.texi: Say 'whole-program' consistently where
appropriate.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index cb85086..7cc7bbf 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, link such objects into a static +To maintain whole-program optimization, link such objects into a static library instead. @opindex fuse-ld=bfd |