This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Fix mingw32 bootstrap regression.
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Carlos O'Donell' <carlos at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Cc: 'Mark Mitchell' <mark at codesourcery dot com>, 'Bob Rossi' <bob_rossi at cox dot net>, cgf at gcc dot gnu dot org
- Date: Thu, 21 Dec 2006 21:10:05 +1300
- Subject: RE: [PATCH] Fix mingw32 bootstrap regression.
Carlos O'Donell wrote:
> The following patch fixes the boostrap regression for mingw32.
>
> We only do the substitution if the path prefix matches the configured
> prefix, otherwise we add the path as before (instead of asserting).
>
> To bootstrap a mingw32 toolchain you use either msys or
> cygwin. Both of
> these environments build gcc with cygwin style paths.
I did not notice the regression.
Using cygwin bash, I do this:
mount c:/mingw /mingw
Then, using cygwin bash, "configure --prefix=/mingw ... " in a dir on
C: drive, just works, because the native path is identical to the cygwin
path.
> Therefore --prefix
> is "/c/mingw" while the compiler, a native mingw32 executable, thinks
> the prefix is "c:/mingw". A simple string comparison does not work.
>
> Danny, Christopher, Do you see anything else that might be a
> problem on
> mingw?
<snip>
> 2006-12-19 Carlos O'Donell <carlos@codesourcery.com>
>
> PR bootstrap/30242
> * gcc/c-incpath.c (add_standard_paths): Only relocate
> paths that
> begin with the configured prefix.
>
mingw bootstraps for me before the patch and after. The patch is OK
with me.
Danny