This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/9743: -MF only writes the info from the very last of multiple C files.


The following reply was made to PR c/9743; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.co.uk>
To: rayvt@comm.mot.com, Tom Tromey <tromey@cygnus.com>
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]