avr-arch.h (avr_mcu_t): Add flash_size member.
authorPitchumani Sivanupandi <pitchumani.s@atmel.com>
Tue, 29 Nov 2016 16:35:43 +0000 (16:35 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Tue, 29 Nov 2016 16:35:43 +0000 (19:35 +0300)
commit6a109bfcec4a3d1c8505a918b8cdaaa4d10ebb39
treeaa417a7bf6d4d5da77169560da33a67fb9871097
parent8bf3cdff10beadb7072b0841be3fc7381d3218bd
avr-arch.h (avr_mcu_t): Add flash_size member.

* config/avr/avr-arch.h (avr_mcu_t): Add flash_size member.
* config/avr/avr-devices.c(avr_mcu_types): Add flash size info.
* config/avr/avr-mcu.def: Likewise.
* config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded prefix
check to find wrap-around value, instead use MCU flash size. For 8k flash
devices, update link_pmem_wrap spec string to add --pmem-wrap-around=8k.
* config/avr/specs.h: Remove link_pmem_wrap from LINK_RELAX_SPEC and
add to linker specs (LINK_SPEC) directly.

From-SVN: r242966
gcc/ChangeLog
gcc/config/avr/avr-mcus.def