This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap broken on mingw
> * Jakub Jelinek wrote on Wed, Feb 20, 2008 at 02:31:16PM CET:
> > On Wed, Feb 20, 2008 at 10:02:09PM +1300, Danny Smith wrote:
> > >
> > > The ' CMD //c' (with 2 slashes preceding the switch rather than the
> > > one documented for cmd by Micrsosoft) is a MSYS-ism that causes
> > > problems with non-MSYS shells (including the one provided by MS in
> > > its SFU package)
>
> > What exactly will do CMD //c echo do with non-MSYS shells?
With the Cygwin shell, it outputs nothing and exits successfully.
Thus, my first idea does not work, but the second seems to. Danny,
could you please test this patch for me[1]? FWIW, a quick negative
test is
cd gcc && rm gcc-vers.texi && make info pdf
If successful, OK to apply to trunk, 4.3, and 4.2 branch (in that
order)?
Thanks,
Ralf
[1] BTW, is there a w32 system in some build farm suitable for GCC
testing?
gcc/ChangeLog:
2008-02-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/35218
* config.build (build_file_translate): Set to `CMD //c' only if
it works.
diff --git a/gcc/config.build b/gcc/config.build
index 62486db..d081434 100644
--- a/gcc/config.build
+++ b/gcc/config.build
@@ -1,5 +1,5 @@
# GCC build-specific configuration file.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008
# Free Software Foundation, Inc.
#This file is part of GCC.
@@ -80,7 +80,11 @@ case $build in
i[34567]86-*-mingw32* | x86_64-*-mingw*)
build_xm_file=i386/xm-mingw32.h
build_exeext=.exe
- build_file_translate="CMD //C"
+ t=`(CMD //c echo /c) 2>/dev/null`
+ case $t in ?:*)
+ build_file_translate="CMD //c"
+ ;;
+ esac
;;
i[34567]86-pc-msdosdjgpp*)
build_xm_file=i386/xm-djgpp.h