aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gcc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f88ff21..024b7e6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/gcc.c b/gcc/gcc.c
index d219053..a25077e 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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");