summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 15:40:48 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 15:40:48 +0000
commitf3340cb8e61895d39d222ae00e455f8e6d018fe2 (patch)
treecc85e796920387ce7d561f838e54cf7672ee4c88 /gcc/collect2.c
parentdfecde36dddd77b80db5b9848187ad3f982960ba (diff)
downloadgcc-f3340cb8e61895d39d222ae00e455f8e6d018fe2.tar.gz
* collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index af8bc799a38..531b1228855 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -605,11 +605,7 @@ find_a_file (struct path_prefix *pprefix, const char *name)
/* Determine the filename to execute (special case for absolute paths). */
- if (*name == '/'
-#ifdef HAVE_DOS_BASED_FILE_SYSTEM
- || (*name && name[1] == ':')
-#endif
- )
+ if (IS_ABSOLUTE_PATH (name))
{
if (access (name, X_OK) == 0)
{