This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,avr] Fix canadian cross build fail


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]