c/9743: -MF only writes the info from the very last of multiple C files.
Neil Booth
neil@daikokuya.co.uk
Tue Feb 18 21:01:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list