This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Import include/filenames.h from BFD (Windows/DJGPP testersneeded)
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Andris Pavenis <pavenis at latnet dot lv>
- Cc: gcc-patches at gcc dot gnu dot org, DJ Delorie <dj at redhat dot com>
- Date: Tue, 01 Jul 2003 00:55:12 -0700
- Subject: Re: Import include/filenames.h from BFD (Windows/DJGPP testersneeded)
- References: <87ptkvfk6v.fsf@egil.codesourcery.com><200307010955.17043.pavenis@latnet.lv>
Andris Pavenis <pavenis@latnet.lv> writes:
> On Monday 30 June 2003 22:18, Zack Weinberg wrote:
>> This patch brings over include/filenames.h from BFD and changes all
>> the apposite locations to use it. I have bootstrapped it on
>> i686-linux with no problem, but I need help testing it on Windows
>> and/or DJGPP hosts.
>
> One more related thing:
>
> libiberty/make-relative-prefix.c uses case sensitive comparisson for
> filenames. In thee case we should (fMSDOS, Windows) use strcasecmp()
> instead of strcmp(). strcasecmp() is already present in libiberty, so it
> should not be a problem. Perhaps it could be done by some macro
> with the defaulting to strcmp().
filenames.h defines FILENAME_CMP which does precisely this. Wanna
submit a patch, once I get this one laid down?
zw