cygwin POSIX pathname fix

Mumit Khan khan@xraylith.wisc.EDU
Thu Apr 22 19:28:00 GMT 1999


Chris Faylor <cgf@cygnus.com> writes:
> 
> Thank you! There should be more patches coming soon from Mumit which
> clean up, once-and-for-all, the confusion with gcc path support under
> cygwin.  Basically, I'd like gcc to output POSIX and only POSIX path
> names.  That seems to be the only sane way to ensure that things like
> configure and gdb work correctly.

Instead of introducing more host specific code in the front-end drivers,
I'm currently doing the following: use a POSIXIFY_PATHNAME macro that
you can define in host-specific files which will do the appropriate
conversion; for most of the hosts, it defaults to a macro that does
nothing, but for just about all the win32 variants, this will have host 
specific code in it do the right thing.

If this seems reasonable (or not), drop me a line.

Regards,
Mumit



More information about the Gcc-patches mailing list