aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2009-06-23 23:14:11 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2009-06-23 23:14:11 +0400
commit59ab92d2918a7e7ee914bf86cff5bcbabb68d9b9 (patch)
tree32802b739934030c58f3589d23ed35b2f3eaede3 /gcc/config.gcc
parent33436e29779504361151f07a6a75970d03b5fe4c (diff)
downloadgcc-59ab92d2918a7e7ee914bf86cff5bcbabb68d9b9.zip
gcc-59ab92d2918a7e7ee914bf86cff5bcbabb68d9b9.tar.gz
gcc-59ab92d2918a7e7ee914bf86cff5bcbabb68d9b9.tar.bz2
config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and extra_objs.
* config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and extra_objs. * config/avr/avr.c (avr_current_device): New variable. (avr_arch_types, avr_mcu_types): Move to avr-deveces.c. (avr_arch, mcu_type_s): Move to avr.h. * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and default_data_section_start fields. (avr_arch): Moved from avr.c. (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and library_name fields. (avr_current_device, avr_mcu_types, avr_arch_types, avr_device_to_arch, avr_device_to_data_start, avr_device_to_startfiles, avr_device_to_devicelib): Declare. (EXTRA_SPEC_FUNCTIONS): Define. (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker options mapping. Use device_to_arch and device_to_data_start insted. (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils. (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove. * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules. * config/avr/driver-avr.c: New file. * config/avr/avr-devices.c: New file. From-SVN: r148868
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 0105fcb..19afd1c 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -802,10 +802,14 @@ arm-*-pe*)
avr-*-rtems*)
tm_file="avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
tmake_file="avr/t-avr t-rtems avr/t-rtems"
+ extra_gcc_objs="driver-avr.o avr-devices.o"
+ extra_objs="avr-devices.o"
;;
avr-*-*)
tm_file="avr/avr.h dbxelf.h newlib-stdint.h"
use_gcc_stdint=wrap
+ extra_gcc_objs="driver-avr.o avr-devices.o"
+ extra_objs="avr-devices.o"
;;
bfin*-elf*)
tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"