gcc.c (main): Search for liblto_plugin.so with mode R_OK.

2010-04-18  Matthias Klose  <doko@ubuntu.com>

        * gcc.c (main): Search for liblto_plugin.so with mode R_OK.

From-SVN: r158494
This commit is contained in:
Matthias Klose 2010-04-18 17:44:42 +00:00 committed by Matthias Klose
parent 896ee672bf
commit b3c359652e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-04-18 Matthias Klose <doko@ubuntu.com>
* gcc.c (main): Search for liblto_plugin.so with mode R_OK.
2010-04-18 Ira Rosen <irar@il.ibm.com>
PR tree-optimization/43771

View File

@ -7495,7 +7495,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
fuse_linker_plugin + strlen (fuse_linker_plugin), 0))
{
linker_plugin_file_spec = find_a_file (&exec_prefixes,
"liblto_plugin.so", X_OK,
"liblto_plugin.so", R_OK,
false);
if (!linker_plugin_file_spec)
fatal ("-fuse-linker-plugin, but liblto_plugin.so not found");