Mail Archives: djgpp-workers/2001/03/20/05:32:51
On 20 Mar 2001, at 11:07, Eli Zaretskii wrote:
>
> On Tue, 20 Mar 2001 pavenis AT lanet DOT lv wrote:
> > 1) leave things as they are. So one need LFN to use gcov.exe
> >
> > 2) apply my patch (only using basename(gcov_file_name) instead of
> > gcov_file_name as start value when looking for 1st dot and know
> > that somebody may run into trouble on non LFN system with veird
> > extensions. I think one can find many other situation when he can
> > destroy existing files.
>
> I think 2) is okay, provided that we document how these names are
> produced, so that users could figure out what files will be overwritten.
Well added note to readme.DJGPP in gcc2953s2.zip together with
updated patch for gcov.c, so it will be in next build ...
> > Tested: I'm getting foo.da, foo.bb and foo.bbg. So also here the
> > conflicts are possible (foo.c and foo.h ==> foo.da, foo.bb, ...)
>
> What happens on Unix? Do they get foo.c.da and foo.h.da instead? If so,
> we could use the same strategy as with .gcov here.
Tested on Linux.
-rwxr-xr-x 1 andris users 38772 Mar 20 09:17 hello*
-rw-r--r-- 1 andris users 108 Mar 20 09:17 hello.bb
-rw-r--r-- 1 andris users 136 Mar 20 09:17 hello.bbg
-rw-r--r-- 1 andris users 78 Mar 20 09:17 hello.cc
-rw-r--r-- 1 andris users 120 Mar 20 09:29 hello.cc.gcov
-rw-r--r-- 1 andris users 40 Mar 20 09:17 hello.da
Andris
- Raw text -