OSDN Git Service

2012-05-09 Matthias Klose <doko@ubuntu.com>
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 16:02:34 +0000 (16:02 +0000)
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 16:02:34 +0000 (16:02 +0000)
        * gcc-ar.c (main): Don't check for execute bits for the plugin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187339 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc-ar.c

index e8d15b0..8d50bc5 100644 (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-08  Hans-Peter Nilsson  <hp@axis.com>
 
        PR target/53272
index d832b08..caae167 100644 (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);