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]
Other format: [Raw text]

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


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