Mail Archives: djgpp-workers/2000/05/16/19:18:19
> Ugh! Why can't Unix programmers learn that file names are not
> strings, and cannot be taken apart at will and compared literally??
The function does take into account drive names and the function is only used
once to set the exec prefix which is what tells gcc where to look for the
compiler.
> You *are* aware that this will all fall apart if the value of DJDIR
> changes while GCC runs, yes? Yes, I know that currently there's no
> such danger, but it's a trap waiting for its victim...
Already fixed.
> How important is the code that computes relative file names?
See above. I should also note that the code that only canonicalizes the paths
stored in gcc.c that gcc needs to find the compiler, assembler, linker,
include files, etc. Any other paths are left alone. So with a command line
'gcc -c /dev/env/DJDIR/sourcecode.c', the given filename is not
canonicalized.
Mark
- Raw text -