Commit fb291f50 by Joseph Myers Committed by Joseph Myers

* collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.

From-SVN: r135721
parent dae4174e
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.
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment