LoongArch: Don't add crtfastmath.o for -shared
authorRichard Biener <rguenther@suse.de>
Fri, 13 Jan 2023 08:01:12 +0000 (09:01 +0100)
committerChenghua Xu <paul.hua.gm@gmail.com>
Fri, 27 Jan 2023 03:25:18 +0000 (11:25 +0800)
commit476efe839e069e556b4b03cf6ec8c18870867960
tree6952443631df8a5a4e866dcb03da0919880cc694
parent575056672b3fec0cb4f5ddafd2d4a8c42b83589b
LoongArch: Don't add crtfastmath.o for -shared

Don't add crtfastmath.o for -shared to avoid altering the FP
environment when loading a shared library.

PR target/55522
* config/loongarch/gnu-user.h (GNU_USER_TARGET_MATHFILE_SPEC):
Don't add crtfastmath.o for -shared.
gcc/config/loongarch/gnu-user.h