From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 10173385B503; Fri, 27 Jan 2023 14:47:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10173385B503 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674830824; bh=24gjgYKEI7PwtbaW7zAgtSUV1yVWPXD5k6AYRT2lXpg=; h=From:To:Subject:Date:From; b=VrhEHbzz2Yag2X+0ObrzDiylHXahTUKNqybZqT3u3qSM+04FUVjAeg8fD5Na9Ay2M JxJBjTzlXwJjH2/d24+L5h1U7WzvY7lk2O99o654PdIbHFtRJkoPlXxrytEhNcWr/E 6P91XvJOQzgLb9UZ0C54Ch2/4csb8YS5HuqogVjU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5451] ia64: Don't add crtfastmath.o for -shared X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/master X-Git-Oldrev: 31949fba1222692548b501e4dfa4ddcf7b7fc7c6 X-Git-Newrev: ed0a765ef9b7be420fc4cf6e653fc7350f84981c Message-Id: <20230127144704.10173385B503@sourceware.org> Date: Fri, 27 Jan 2023 14:47:04 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ed0a765ef9b7be420fc4cf6e653fc7350f84981c commit r13-5451-ged0a765ef9b7be420fc4cf6e653fc7350f84981c Author: Richard Biener Date: Fri Jan 13 08:52:07 2023 +0100 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. Diff: --- gcc/config/ia64/linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h index b907cf02527..5dfd428aa17 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