public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/9743: -MF only writes the info from the very last of multiple C files.
@ 2003-02-18 21:06 Neil Booth
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Booth @ 2003-02-18 21:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c/9743: -MF only writes the info from the very last of multiple C files.
@ 2003-02-18 14:26 rayvt
  0 siblings, 0 replies; 2+ messages in thread
From: rayvt @ 2003-02-18 14:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9743
>Category:       c
>Synopsis:       -MF only writes the info from the very last of multiple C files.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 18 14:26:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ray Van Tassle
>Release:        3.2.2 & 3.2.1
>Organization:
>Environment:
Reading specs from /users/rayvt/local/gcc322/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/specs
Configured with: ../configure --prefix=/users/rayvt/local/gcc322
Thread model: posix
gcc version 3.2.2
>Description:
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.
>How-To-Repeat:
> gcc -MG -MM -MF deps.mk ../src/ip_inbound.c ../src/ip_mobile_info.c ../src/cfg_layer.c 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-18 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-18 21:06 c/9743: -MF only writes the info from the very last of multiple C files Neil Booth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-18 14:26 rayvt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).