This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: AVR: Support building AVR Linux targets
- From: nick clifton <nickc at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: chertykov at gmail dot com, aesok at post dot ru, eric dot weddington at atmel dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Aug 2013 17:19:41 +0100
- Subject: Re: RFA: AVR: Support building AVR Linux targets
- Authentication-results: sourceware.org; auth=none
- References: <871u5zqfi9 dot fsf at Cadeux dot fritz dot box> <Pine dot LNX dot 4 dot 64 dot 1308221634500 dot 3991 at digraph dot polyomino dot org dot uk> <52170FA1 dot 4080805 at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1308232209180 dot 12585 at digraph dot polyomino dot org dot uk>
Hi Joseph,
C. Draw up another patch that restricts the AVR patterns in config.gcc to
-none and -elf.
A and C - I think both changes should be applied.
OK - the patch for item A is already applied. Here is a proposed patch
for item C. I have not applied the patch as obvious because I was not
sure whether it was better to accept avr-*-elf or avr-*-elf*. I went
for the latter in case there were AVR ELF variants, but I defer to your
superior knowledge.
OK to apply ?
Cheers
Nick
gcc/ChangeLog
2013-08-27 Nick Clifton <nickc@redhat.com>
* config.gcc (AVR): Restrict allowed targets to RTEMS, ELF and
NONE.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 202021)
+++ gcc/config.gcc (working copy)
@@ -995,7 +995,7 @@
extra_gcc_objs="driver-avr.o avr-devices.o"
extra_objs="avr-devices.o avr-log.o"
;;
-avr-*-*)
+avr-*-elf* | avr-*-none)
tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h
avr/avr-stdint.h"
if test x${with_avrlibc} != xno; then
tm_file="${tm_file} ${cpu_type}/avrlibc.h"