* i386/xm-cygwin.h: change DIR_SEPARATOR to forward slash.
authorGeoffrey Noer <noer@cygnus.com>
Wed, 30 Dec 1998 21:53:20 +0000 (21:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 30 Dec 1998 21:53:20 +0000 (14:53 -0700)
From-SVN: r24445

gcc/ChangeLog
gcc/config/i386/xm-cygwin.h

index 015af043b58b0c8c5a601499b494c916d4515f22..33d4c7d57f5c3a72a2112af8c700c1a4eea42cf6 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec 30 22:50:13 1998  Geoffrey Noer  <noer@cygnus.com>
+
+       * i386/xm-cygwin.h: change DIR_SEPARATOR to forward slash.
+
 1998-12-30  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
 
        * loop.c (check_dbra_loop): While reversing the loop, if the
index 67040fea7ceb6935c24887e2ce859fe4693611b9..4b166ebde75f72f6380a91cbff44a67b771fc26b 100644 (file)
@@ -27,11 +27,16 @@ Boston, MA 02111-1307, USA. */
 #define HAVE_RINDEX 1
 #define HAVE_INDEX 1
 
-/* Even though we support "/", allow "\" since everybody tests both.  */
-#define DIR_SEPARATOR '\\'
+/* We support both "/" and "\" since everybody tests both but we
+   default to "/".  This is important because if gcc produces Win32
+   paths containing backslashes, make and configure may treat the
+   backslashes as escape characters.  Many Win32 programs use forward
+   slashes so using a forward slash shouldn't be problematic from the
+   perspective of wanting gcc to produce native Win32 paths. */
+#define DIR_SEPARATOR '/'
 
 /* If we allow both '/' and '\' as dir separators, then
-   allow both unix and win32 PATH syntax */
+   allow both unix and win32 PATH syntax. */
 #undef GET_ENV_PATH_LIST
 #define GET_ENV_PATH_LIST(VAR,NAME)                                    \
 do {                                                                   \