From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 617053858D20 for ; Mon, 8 Apr 2024 09:05:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 617053858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 617053858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712567131; cv=none; b=p4Ty5zr56QcJUN9NkDwfvJ/cciKXY3RejvKZabh9875N07GL1Nfp5gxin4QA3njzdSzgc5XzDJcFjdi6IsxMJUeaiF22dkMz9QVTxork0dQZpEb1VIUouWgyqHHf5cM57o2NW0jzJIkMFfZpk5gfzuVJ9xYAgJgom62Nua6GOEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712567131; c=relaxed/simple; bh=20SlfC+9XjKzOA1pVm9XaB2HQDLiu5rA7dERkM3wuQo=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=J/ze1Bbyp3VrCSnyHSQ2pztDh6bHF4ONlGaWMeEz3TnJx2NxcIEuiYsZ5A/OxjoFivO+VNxdbldN/psu2urzXEJv9ARWg9ZBoiy6HM8RVg7ZU0uv1DWZ27B6WyBPls9VakHpuDFXfHv9hSikPyl4C7xDHdemCZFMC51AluBCI9k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtkwP-0007Lo-JA for gcc-patches@gcc.gnu.org; Mon, 08 Apr 2024 05:05:27 -0400 Received: from loongson.cn (unknown [114.243.100.253]) by gateway (Coremail) with SMTP id _____8CxG+lLsxNmRVkkAA--.64983S3; Mon, 08 Apr 2024 17:05:17 +0800 (CST) Received: from rescuer (unknown [114.243.100.253]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx7xNFsxNmS2R1AA--.8628S2; Mon, 08 Apr 2024 17:05:10 +0800 (CST) Date: Mon, 8 Apr 2024 17:05:07 +0800 From: Yang Yujie To: Xi Ruoyao Cc: Yang Yujie , gcc-patches@gcc.gnu.org, chenglulu@loongson.cn, xuchenghua@loongson.cn Subject: Re: [PATCH v2] LoongArch: Enable switchable target Message-ID: References: <20240408084512.226082-2-yangyujie@loongson.cn> <09b3834981037e719e426a7baeff8693bca7f222.camel@xry111.site> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09b3834981037e719e426a7baeff8693bca7f222.camel@xry111.site> X-CM-TRANSID:AQAAf8Cx7xNFsxNmS2R1AA--.8628S2 X-CM-SenderInfo: 51dqw5pxmlvqxorr0wxvrqhubq/1tbiAQABAGYTquoASgAEs7 X-Coremail-Antispam: 1Uk129KBj9xXoWrKF1kXF4rJF48Zw4UJF13Awc_yoWfGwb_ur 4Iyws7C345KFW3Aay7K3W5Gr9rKFyrWr1xW398tFnxAF1rJFyDWFZ09r1SvF1fGay7ursx tFsIqr4Fvr1agosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbxkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUAVWUtwC20s026c02F40E 14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIx kGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAF wI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1CPfJUU UUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=yangyujie@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_FAIL,SPF_HELO_PASS,TXREP autolearn=no 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 Mon, Apr 08, 2024 at 04:49:58PM +0800, Xi Ruoyao wrote: > On Mon, 2024-04-08 at 16:46 +0800, Yang Yujie wrote: > > v1 -> v2: > > Remove spaces from changelog. > > I've rebuilt the base system with a GCC including this patch. LTO+PGO > bootstrap fine, regtested fine, and no issues observed. > > I do usually include the optimization flags into LDFLAGS when I do LTO, > so I don't really rely on this patch though. > > -- > Xi Ruoyao > School of Aerospace Science and Technology, Xidian University Thanks for the testing! Respecting the options from compile time seems to be the convention though. And it would be a natural consequence of implementing target attributes, which is not here yet for LoongArch. With this patch, we can have this build issue solved: https://gitlab.freedesktop.org/pixman/pixman/-/merge_requests/83