diff options
author | Mark Elbrecht <snowball3@usa.net> | 1999-04-10 04:27:16 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-09 22:27:16 -0600 |
commit | 509781a4d18e93e42b163d271fb5a47cdd9eac93 (patch) | |
tree | f18172ebf9899f2b5f68a983a1356b114443f93f /gcc/cppinit.c | |
parent | c44033714b2800977881fdb85cc7662c89eafbf1 (diff) | |
download | gcc-509781a4d18e93e42b163d271fb5a47cdd9eac93.zip gcc-509781a4d18e93e42b163d271fb5a47cdd9eac93.tar.gz gcc-509781a4d18e93e42b163d271fb5a47cdd9eac93.tar.bz2 |
collect2.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM in place of the DIR_SEPARATOR test.
* collect2.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM in place
of the DIR_SEPARATOR test.
Consider any file starting with a drivename to be absolute.
If the absolute filename test fails and EXECUTABLE_SUFFIX is
defined, append EXECUTABLE_SUFFIX to the file and try again.
* cppinit.c (base_name): Use HAVE_DOS_BASED_FILE_SYSTEM
in place of __MSDOS__ and _WIN32.
* cppfiles.c (simplify_pathname): Likewise.
* gcc.c (IS_DIR_SEPARATOR): Define new macro. Returns true if a
character is a directory separator.
(find_a_file): Use it.
(convert_filename): Likewise.
(process_command): Likewise.
(do_spec_1): Likewise.
(is_directory): Likewise.
(main): Likewise.
* prefix.c (IS_DIR_SEPARATOR): Define. Tests whether a character is
a directory separator.
(translate_name): Use it.
(update_path): Change DIR_SEPARATOR_2 to DIR_SEPARATOR. Fix
warning in block where '/' is changed to DIR_SEPARATOR.
* i386/xm-djgpp.h (DIR_SEPARATOR): Set to '/'.
(DIR_SEPARATOR_2): New macro. Set to '\'.
(HAVE_DOS_BASED_FILESYS): Define.
* i386/xm-mingw32.h: Updated copyright. Set
DIR_SEPARATOR_2 to '/'. Define HAVE_DOS_BASED_FILE_SYSTEM.
* i386/xm-os2.h: Likewise.
* winnt/xm-winnt.h: Likewise.
* i386/xm-dos.h: Likewise. Add copyright.
From-SVN: r26328
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 0c15143..7300800 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -430,7 +430,7 @@ base_name (fname) { char *s = (char *)fname; char *p; -#if defined (__MSDOS__) || defined (_WIN32) +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (ISALPHA (s[0]) && s[1] == ':') s += 2; if ((p = rindex (s, '\\'))) s = p + 1; #elif defined VMS |