2016-12-01 12:26 GMT+03:00 Georg-Johann Lay <a...@gjlay.de>: > The introduction of the flash_size field in avr_mcu_t rendered the n_flash > field redundant. This patch computes the value of n_flash as needed from > flash_size and cleans up n_flash. > > Ok for trunk? > > Johann > > gcc/ > * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field. > * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument. > * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash. > * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use > avr_mcu_types.flash_size to compute default value. > * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use > mcu->flash_size to compute value for spec. > >
Approved.