From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14821 invoked by alias); 24 Jun 2016 18:36:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 14810 invoked by uid 89); 24 Jun 2016 18:36:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*dj, H*Ad:U*bschmidt, H*Ad:U*bonzini X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 24 Jun 2016 18:36:13 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 88E1D3B717; Fri, 24 Jun 2016 18:36:11 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5OIa9CT022163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 24 Jun 2016 14:36:11 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id u5OIa6Ap015679; Fri, 24 Jun 2016 20:36:07 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id u5OIa2OK015643; Fri, 24 Jun 2016 20:36:02 +0200 Date: Fri, 24 Jun 2016 18:49:00 -0000 From: Jakub Jelinek To: Jeff Law , Richard Biener , Andi Kleen Cc: gcc-patches@gcc.gnu.org, hubicka@ucw.cz, bschmidt@redhat.com, bonzini@gnu.org, dj@redhat.com, Ralf.Wildenhues@gmx.de, Andi Kleen Subject: Re: [PATCH 3/3] Add make autoprofiledbootstrap Message-ID: <20160624183602.GH7387@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20160622123706.16343-1-andi@firstfloor.org> <20160622123706.16343-2-andi@firstfloor.org> <20160622123706.16343-3-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160622123706.16343-3-andi@firstfloor.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg01756.txt.bz2 On Wed, Jun 22, 2016 at 05:37:06AM -0700, Andi Kleen wrote: > gcc/cp/: > > 2016-06-22 Andi Kleen > > * Make-lang.in: Add support for autofdo. ... This results in annoying errors in stderr each time make is performed in non-bootstrapped build (3 times even for each case). Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-06-24 Jakub Jelinek * Makefile.in: Don't cat ../stage_current if it does not exist. c/ * Make-lang.in: Don't cat ../stage_current if it does not exist. cp/ * Make-lang.in: Don't cat ../stage_current if it does not exist. lto/ * Make-lang.in: Don't cat ../stage_current if it does not exist. --- gcc/Makefile.in.jj 2016-06-24 12:59:28.000000000 +0200 +++ gcc/Makefile.in 2016-06-24 14:44:35.861407698 +0200 @@ -1569,7 +1569,8 @@ ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OB # for anything that is shared use the cc1plus profile data, as that # is likely the most exercised during the build -ifeq ($(shell cat ../stage_current),stageautofeedback) +ifeq ($(if $(wildcard ../stage_current),$(shell cat \ + ../stage_current)),stageautofeedback) $(ALL_HOST_BACKEND_OBJS): ALL_COMPILERFLAGS += -fauto-profile=cc1plus.fda $(ALL_HOST_BACKEND_OBJS): cc1plus.fda endif --- gcc/c/Make-lang.in.jj 2016-06-24 12:59:22.000000000 +0200 +++ gcc/c/Make-lang.in 2016-06-24 14:45:57.115410249 +0200 @@ -60,7 +60,8 @@ c_OBJS = $(C_OBJS) cc1-checksum.o c/gccs # Use strict warnings for this front end. c-warn = $(STRICT_WARN) -ifeq ($(shell cat ../stage_current),stageautofeedback) +ifeq ($(if $(wildcard ../stage_current),$(shell cat \ + ../stage_current)),stageautofeedback) $(C_OBJS): ALL_COMPILERFLAGS += -fauto-profile=cc1.fda $(C_OBJS): cc1.fda endif --- gcc/cp/Make-lang.in.jj 2016-06-24 12:59:22.000000000 +0200 +++ gcc/cp/Make-lang.in 2016-06-24 14:46:26.392050859 +0200 @@ -81,7 +81,8 @@ CXX_AND_OBJCXX_OBJS = cp/call.o cp/decl. cp/vtable-class-hierarchy.o cp/constexpr.o cp/cp-ubsan.o \ cp/constraint.o cp/logic.o $(CXX_C_OBJS) -ifeq ($(shell cat ../stage_current),stageautofeedback) +ifeq ($(if $(wildcard ../stage_current),$(shell cat \ + ../stage_current)),stageautofeedback) $(CXX_AND_OBJCXX_OBJS): CFLAGS += -fauto-profile=cc1plus.fda $(CXX_AND_OBJCXX_OBJS): cc1plus.fda endif --- gcc/lto/Make-lang.in.jj 2016-06-24 12:59:27.000000000 +0200 +++ gcc/lto/Make-lang.in 2016-06-24 14:47:04.387584437 +0200 @@ -29,7 +29,8 @@ lto_OBJS = $(LTO_OBJS) # now. Should reenable after this is fixed, but only when LTO bootstrap # is enabled. -#ifeq ($(shell cat ../stage_current),stageautofeedback) +#ifeq ($(if $(wildcard ../stage_current),$(shell cat \ +# ../stage_current)),stageautofeedback) #$(LTO_OBJS): CFLAGS += -fauto-profile=lto1.fda #$(LTO_OBJS): lto1.fda #endif Jakub