diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2012-09-17 15:22:37 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2012-09-17 15:22:37 +0000 |
commit | e3cf7a9538c683494b4965fa3e70ff76b9e314c7 (patch) | |
tree | 92c612c0afc3dec11f361bf5f0e2430e4bc1c0ba /gcc/config/avr/avr-devices.c | |
parent | 78ab1ff46b119d7e5e3420999499689b90e73358 (diff) | |
download | gcc-e3cf7a9538c683494b4965fa3e70ff76b9e314c7.zip gcc-e3cf7a9538c683494b4965fa3e70ff76b9e314c7.tar.gz gcc-e3cf7a9538c683494b4965fa3e70ff76b9e314c7.tar.bz2 |
re PR target/54607 ([avr]: Canadian cross build fails because gen-avr-mmcu-texi.c is compiled with the wrong compiler)
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.
From-SVN: r191390
Diffstat (limited to 'gcc/config/avr/avr-devices.c')
-rw-r--r-- | gcc/config/avr/avr-devices.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/avr/avr-devices.c b/gcc/config/avr/avr-devices.c index 47cfefd..3ee1eff 100644 --- a/gcc/config/avr/avr-devices.c +++ b/gcc/config/avr/avr-devices.c @@ -18,10 +18,12 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ +#ifndef IN_GEN_AVR_MMCU_TEXI #include "config.h" #include "system.h" #include "coretypes.h" #include "tm.h" +#endif /* IN_GEN_AVR_MMCU_TEXI */ /* List of all known AVR MCU architectures. Order as of enum avr_arch from avr.h. */ |