Patchwork RFA: AVR: Support building AVR Linux targets

login
register
mail settings
Submitter Nick Clifton
Date Aug. 27, 2013, 4:19 p.m.
Message ID <521CD19D.3010202@redhat.com>
Download mbox | patch
Permalink /patch/270154/
State New
Headers show

Comments

Nick Clifton - Aug. 27, 2013, 4:19 p.m.
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.

  	    tm_file="${tm_file} ${cpu_type}/avrlibc.h"

Patch

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