diff options
author | Richard Biener <rguenther@suse.de> | 2023-01-13 08:52:07 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-01-27 15:46:30 +0100 |
commit | ed0a765ef9b7be420fc4cf6e653fc7350f84981c (patch) | |
tree | 7ebe676927f5fcc7b7c465b43e951e2096ee42de /gcc/config/ia64 | |
parent | 31949fba1222692548b501e4dfa4ddcf7b7fc7c6 (diff) | |
download | gcc-ed0a765ef9b7be420fc4cf6e653fc7350f84981c.zip gcc-ed0a765ef9b7be420fc4cf6e653fc7350f84981c.tar.gz gcc-ed0a765ef9b7be420fc4cf6e653fc7350f84981c.tar.bz2 |
ia64: 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/ia64/linux.h (ENDFILE_SPEC): Don't add crtfastmath.o
for -shared.
Diffstat (limited to 'gcc/config/ia64')
-rw-r--r-- | gcc/config/ia64/linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h index b907cf0..5dfd428 100644 --- a/gcc/config/ia64/linux.h +++ b/gcc/config/ia64/linux.h @@ -49,7 +49,7 @@ do { \ /* Similar to standard Linux, but adding -ffast-math support. */ #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}} \ %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s" /* Define this for shared library support because it isn't in the main |