diff options
author | Joseph Myers <joseph@codesourcery.com> | 2008-05-21 16:40:48 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2008-05-21 16:40:48 +0100 |
commit | fb291f50a0ac587602811bb0b60fd8c12e495f81 (patch) | |
tree | cc85e796920387ce7d561f838e54cf7672ee4c88 /gcc | |
parent | dae4174e53945378f6878632e75e4c0f7a7679c3 (diff) | |
download | gcc-fb291f50a0ac587602811bb0b60fd8c12e495f81.zip gcc-fb291f50a0ac587602811bb0b60fd8c12e495f81.tar.gz gcc-fb291f50a0ac587602811bb0b60fd8c12e495f81.tar.bz2 |
* collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
From-SVN: r135721
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/collect2.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 822d9c1..1d13768 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-05-21 Joseph Myers <joseph@codesourcery.com> + + * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH. + 2008-05-21 Tom Tromey <tromey@redhat.com> * ggc-zone.c (lookup_page_table_if_allocated): New function. diff --git a/gcc/collect2.c b/gcc/collect2.c index af8bc79..531b122 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) { |