gcc-ar.c (main): Don't check for execute bits for the plugin.

2012-05-09  Matthias Klose  <doko@ubuntu.com>

        * gcc-ar.c (main): Don't check for execute bits for the plugin.

From-SVN: r187338
This commit is contained in:
Matthias Klose 2012-05-09 16:00:58 +00:00 committed by Matthias Klose
parent c75e90f3d8
commit b0cd199e8d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-05-09 Matthias Klose <doko@ubuntu.com>
* gcc-ar.c (main): Don't check for execute bits for the plugin.
2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
* tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):

View File

@ -70,7 +70,7 @@ main(int ac, char **av)
dir_separator,
LTOPLUGINSONAME,
NULL);
if (access (plugin, X_OK))
if (access (plugin, R_OK))
{
fprintf (stderr, "%s: Cannot find plugin %s\n", av[0], plugin);
exit (1);