Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2681892rwb; Mon, 7 Aug 2023 01:24:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtq8AsOLSfkSeApOdxgTwwrm2e/0fWlthsPd7YApnAE1vvMQxFBLWQnnD00NgmR2pJ/jqf X-Received: by 2002:a05:6a00:3996:b0:687:6184:deed with SMTP id fi22-20020a056a00399600b006876184deedmr9497648pfb.22.1691396688515; Mon, 07 Aug 2023 01:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691396688; cv=none; d=google.com; s=arc-20160816; b=OxLBR6Tpq2gFKN+rh0fDPD9NwkWSk7ebFiiM9woLF/2tRxix635fww1+10k8TYyRDy /p8BE3smTp/mAb9dwazPHgILmoM7qqNHKdPJDiiQxmWlJz9OJ6XR4RnixcU+bofKk7bL ss+H2A0PyMSR/8u3P5bNzQov6aGji+8gdunWnE/Jt3Shp9reV16BHb9Ub5kRo8UX3Wlj ebbW2QW5nlGim+Dyr4j0bnGCO/loO8WcSWXOFcjrlNuHZuDnxCwyAqxuD1fqT4c68CXm Vn0JQUp+1wkkm7X3BcdIx3APCBXgg6mFBYD52lnWnlynriUS202vQmieO4OSPnfitQMX PZjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=++4psqPTumUFQ8ILF+GSplDwMrm4WJBOzggZJ+Y5JEw=; fh=Vl+eVXhkTsDKsMwSFzqLLxuRlbPfDvcvAp3TY8QZlLI=; b=hcIfJnMB4p7sFMEb9FI7XFPnuPrz8629w1kL6L+tt/1ijaiLTBh9VFdnE3Vp9TIuus KBtLNslyz0zrVyCGJxn98GnXh932Alz2kPdzYm5SzxTuHjKcxWLvRXhHMthCLH1ag/EM Y0pD097P3rXtcysH5vl+IANriOKHsGF3iKcq7txfJ/d9NMoHN+Gmeo4ohzoCxF9NMrz8 KzV1/mMhPOMqhRRVyUsNbGrVa0QL5DQEf/CgaV/xsY4JLdeLVIFFi/pLbIvoBWPwojEY JPwoPBDmcpW8ugEOWwB9TN9CxU1f/OpuAbyLj1Fyh3xgumPiOpvBOPncoqZdjRBmxvJs ezCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=VRJ1o5A9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a056a001ca600b006870ad022d2si5325334pfw.34.2023.08.07.01.24.36; Mon, 07 Aug 2023 01:24:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=VRJ1o5A9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjHGHRl (ORCPT + 99 others); Mon, 7 Aug 2023 03:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbjHGHRd (ORCPT ); Mon, 7 Aug 2023 03:17:33 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D79319B5 for ; Mon, 7 Aug 2023 00:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1691392638; bh=+OenNrBzAmqFCbFqHNyWHPn56bzmSEBQTvxhWepBQiA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=VRJ1o5A9UvpCUETjuIkPFZjnkaR0N0Zss8H5NkKo0TFrWaQtMpDI//g3JxQRUlTmk bLTUri9IuPCHa1ZxfbJlcHJTPQnNKCtQifWMgtbNhlmc6ixF0DzNbG2sozy2SmgWiB 1d9qypQ1r3O0MikTFYD0MqpxUvORLTGj5UGiFXx0= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 46BC1659AD; Mon, 7 Aug 2023 03:17:05 -0400 (EDT) Message-ID: <254baed00504ef3cec36e58540a3fdcca346a407.camel@xry111.site> Subject: Re: [PATCH v2] LoongArch: Replace -ffreestanding with finer-grained -fno-builtin's From: Xi Ruoyao To: WANG Xuerui , Huacai Chen Cc: Nathan Chancellor , loongarch@lists.linux.dev, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui , Nick Desaulniers Date: Mon, 07 Aug 2023 15:16:59 +0800 In-Reply-To: References: <20230806083021.2243574-1-kernel@xen0n.name> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2023-08-06 at 18:31 +0800, WANG Xuerui wrote: > > > +cflags-y +=3D -fno-builtin-memcpy -fno-builtin-memmove -fno-builtin-= memset Can we only apply them for GCC <=3D 13? I think with GCC 14 the built-in implementations are quite reasonable (well, maybe it's some human ego because I wrote them :). --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University