From: Ralf Wildenhues Date: Thu, 21 Feb 2008 20:05:11 +0000 (+0000) Subject: re PR bootstrap/35273 (Bootstrap of mingw32 using non-MSYS shell broken) X-Git-Tag: prereleases/gcc-4.2.4-rc1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36127c69ee42e6d311b2de84c5713db449ce437;p=thirdparty%2Fgcc.git re PR bootstrap/35273 (Bootstrap of mingw32 using non-MSYS shell broken) PR bootstrap/35273 * config.build (build_file_translate): Set to `CMD //c' only if it works. * Makefile.in (build_file_translate): Improve comment. From-SVN: r132530 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a860ad1d78a..1a4d8837c8de 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-02-21 Ralf Wildenhues + + PR bootstrap/35273 + * config.build (build_file_translate): Set to `CMD //c' only if + it works. + * Makefile.in (build_file_translate): Improve comment. + 2008-02-20 Richard Guenther PR middle-end/35265 diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 003e89bf79f5..99a9081e24be 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2,8 +2,8 @@ # Run 'configure' to generate Makefile from Makefile.in # Copyright (C) 1987, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 1996, -# 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. +# 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +# 2008 Free Software Foundation, Inc. #This file is part of GCC. @@ -275,7 +275,9 @@ POD2MAN = pod2man --center="GNU" --release="gcc-$(version)" # do not correctly set the timestamp due to buggy versions of `utime' # in the kernel. So, we use `echo' instead. STAMP = echo timestamp > -# Translate absolute file names to w32 paths. +# If necessary (e.g., when using the MSYS shell on Microsoft Windows) +# translate the shell's notion of absolute pathnames to the native +# spelling. build_file_translate = @build_file_translate@ # Make sure the $(MAKE) variable is defined. diff --git a/gcc/config.build b/gcc/config.build index 84fab69f4e5c..5f48888c0415 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*) 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