Patchwork fix cross build on powerpc*-*-freebsd

login
register
mail settings
Submitter Andreas Tobler
Date Sept. 28, 2012, 11:30 a.m.
Message ID <50658A67.8090606@fgznet.ch>
Download mbox | patch
Permalink /patch/187798/
State New
Headers show

Comments

Andreas Tobler - Sept. 28, 2012, 11:30 a.m.
Hi,

I didn't test building a cross compiler when I committed the port for 
powerpc64-*-freebsd. And now I struggled myself when I wanted to build 
an amd64-freebsd -> powerpc64-freebsd cross compiler.

With the below patch I'm able to do so.

Ok for trunk and 4.7 once I completed the test suite on both branches?

TIA,

Andreas

2012-09-28  Andreas Tobler  <andreast@fgznet.ch>

	* config.gcc: Replace 'host' with 'target' when configuring for
	powerpc64*-*-freebsd.

  		tmake_file="${tmake_file} rs6000/t-freebsd64"
Ian Taylor - Sept. 28, 2012, 3:21 p.m.
On Fri, Sep 28, 2012 at 4:30 AM, Andreas Tobler <andreast-list@fgznet.ch> wrote:
>
> 2012-09-28  Andreas Tobler  <andreast@fgznet.ch>
>
>         * config.gcc: Replace 'host' with 'target' when configuring for
>         powerpc64*-*-freebsd.

Counts as obvious.

OK in any case.

Thanks.

Ian
Andreas Tobler - Sept. 28, 2012, 3:35 p.m.
On 28.09.12 17:21, Ian Lance Taylor wrote:
> On Fri, Sep 28, 2012 at 4:30 AM, Andreas Tobler <andreast-list@fgznet.ch> wrote:
>>
>> 2012-09-28  Andreas Tobler  <andreast@fgznet.ch>
>>
>>          * config.gcc: Replace 'host' with 'target' when configuring for
>>          powerpc64*-*-freebsd.
>
> Counts as obvious.
>
> OK in any case.
>
> Thanks.

Thank you Ian!

I'll continue with testing and once I finished I'll commit to 4.7/trunk.

Andreas

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 191819)
+++ gcc/config.gcc	(working copy)
@@ -1919,7 +1919,7 @@ 
  	tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h"
  	extra_options="${extra_options} rs6000/sysv4.opt"
  	tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} 
rs6000/t-ppccomm"
-	case ${host} in
+	case ${target} in
  	     powerpc64*)
  	    	tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"