This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch,avr] Add suport for devices from the 0-series.
- From: Jeff Law <law at redhat dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Denis Chertykov <chertykov at gmail dot com>
- Date: Sat, 16 Nov 2019 10:36:27 -0700
- Subject: Re: [patch,avr] Add suport for devices from the 0-series.
- References: <9e0f21c7-36fc-7335-faad-8aca9c1465fb@gjlay.de>
On 11/8/19 9:19 AM, Georg-Johann Lay wrote:
> Hi,
>
> this patch adds support for a few more AVR devices. Because the offset
> where flash is seen in RAM deviates from the settings for the family
> (and hence also from the linker script defaults), a new field in
> avr_mcu_t is needed to express this so that specs can be generated
> appropriately.
>
> The AVR_MCU lines in avr-mcus.def are longer than 80 chars because it's
> easier to maintain 1 device = 1 line entries. And it's easier to scan
> them with the awk scripts.
>
> Ok for trunk?
>
> Johann
>
> Add support for AVR devices from the 0-series.
>
> * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
> * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
> * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
> * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
> * config/avr/gen-avr-mmcu-specs.c (print_mcu)
> <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
> for spec definitions.
> * doc/avr-mmcu.texi: Regenerate.
OK
jeff