aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-02-21 19:55:39 +0000
committerRalf Wildenhues <rwild@gcc.gnu.org>2008-02-21 19:55:39 +0000
commit703fdf5a60d468c1945e9a942872355f10c6b805 (patch)
tree1b543889a47507112966066b615a9bdb63621d72 /gcc
parent0ca16832791b9b3d5962af3e25b300fc7578f304 (diff)
downloadgcc-703fdf5a60d468c1945e9a942872355f10c6b805.zip
gcc-703fdf5a60d468c1945e9a942872355f10c6b805.tar.gz
gcc-703fdf5a60d468c1945e9a942872355f10c6b805.tar.bz2
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: r132528
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/Makefile.in8
-rw-r--r--gcc/config.build8
3 files changed, 18 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d88c21d..b045522 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ 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-21 Jan Hubicka <jh@suse.cz>
* predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index be9faaa..a87e3bb 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.
@@ -253,7 +253,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 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