Patchwork Build broken due to "[PATCH] Add gcc-ar/nm/ranlib wrappers for slim LTO v2"

login
register
mail settings
Submitter Andi Kleen
Date Oct. 29, 2011, 8:09 a.m.
Message ID <20111029080948.GA14103@one.firstfloor.org>
Download mbox | patch
Permalink /patch/122529/
State New
Headers show

Comments

Andi Kleen - Oct. 29, 2011, 8:09 a.m.
> This broke cross to cris-elf and I guess many other targets
> with TOT binutils, as follows:
> 
> mv -f Tlto-wrapper lto-wrapper

Oops.  Can you please confirm this patch fixes it?

-Andi
Andi Kleen - Oct. 29, 2011, 9:24 a.m.
On Sat, Oct 29, 2011 at 10:09:48AM +0200, Andi Kleen wrote:
> > This broke cross to cris-elf and I guess many other targets
> > with TOT binutils, as follows:
> > 
> > mv -f Tlto-wrapper lto-wrapper
> 
> Oops.  Can you please confirm this patch fixes it?

I committed the patch with ChangeLog as as obvious now, after running
a full test and testing the if path manually.
-Andi

> 
> -Andi
> 
> diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
> index fc7e4a2..1e86d20 100644
> --- a/gcc/gcc-ar.c
> +++ b/gcc/gcc-ar.c
> @@ -29,6 +29,7 @@ along with GCC; see the file COPYING3.  If not see
>  
>  static const char standard_libexec_prefix[] = STANDARD_LIBEXEC_PREFIX;
>  static const char standard_bin_prefix[] = STANDARD_BINDIR_PREFIX;
> +static const char *const target_machine = TARGET_MACHINE;
>  
>  static const char dir_separator[] = { DIR_SEPARATOR, 0 };
>  
>

Patch

diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
index fc7e4a2..1e86d20 100644
--- a/gcc/gcc-ar.c
+++ b/gcc/gcc-ar.c
@@ -29,6 +29,7 @@  along with GCC; see the file COPYING3.  If not see
 
 static const char standard_libexec_prefix[] = STANDARD_LIBEXEC_PREFIX;
 static const char standard_bin_prefix[] = STANDARD_BINDIR_PREFIX;
+static const char *const target_machine = TARGET_MACHINE;
 
 static const char dir_separator[] = { DIR_SEPARATOR, 0 };