The lto plugin is installed without x bits set, but gcc-ar.c still checks for the execute bits. There is no need to have the lto plugin to have the x bits set, so just check that it is readable.
Ok for the trunk and the 4.7 branch? Matthias
* (main): Don't check for execute bits for the plugin. --- gcc/gcc-ar.c +++ gcc/gcc-ar.c @@ -70,7 +70,7 @@ 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);