From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id A75BC3858C2D for ; Mon, 23 Jan 2023 08:59:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A75BC3858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id CD07E3369B; Mon, 23 Jan 2023 08:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1674464396; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=Uklj/3fDbYCwKEe8cyCmClNAK0eshNkgU6prDmL5eGA=; b=Q4OerlMkuh6+nvnMT9xMjJiUITaYt5K0FH9IWYHu4tlhu9LTV5ro9kHN/V+2208gtDwz8e F2Qe6UPMU9ifzHLua0mgGGYOZf4WqFjpDRfZ7BA4VeP8ASMZzchca9k9YtenHgWwoPexWb O5mfeN9GMbARKEArG91yFfJ4d9tDfKM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1674464396; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=Uklj/3fDbYCwKEe8cyCmClNAK0eshNkgU6prDmL5eGA=; b=onjvmOHRA7yTgPOqCgOtGwzLLteduTevWGbCFtei5mHJx18FDyZrqoxSIUZJiEQE36dlxf /ZRULqKHTvXdheDA== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 5A5502C141; Mon, 23 Jan 2023 08:59:55 +0000 (UTC) Date: Mon, 23 Jan 2023 08:59:55 +0000 (UTC) From: Richard Biener To: gcc-patches@gcc.gnu.org cc: xuchenghua@loongson.cn Subject: Re: [PATCH 5/9] loongarch: Don't add crtfastmath.o for -shared Message-ID: User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 13 Jan 2023, Richard Biener wrote: > Don't add crtfastmath.o for -shared to avoid altering the FP > environment when loading a shared library. Ping. > 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 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h > index c5b1afe530d..1dc6add62d4 100644 > --- a/gcc/config/loongarch/gnu-user.h > +++ b/gcc/config/loongarch/gnu-user.h > @@ -49,7 +49,7 @@ along with GCC; see the file COPYING3. If not see > /* Similar to standard Linux, but adding -ffast-math support. */ > #undef GNU_USER_TARGET_MATHFILE_SPEC > #define GNU_USER_TARGET_MATHFILE_SPEC \ > - "%{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}" > + "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}}" > > #undef LIB_SPEC > #define LIB_SPEC GNU_USER_TARGET_LIB_SPEC > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg)