]> gcc.gnu.org Git - gcc.git/commit
x86: Don't add crtfastmath.o for -shared
authorliuhongt <hongtao.liu@intel.com>
Thu, 15 Dec 2022 01:38:08 +0000 (09:38 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 19 Dec 2022 08:47:21 +0000 (16:47 +0800)
commit88b531d0323fc1fc4173f1975d6a4f408a096f8b
tree902dec4816057fef03e3b27b56e64dbded1593b2
parente4337398620098f96a7680ce748c9da178514acf
x86: Don't add crtfastmath.o for -shared

Don't add crtfastmath.o for -shared to avoid changing the MXCSR register
when loading a shared library.  crtfastmath.o will be used only when
building executables.

PR target/55522
* config/i386/gnu-user-common.h (GNU_USER_TARGET_MATHFILE_SPEC):
Don't add crtfastmath.o for -shared.
* doc/invoke.texi (-shared): Add related documentation.
gcc/config/i386/gnu-user-common.h
gcc/doc/invoke.texi
This page took 0.059523 seconds and 6 git commands to generate.