This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9743: -MF only writes the info from the very last of multiple C files.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 18 Feb 2003 21:06:01 -0000
- Subject: Re: c/9743: -MF only writes the info from the very last of multiple C files.
- Reply-to: Neil Booth <neil at daikokuya dot co dot uk>
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.