From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 1250D3858C39 for ; Tue, 9 Apr 2024 12:51:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1250D3858C39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1250D3858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712667075; cv=none; b=VHXnnXX9mlGkwouEQnv/GwHdK9Jc5nNkmB9nolb3k7rTDSogh4wuDVgdwFTQCuOJ03bTY1BOiyvA2/TLHqfzJy1pVuX1WmzBydZmX+YhtzxTum6+s/xlj0lzR9/AEtPorC100PhDObcGoIBylrZ3oEKfkpna2fbJKzU4hvkCbnA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712667075; c=relaxed/simple; bh=EM7S9zGZL+Ov+Af/ExC0ShKvzvJAJU9p7usaZANHBOc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=SJr6bzuabEs/FlN3IgKKgsvLMDD/nYhaCuSDjpHvgMSZSu3Raa+fOtoJDHcIGYUVw955BYUiicfCMcauS1bkRAt5cU4i+B5hRV1JwhMQ6RXBp6PiTdDdxRBZcVd7J7XTiCmQycp5i0gti/kCrsGgVkEl8/fv3paFEFWtOnblVNw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712667073; h=from:from:reply-to: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=qlsk+YnLkjoyEOMSGRzElZNrStA26u+slRZVcp7qIgU=; b=Qd4Of/4slKZDOgiA0Cn11iT/bnO8AuZ+Nwj7OwXQI64QGkAgy8Y07OOPepPtUdk9xYUboV 32kY2jLnnNZbZ8Kk/6PCaRKLepTpw0kBzGi38MmGftOYlikc+h4yWUMcFz/sAtQVKFYDkE 13KNTwVnaQlcotk1NjrAaZfLBiVxs6E= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-148-85tbUCqCNYmpED-JacMQCg-1; Tue, 09 Apr 2024 08:51:10 -0400 X-MC-Unique: 85tbUCqCNYmpED-JacMQCg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3CA658016EA; Tue, 9 Apr 2024 12:51:10 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CEDA31C06666; Tue, 9 Apr 2024 12:51:09 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 439Cp4vJ1314245 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 9 Apr 2024 14:51:04 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 439Cp3mk1314244; Tue, 9 Apr 2024 14:51:03 +0200 Date: Tue, 9 Apr 2024 14:51:03 +0200 From: Jakub Jelinek To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] lto/114655 - -flto=4 at link time doesn't override -flto=auto at compile time Message-ID: Reply-To: Jakub Jelinek References: <49506.124040908491001343@us-mta-292.us.mimecast.lan> MIME-Version: 1.0 In-Reply-To: <49506.124040908491001343@us-mta-292.us.mimecast.lan> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,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 Tue, Apr 09, 2024 at 02:49:09PM +0200, Richard Biener wrote: > The following adjusts -flto option processing in lto-wrapper to have > link-time -flto override any compile time setting. > > LTO-boostrapped on x86_64-unknown-linux-gnu, testing in progress. > > OK for trunk and branches? GCC 11 seems to be unaffected by this. > > Thanks, > Richard. > > PR lto/114655 > * lto-wrapper.cc (merge_flto_options): Add force argument. > (merge_and_complain): Do not force here. > (run_gcc): But here to make the link-time -flto option override > any compile-time one. Ok. Jakub