OSDN Git Service

PR bootstrap/35273
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Feb 2008 19:55:39 +0000 (19:55 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Feb 2008 19:55:39 +0000 (19:55 +0000)
* config.build (build_file_translate): Set to `CMD //c' only if
it works.
* Makefile.in (build_file_translate): Improve comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132528 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in
gcc/config.build

index d88c21d..b045522 100644 (file)
@@ -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,
index be9faaa..a87e3bb 100644 (file)
@@ -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.
index 62486db..d081434 100644 (file)
@@ -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