From patchwork Mon Apr 15 07:50:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1085474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-499244-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="JkoLNTcL"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44jLJh6f1zz9s00 for ; Mon, 15 Apr 2019 17:50:23 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=w9/3oElciWbeeU+JWiQ/fAcxMp+ysbCDBGfidsHxsSfodR1sWqpoO WJJTCiuUK+HUYO2HGDGsBQjLl+OF1tnIve6S+RmxGEBRCS+EVgArirJSjiN3UuxT Uy/YpTumtg1rcw1pAe7YdWkLMlaKTnFcp024zsi10xctWZxEUzZDBM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=CUQmQnBXmZy4iPBb2q9W3AQQBvU=; b=JkoLNTcLAZz+55tV2MYu QWO7XcFeA6WJMnVi/J+Dy6hRZiz4tepapPi+pKP+YRdfTcyYO6KGZRUNlMcfru8S CR5P20AHH5QQzjj33atRADTHZqzpAI12cgpoQNwK6Yn4eoi4zcE666/N6dJqfoRB EmSSJkb6+vJYihk+yBUpPAs= Received: (qmail 14155 invoked by alias); 15 Apr 2019 07:50:16 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 13922 invoked by uid 89); 15 Apr 2019 07:50:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=usp X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Apr 2019 07:50:14 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A55E6AE3D; Mon, 15 Apr 2019 07:50:12 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] Filter out LTO in config/bootstrap-lto-lean.mk. To: gcc-patches@gcc.gnu.org, Richard Biener Message-ID: <61b1e035-85a8-1233-7b39-e76f24e2fa86@suse.cz> Date: Mon, 15 Apr 2019 09:50:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 X-IsSubscribed: yes Hi. The patch is fixing bootstrap-lto-lean.mk where with PGO LTO was wrongly used in STAGEtrain. Tested on openSUSE gcc9 package, I'm attaching build log: https://drive.google.com/file/d/17sxGf_x_VaUekPk2SHI9joIXg1BR5-dY/view?usp=sharing Ready to be installed? Thanks, Martin config/ChangeLog: 2019-04-15 Martin Liska * bootstrap-lto-lean.mk: Filter out -flto in STAGEtrain_CFLAGS. --- config/bootstrap-lto-lean.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/config/bootstrap-lto-lean.mk b/config/bootstrap-lto-lean.mk index ee36f6fe544..79cea50a4c6 100644 --- a/config/bootstrap-lto-lean.mk +++ b/config/bootstrap-lto-lean.mk @@ -2,6 +2,7 @@ # Otherwise, LTO is used in only stage3. STAGE3_CFLAGS += -flto=jobserver +override STAGEtrain_CFLAGS := $(filter-out -flto=jobserver,$(STAGEtrain_CFLAGS)) STAGEtrain_GENERATOR_CFLAGS += -flto=jobserver STAGEfeedback_CFLAGS += -flto=jobserver