From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 72FFE3858CD1; Thu, 4 Jan 2024 13:49:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72FFE3858CD1 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kam.mff.cuni.cz ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 72FFE3858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.113.20.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704376163; cv=none; b=BAtiB2YhrE/NItlvhtwy3hdjdY1H0KOusETg591c7SIwM/sSGKHifbIJUtj8KtlqzDYQw6DB/UWpvNuYNJfE1HdDv0iyQJGy89x4wNebgCzuDoEyWcwzXjgAnKfWampjpqRXQzhavg+YImWqVrGjEzaoJfkrclXcpE9WPnfzTdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704376163; c=relaxed/simple; bh=ZTb4lvXvSB4ghTOFiEwOY11w0bucDwCRKq+Hxk3XKhg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=QgY9s8he8bXxB1+g5QDEuOK7BvvrGs9G6G6Hhce/In1gSqm+2Yza13pcdiBqI52uJiaS0g+XXFF+1r3kSU4TM1nENC535WaS1e4606N8NX/RZHBpLErBvg0pFXTX5guvI1tV7q4mckKRC16lyVSMk9N9HPHx7sO0Krmh9HfheMM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id E7BA1282538; Thu, 4 Jan 2024 14:49:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1704376160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HdydW0n11HSa1N/4wxareWpjzcDuVJ7LyEqDxr6KbtU=; b=W1hmP/Z/Q7XszFjN19WaleEgqp75IuXX3rvLFIAG+R5sBR2uylDhhmJ/kQzBoDXb5Dhitj gtCxRklX+hZ7IncAMFjD8AKU1SmtGCkYQPahxoAaRtzuQ0vBakOqpcyp8SgSO7M/Z7btVB xKdiMUX2MDG/mVNgZfQjONVxdHn4uOY= Date: Thu, 4 Jan 2024 14:49:20 +0100 From: Jan Hubicka To: "xry111 at gcc dot gnu.org" Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug target/113233] LoongArch: target options from LTO objects not respected during linking Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: > Confirm. But option save/restore has been always implemented: > > .section .gnu.lto_.opts,"",@progbits > .ascii "'-fno-openmp' '-fno-openacc' '-fno-pie' '-fcf-protection" > .ascii "=none' '-mabi=lp64d' '-march=loongarch64' '-mfpu=64' '-m" > .ascii "simd=lasx' '-mcmodel=normal' '-mtune=loongarch64' '-flto" > .ascii "'\000" > > So -msimd=lasx is correctly recorded. Not sure why it does not work. With LTO we need to mix code compiled with different sets of options. For this reason we imply for every function defition and optimization and target attribute which record the flags. So it seems target attribute is likely broken for this flag.