Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2161591rdb; Sun, 3 Dec 2023 05:20:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHfkF/XYKDioZT/xO6aFCeHwe2fmx67UF4K64TGzpMooqtix/slCyOjAsHcqqJ4i8lmt8x X-Received: by 2002:a17:903:1105:b0:1d0:6ffd:e2ce with SMTP id n5-20020a170903110500b001d06ffde2cemr2861445plh.104.1701609621445; Sun, 03 Dec 2023 05:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701609621; cv=none; d=google.com; s=arc-20160816; b=U/L90gKKjj4XEPCSZ5zLgXqbWjg0ULVu28lnGyktTNJhIG+U+kM0FyRWQjU5yFJuxV ApZcUOVnBTWY1B5l0M1+xeVrD8HOT3MU4u17Hlz9V0JSqDpFppPSFQpiOQGwqOo/w1DW jkB85fTrBVEIOds8ig64oHb8T9wABT8qy+sq0XwCnJ7E2IO/yVBL4zIDz/Hoy49REUQ6 mLTT4KiNktVxRqdKmsipYZJ4sfXXSjb5hKMMcAyJPJqi/ZhC0CL3rHygKL8cxT7XPIB3 g7oCm1SpviDtBE7jHWElcmJI70fesqLw+wuCprdtwZwOqin4wKA7W2zqfxA10lP/TLJH CwTg== 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:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=M0z2134uAZrBsRnFiPjJBxpc/vSHrZ/Gf9yfSb6XEqg=; fh=2do0AZms94wzDQQwMDswKYZ6KuyQ4KLsHH2AUoZW9Ew=; b=wujnSKntk4KFlMhyTssNsTJWw0BGEHAc8hXH6amJE9CiKsKu4cGhJWRUVlq1QHkY7/ CtjqPnf/6jNrcngOHpCvIvnIeX85f85J6YAjzvAOwxtzwzT10X6qswZiRPoTjh9IosrL 7ze8NQXcAlodvhY4Ed8YsVmyXG7aLjI+1YtqB82t93Djm++tYVQWvzqZikQ650GHdPh5 R+eyaBkeRraIu1D5Uyh1yGvBNFqh3uH5UZjxFrW+gvLCgguwWyigGMdV0+hm+SnozEUz fmBoB/65pEHz8IfP9C3LTtqurcpJgOz54VrpOzKbLMFtsqhn5T7fA1WSFjzfBQ9abKUr sIlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=IHj8xAUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id jk17-20020a170903331100b001d055315494si4006754plb.540.2023.12.03.05.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 05:20:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=IHj8xAUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 19BF0806885D; Sun, 3 Dec 2023 05:20:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233496AbjLCNUK (ORCPT + 99 others); Sun, 3 Dec 2023 08:20:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbjLCNUJ (ORCPT ); Sun, 3 Dec 2023 08:20:09 -0500 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ACE394 for ; Sun, 3 Dec 2023 05:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1701609611; bh=8sq+syTh1UjJkuKljU0mYRoAqe7ukDVJOSXLZA2MlIM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=IHj8xAUYjWqr1mWy7VTN7DHzb1+kh+QmF8kbtdZ0WCmnMEWfnNXpXCczwsjjv4Oag v7bF39UVwNfwjdVhkXZt2uc7++svqylU9fyFGxsqjOfWarj74up/FOZTT1jfuEhz+j pSsq1oDjWkHVxq4IiVy7Ua4+C9zjmg+oLO3gIwxw= Received: from [127.0.0.1] (unknown [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 AA0FF66C98; Sun, 3 Dec 2023 08:20:09 -0500 (EST) Message-ID: Subject: Re: [PATCH v5 8/8] LoongArch: Add ORC stack unwinder support From: Xi Ruoyao To: Tiezhu Yang , Josh Poimboeuf , Peter Zijlstra , Huacai Chen Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Date: Sun, 03 Dec 2023 21:20:07 +0800 In-Reply-To: <20231129130701.27744-9-yangtiezhu@loongson.cn> References: <20231129130701.27744-1-yangtiezhu@loongson.cn> <20231129130701.27744-9-yangtiezhu@loongson.cn> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 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,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 03 Dec 2023 05:20:20 -0800 (PST) On Wed, 2023-11-29 at 21:07 +0800, Tiezhu Yang wrote: > +KBUILD_AFLAGS +=3D $(call cc-option,-mthin-add-sub) $(call cc-option,-= Wa$(comma)-mthin-add-sub) > +KBUILD_CFLAGS +=3D $(call cc-option,-mthin-add-sub) $(call cc-option,-= Wa$(comma)-mthin-add-sub) > + > +ifdef CONFIG_OBJTOOL > +KBUILD_CFLAGS +=3D -fno-optimize-sibling-calls -fno-jump-tables -falig= n-functions=3D4 -falign-labels=3D4 > +endif I still hate regressing the optimization with a passion. And -falign-labels=3D4 implies -falign-functions=3D4 so at least we can remove -falign-functions=3D4. And in GCC >=3D 14 the defaults are -falign-labels=3D16 and -falign- functions=3D32. These values are determined by benchmarking on LA464 so I'd suggest using them (maybe unless CONFIG_CC_OPTIMIZE_FOR_SIZE). --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University