patch to force POSIX pathname conversion (mostly on win32)

Chris Faylor cgf@cygnus.com
Sun Oct 31 23:33:00 GMT 1999


On Tue, Oct 12, 1999 at 02:08:04AM -0600, Jeffrey A Law wrote:
>  In message <199904240057.TAA28138@modi.xraylith.wisc.edu>you write:
>  > This is the first pass at adding macro to modify filenames that are passed 
>  > to the GCC driver into POSIX form. Much needed by various POSIX emulations
>  > running on top of window32.
>  > 
>  > This defines a new macro, MAKE_POSIX, that is essentially a no-op for
>  > hosts that don't override it. I've provided a sample one for Cygwin in
>  > this patch. 
>  > 
>  > This is incomplete -- yet to handle cpplib -- but I'd like to know first
>  > if this is an acceptable approach before going forward. Please comment.
>  > 
>  > Diff against 1999-04-22 CVS. Bootstrap tested (native bootstraps on 
>  > i686-pc-linux-gnu and i586-pc-cygwin32, as well as cross and canadian 
>  > cross for Cygwin). Some testing to check that it doesn't screw up on
>  > hosts that don't provide MAKE_POSIX and on cygwin which does.
>  > 
>  > Fri Apr 23 18:43:40 1999  Mumit Khan  <khan@xraylith.wisc.edu>
>  > 
>  > 	* gcc.c (MAKE_POSIX): Define.
>  > 	(process_command): Use.
>  > 
>  > 	* cccp.c (MAKE_POSIX): Define.
>  > 	(main): Use.
>  > 	(read_name_map): Use.
>  > 	(new_include_prefix): Use.
>  > 
>  > 	* i386/xm-cygwin.h (MAKE_POSIX): Define.
>  > 	(GET_ENV_PATH_LIST): Use.
>[ Yes, this is a patch from April that I'm just now revisiting ... ]
>
>I wonder if we would be better off putting this into libiberty -- I find it
>hard to believe that GCC is the only program that needs to canonicalize
>filenames or pathnames.

I think that putting this functionality in libiberty is probably a good idea.
Then gdb could use it too.

-chris



More information about the Gcc-patches mailing list