From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6032 invoked by alias); 18 Feb 2003 21:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6012 invoked by uid 71); 18 Feb 2003 21:06:01 -0000 Date: Tue, 18 Feb 2003 21:06:00 -0000 Message-ID: <20030218210601.6011.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Neil Booth Subject: Re: c/9743: -MF only writes the info from the very last of multiple C files. Reply-To: Neil Booth X-SW-Source: 2003-02/txt/msg00856.txt.bz2 List-Id: The following reply was made to PR c/9743; it has been noted by GNATS. From: Neil Booth To: rayvt@comm.mot.com, Tom Tromey Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: c/9743: -MF only writes the info from the very last of multiple C files. Date: Tue, 18 Feb 2003 21:01:22 +0000 rayvt@comm.mot.com wrote:- > If you do "gcc -MG -MM -MF deps.mk file1.c file2.c file3.c" > Then only the info for the last file (file3.c) is put in the output file (deps.mk). But if you do ">deps.mk" instead of "-MF", the info for all the files (1 & 2 & c) is there. > > It looks like maybe the file named by "-MF" is re-opened for write for each of the processed source files, and is therefore overwritten by each one. Tom, are you handling this in the Java front end? If not, do you have any good ideas? Neil.