summaryrefslogtreecommitdiff
path: root/gcc/config/i386/xm-cygwin.h
diff options
context:
space:
mode:
authorMumit Khan <khan@xraylith.wisc.edu>1999-02-09 23:52:06 +0000
committerJeff Law <law@gcc.gnu.org>1999-02-09 16:52:06 -0700
commit2b9f972f5835e362de8040cf6ceb2c231ab09120 (patch)
tree831a4ecca51800bd58326c80f3fdd0517625144a /gcc/config/i386/xm-cygwin.h
parent82281fc2c1ac0709fe8ee1e425e647355b733a74 (diff)
downloadgcc-2b9f972f5835e362de8040cf6ceb2c231ab09120.tar.gz
cygwin.h (SUBTARGET_OVERRIDE_OPTIONS): New macro to ignore fpic/fPIC for windows32 targets.
* i386/cygwin.h (SUBTARGET_OVERRIDE_OPTIONS): New macro to ignore fpic/fPIC for windows32 targets. * i386/xm-cygwin.h (GET_ENV_PATH_LIST): Replace '\\' in windows32 paths with '/'. * i386/mingw32.h (CPP_SPEC): Define. (CPP_PREDEFINES): Add MINGW32 version id. * i386/crtdll.h (CPP_PREDEFINES): Likewise. From-SVN: r25121
Diffstat (limited to 'gcc/config/i386/xm-cygwin.h')
-rw-r--r--gcc/config/i386/xm-cygwin.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config/i386/xm-cygwin.h b/gcc/config/i386/xm-cygwin.h
index 4b166ebde75..e877665b47a 100644
--- a/gcc/config/i386/xm-cygwin.h
+++ b/gcc/config/i386/xm-cygwin.h
@@ -1,6 +1,6 @@
/* Configuration for GNU C-compiler for hosting on Windows NT.
using a unix style C library.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -47,9 +47,15 @@ do { \
if (_epath != NULL && *_epath != 0 \
&& cygwin32_posix_path_list_p (_epath)) \
{ \
+ char *p; \
_win32epath = (char *) xmalloc \
(cygwin32_posix_to_win32_path_list_buf_size (_epath)); \
cygwin32_posix_to_win32_path_list (_epath, _win32epath); \
+ for (p = _win32epath; p && *p; ++p) \
+ { \
+ if (*p == '\\') \
+ *p = '/'; \
+ } \
} \
(VAR) = _win32epath; \
} while (0)