[Bug target/54607] [avr]: Canadian cross build fails because gen-avr-mmcu-texi.c is compiled with the wrong compiler

2012-09-17 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54607

Georg-Johann Lay  changed:

   What|Removed |Added

   Priority|P3  |P5
 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.8.0

--- Comment #2 from Georg-Johann Lay  2012-09-17 
15:43:30 UTC ---
Done.


[Bug target/54607] [avr]: Canadian cross build fails because gen-avr-mmcu-texi.c is compiled with the wrong compiler

2012-09-17 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54607

--- Comment #1 from Georg-Johann Lay  2012-09-17 
15:22:56 UTC ---
Author: gjl
Date: Mon Sep 17 15:22:37 2012
New Revision: 191390

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191390
Log:
PR target/54607
* config.gcc (tm_file,avr): Add avr/avr-arch.h.
* config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
compile.  Don't depend on TM_H.  Use CFLAGS_FOR_BUILD.
* config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
to...
* config/avr/avr-arch.h: ...this new file.
* config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
stdlib.h.
* comparator: Make letters smaller than digits.
* config/avr/avr-devices.c: Don't include headers if used in
gen-avr-mmcu-texi.c.
* doc/avr-mmcu.texi: Regenerate.


Added:
trunk/gcc/config/avr/avr-arch.h
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
trunk/gcc/config/avr/avr-devices.c
trunk/gcc/config/avr/avr.h
trunk/gcc/config/avr/gen-avr-mmcu-texi.c
trunk/gcc/config/avr/t-avr
trunk/gcc/doc/avr-mmcu.texi