This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin POSIX pathname fix


On Thu, Apr 22, 1999 at 09:28:21PM -0500, Mumit Khan wrote:
>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.

I *always* prefer this kind of approach to ifdef'ing something in the body
of the code.  It sounds good to me, but it does add another host-specific
macro so I could also understand objections there...

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]