This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,avr] Fix canadian cross build fail
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Mon, 17 Sep 2012 16:22:22 +0400
- Subject: Re: [Patch,avr] Fix canadian cross build fail
- References: <5054CA3C.3020408@gjlay.de>
2012/9/15 Georg-Johann Lay <avr@gjlay.de>:
> Canadian cross build fails because the wrong compiler is used to compile
> gen-avr-mmcu-texi. This small tool must run on build and not on host, thus
> the right compiler is CC_FOR_BUILD.
>
> Just changing the compiler is not enough because files like system.h were
> dragged in that were configured for host, not for build.
>
> Therefore the patch factors out the structures/enums that are shared between
> the programs that run on host (compiler proper, driver) and gen-avr-mmcu-texi
> that runs on build.
>
> With the patch the compiler build fine, both as native cross
> (build=host!=target) and as canadian cross (build!=host!=target!=build).
>
> Moreover, I changed the string comparator in gen-avr-mmcu-texi.c to that
> it prints the devices in a more appropriate order with the AVR device name
> nomenclature.
>
> Ok to apply?
>
Approved.
Denis.