http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50876

--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> 
2011-10-27 11:51:06 UTC ---
On Thu, 27 Oct 2011, iains at gcc dot gnu.org wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50876
> 
> --- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> 2011-10-27 
> 10:54:50 UTC ---
> I applied the patch at http://gcc.gnu.org/ml/gcc-patches/2011-10/msg02441.html
>  (no difference to the problem at hand).
> 
> The only definite thing I've spotted so far is in the args file:
> 
> -B\ /Volumes/ScratchCS/gcc-4-7-trunk-build/gcc/
> 
> if I try to do
> ./gcc/xgcc @<path/to/args/file 
> with this in it; xgcc doesn't find lto1.
> 
> If I replace the escaped space with either a space or a new line it works.

Can you try

Index: gcc/lto-wrapper.c
===================================================================
--- gcc/lto-wrapper.c   (revision 180563)
+++ gcc/lto-wrapper.c   (working copy)
@@ -416,7 +416,8 @@ run_gcc (unsigned argc, char *argv[])
        }

       /* Pass the option on.  */
-      *argv_ptr++ = option->orig_option_with_args_text;
+      for (i = 0; i < option->canonical_option_num_elements; ++i)
+       *argv_ptr++ = option->canonical_option[i];
     }

   if (no_partition)

?

Reply via email to