aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-01-13 08:56:28 +0100
committerRichard Biener <rguenther@suse.de>2023-01-16 14:30:55 +0100
commit6347bbec3efb625dfc8592fbb3099dc0364c5317 (patch)
tree51c9080201c233360d2be209b3d704c51d458a6a /gcc
parent8a1360e72d6c6056606aa5edd8c906c50f26de59 (diff)
downloadgcc-6347bbec3efb625dfc8592fbb3099dc0364c5317.zip
gcc-6347bbec3efb625dfc8592fbb3099dc0364c5317.tar.gz
gcc-6347bbec3efb625dfc8592fbb3099dc0364c5317.tar.bz2
solaris2: 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/sol2.h (ENDFILE_SPEC): Don't add crtfastmath.o for -shared.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/sol2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 05dbaff..616f9b9 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -295,7 +295,7 @@ along with GCC; see the file COPYING3. If not see
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
- "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
+ "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}} \
%(endfile_arch) %(endfile_vtv) %(endfile_crtend) crtn.o%s"
#undef LINK_ARCH32_SPEC_BASE