From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9293 invoked by alias); 25 Mar 2008 20:51:59 -0000 Received: (qmail 9284 invoked by uid 22791); 25 Mar 2008 20:51:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Mar 2008 20:51:42 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m2PKpews015379; Tue, 25 Mar 2008 16:51:40 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2PKpedI006073; Tue, 25 Mar 2008 16:51:40 -0400 Received: from opsy.redhat.com (vpn-14-254.rdu.redhat.com [10.11.14.254]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2PKpe4x010895; Tue, 25 Mar 2008 16:51:40 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id DF7EA3780C2; Tue, 25 Mar 2008 13:56:00 -0600 (MDT) To: Ralf Wildenhues Cc: Paolo Bonzini , Gcc Patch List Subject: Re: Patch: automatic dependencies for gcc References: <47DFCB97.1000908@gnu.org> <47E3E979.7020904@gnu.org> <47E89A0C.50607@gnu.org> <47E91C7E.8060506@gnu.org> <20080325202425.GD18200@ins.uni-bonn.de> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Tue, 25 Mar 2008 21:44:00 -0000 In-Reply-To: <20080325202425.GD18200@ins.uni-bonn.de> (Ralf Wildenhues's message of "Tue\, 25 Mar 2008 21\:24\:25 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2008-03/txt/msg01535.txt.bz2 >>>>> "Ralf" == Ralf Wildenhues writes: Ralf> Yet another thing: you removed this from objcp/Make-lang.in: [...] Ralf> which leads to a build failure: Here is the fix I'm checking in. Two bugs: used the wrong base for the name of _OBJS, and the source file for this comes from a different directory, so needs an explicit rule. This still doesn't fully build, due to earlier reported problems with ObjC++, but at least make tries to run the compile now. BTW I had not noticed before that objcp-warn also passes in a -D and some -I options. This does not seem very robust to me. Tom objcp/ChangeLog: 2008-03-25 Tom Tromey * Make-lang.in (obj-c++_OBJS): Rename from objcp_OBJS. (objcp/objcp-act.o): Restore target. Index: objcp/Make-lang.in =================================================================== --- objcp/Make-lang.in (revision 133526) +++ objcp/Make-lang.in (working copy) @@ -51,7 +51,7 @@ OBJCXX_OBJS = objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o \ $(CXX_AND_OBJCXX_OBJS) -objcp_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o +obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \ $(LIBDEPS) @@ -65,6 +65,10 @@ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS) $(GMPLIBS) +# Note that the source file is in a different directory. +objcp/objcp-act.o: objc/objc-act.c + $(COMPILE) $< + po-generated: #