diff options
author | Richard Biener <rguenther@suse.de> | 2020-05-19 08:36:13 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-05-22 12:28:21 +0200 |
commit | ab7eca92926fdc1da880120c116a1832fce56a29 (patch) | |
tree | 50c2c29580814da8710d20ee67ae8611daa9a46c /gcc/doc | |
parent | 79f0451c67e8ed564b86a38581d5f3d57c5074d8 (diff) | |
download | gcc-ab7eca92926fdc1da880120c116a1832fce56a29.zip gcc-ab7eca92926fdc1da880120c116a1832fce56a29.tar.gz gcc-ab7eca92926fdc1da880120c116a1832fce56a29.tar.bz2 |
lto/95190 - amend -flto docs for diagnostic option handling
This documents new GCC 10 behavior on diagnostic options and -flto.
2020-05-22 Richard Biener <rguenther@suse.de>
PR lto/95190
* doc/invoke.texi (flto): Document behavior of diagnostic
options.
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 7217e27..8b9935d 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -11205,6 +11205,14 @@ conflicting translation units. Specifically precedence; and for example @option{-ffp-contract=off} takes precedence over @option{-ffp-contract=fast}. You can override them at link time. +Diagnostic options such as @option{-Wstringop-overflow} are passed +through to the link stage and their setting matches that of the +compile-step at function granularity. Note that this matters only +for diagnostics emitted during optimization. Note that code +transforms such as inlining can lead to warnings being enabled +or disabled for regions if code not consistent with the setting +at compile time. + When you need to pass options to the assembler via @option{-Wa} or @option{-Xassembler} make sure to either compile such translation units with @option{-fno-lto} or consistently use the same assembler |