From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29911 invoked by alias); 31 Jul 2008 10:48:22 -0000 Received: (qmail 29820 invoked by uid 22791); 31 Jul 2008 10:48:03 -0000 X-Spam-Check-By: sourceware.org Received: from s200bog10.obsmtp.com (HELO s200bog10.obsmtp.com) (207.126.150.124) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Jul 2008 10:47:33 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu2sys200bob010.postini.com ([207.126.147.11]) with SMTP; Thu, 31 Jul 2008 10:47:28 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 77138DB18; Thu, 31 Jul 2008 10:47:23 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 342BB4BF8A; Thu, 31 Jul 2008 10:47:23 +0000 (GMT) Received: from [164.129.12.194] (bri0669.bri.st.com [164.129.12.194]) by mail1.bri.st.com (MOS 3.8.7a) with ESMTP id CKL63529 (AUTH stubbsa); Thu, 31 Jul 2008 11:47:22 +0100 (BST) Message-ID: <48919839.60706@st.com> Date: Thu, 31 Jul 2008 10:48:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tom Tromey Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: automatic dependency tracking References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00578.txt.bz2 Tom Tromey wrote: > +# Override the settings from the main Makefile. > +@GMAKE_TRUE@ifeq ($(DEPMODE),depmode=gcc3) > +# Note that we put the dependencies into a .Tpo file, then move them > +# into place if the compile succeeds. We need this because gcc does > +# not atomically write the dependency output file. > +@GMAKE_TRUE@override COMPILE.post = -c -o $@ -MT $@ -MMD -MP \ > +@GMAKE_TRUE@ -MF $(DEPDIR)/$(basename $(@F)).Tpo > +@GMAKE_TRUE@override POSTCOMPILE = @mv $(DEPDIR)/$(basename $(@F)).Tpo \ > +@GMAKE_TRUE@ $(DEPDIR)/$(basename $(@F)).Po > +@GMAKE_TRUE@else > +@GMAKE_TRUE@override COMPILE.pre = source='$<' object='$@' libtool=no \ > +@GMAKE_TRUE@ DEPDIR=$(DEPDIR) $(DEPMODE) $(depcomp) $(CC) > +# depcomp handles atomicity for us, so we don't need a postcompile > +# step. > +@GMAKE_TRUE@override POSTCOMPILE = > +@GMAKE_TRUE@endif Has this been tested without depmode=gcc3 ? I haven't tried it, but I can't find where $(depcomp) is set. Andrew