sparc: Don't add crtfastmath.o for -shared
authorRichard Biener <rguenther@suse.de>
Fri, 13 Jan 2023 07:54:33 +0000 (08:54 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2023 12:34:29 +0000 (13:34 +0100)
commit054e407b7f68f714c024d8a9c983fdd53ceead2b
tree8793c89bc7a38a895bf9afcc4b927fcbef45fb27
parent55a2d8096a799c682922b03bef7c0d4e4c1c8d7b
sparc: 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/sparc/freebsd.h (ENDFILE_SPEC): Don't add crtfastmath.o
for -shared.
* config/sparc/linux.h (ENDFILE_SPEC): Likewise.
* config/sparc/linux64.h (ENDFILE_SPEC): Likewise.
* config/sparc/sp-elf.h (ENDFILE_SPEC): Likewise.
* config/sparc/sp64-elf.h (ENDFILE_SPEC): Likewise.
gcc/config/sparc/freebsd.h
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h
gcc/config/sparc/sp-elf.h
gcc/config/sparc/sp64-elf.h