aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-01-13 08:57:12 +0100
committerRichard Biener <rguenther@suse.de>2023-01-27 15:46:30 +0100
commitb799acef461bcb78d77819dd27c8e4806177d841 (patch)
treefbc9ba11f721382fd8256efc7ddd4da506f6f9a2 /gcc
parent6cdb4d4bcd52c95cb6d367b93a82eb599d4e26f0 (diff)
downloadgcc-b799acef461bcb78d77819dd27c8e4806177d841.zip
gcc-b799acef461bcb78d77819dd27c8e4806177d841.tar.gz
gcc-b799acef461bcb78d77819dd27c8e4806177d841.tar.bz2
Clarify -shared effect on crtfastmath.o
This rewords the note to not specifically mention crtfastmath.o but FP environment altering by -ffast-math or -Ofast. PR target/55522 * doc/invoke.texi (-shared): Clarify effect on -ffast-math and -Ofast FP environment side-effects.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/invoke.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 06d7798..a371cd9 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -17696,8 +17696,9 @@ needs to build supplementary stub code for constructors to work. On
multi-libbed systems, @samp{gcc -shared} must select the correct support
libraries to link against. Failing to supply the correct flags may lead
to subtle defects. Supplying them in cases where they are not necessary
-is innocuous. For x86, crtfastmath.o will not be added when
-@option{-shared} is specified. }
+is innocuous. @option{-shared} suppresses the addition of startup code
+to alter the floating-point environment as done with @option{-ffast-math},
+@option{-Ofast} or @option{-funsafe-math-optimizations} on some targets.}
@item -shared-libgcc
@itemx -static-libgcc