Bug 92545 - avr: support ATmega devices from the 0-series
Summary: avr: support ATmega devices from the 0-series
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: unknown
: P4 enhancement
Target Milestone: 10.0
Assignee: Georg-Johann Lay
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-17 15:07 UTC by Georg-Johann Lay
Modified: 2019-12-19 09:31 UTC (History)
0 users

See Also:
Host:
Target: avr
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg-Johann Lay 2019-11-17 15:07:13 UTC
...like ATmega4808.
Comment 1 Georg-Johann Lay 2019-11-18 07:53:26 UTC
Author: gjl
Date: Mon Nov 18 07:52:55 2019
New Revision: 278387

URL: https://gcc.gnu.org/viewcvs?rev=278387&root=gcc&view=rev
Log:
	Add support for AVR devices from the 0-series.
	PR target/92545
	* 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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr-arch.h
    trunk/gcc/config/avr/avr-devices.c
    trunk/gcc/config/avr/avr-mcus.def
    trunk/gcc/config/avr/gen-avr-mmcu-specs.c
    trunk/gcc/config/avr/gen-avr-mmcu-texi.c
    trunk/gcc/config/avr/specs.h
Comment 2 Georg-Johann Lay 2019-11-18 07:55:01 UTC
Author: gjl
Date: Mon Nov 18 07:54:30 2019
New Revision: 278388

URL: https://gcc.gnu.org/viewcvs?rev=278388&root=gcc&view=rev
Log:
	PR target/92545
	* doc/avr-mmcu.texi: Regenerate.

Modified:
    trunk/gcc/doc/avr-mmcu.texi
Comment 3 Georg-Johann Lay 2019-11-18 07:57:49 UTC
Added.
Comment 4 Georg-Johann Lay 2019-11-18 08:19:39 UTC
Author: gjl
Date: Mon Nov 18 08:19:08 2019
New Revision: 278389

URL: https://gcc.gnu.org/viewcvs?rev=278389&root=gcc&view=rev
Log:
	PR target/92545
	* config/avr/gen-avr-mmcu-specs.c (print_mcu)
	[link_pm_base_address]: Symbol name is __RODATA_PM_OFFSET__.


Modified:
    trunk/gcc/config/avr/gen-avr-mmcu-specs.c
Comment 5 Georg-Johann Lay 2019-11-20 08:20:15 UTC
Author: gjl
Date: Wed Nov 20 08:19:44 2019
New Revision: 278478

URL: https://gcc.gnu.org/viewcvs?rev=278478&root=gcc&view=rev
Log:
	Make 0-series device specs work with older versions of avr-gcc.
	PR target/92545
	* config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
	* config/avr/gen-avr-mmcu-specs.c (print_mcu)
	<*link_pm_base_address>: Don't write spec.
	<*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/gen-avr-mmcu-specs.c
    trunk/gcc/config/avr/specs.h
Comment 6 Georg-Johann Lay 2019-12-19 08:59:59 UTC
Author: gjl
Date: Thu Dec 19 08:59:28 2019
New Revision: 279564

URL: https://gcc.gnu.org/viewcvs?rev=279564&root=gcc&view=rev
Log:
	Backport support for some AVR devices from avrxmega3 family
	from SVN trunk r279309, r278387, r278389, r278478.
	PR target/92545
	* 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/gen-avr-mmcu-specs.c (print_mcu)
	<*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
	for spec definitions.
	* config/avr/gen-avr-mmcu-texi.c: Rewrite.
	* doc/avr-mmcu.texi: Regenerate.


Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/config/avr/avr-arch.h
    branches/gcc-9-branch/gcc/config/avr/avr-devices.c
    branches/gcc-9-branch/gcc/config/avr/avr-mcus.def
    branches/gcc-9-branch/gcc/config/avr/gen-avr-mmcu-specs.c
    branches/gcc-9-branch/gcc/config/avr/gen-avr-mmcu-texi.c
    branches/gcc-9-branch/gcc/doc/avr-mmcu.texi
Comment 7 Georg-Johann Lay 2019-12-19 09:31:39 UTC
Author: gjl
Date: Thu Dec 19 09:31:07 2019
New Revision: 279565

URL: https://gcc.gnu.org/viewcvs?rev=279565&root=gcc&view=rev
Log:
	Backport support for some AVR devices from avrxmega3 family
	from SVN trunk r279309, r278387, r278389, r278478.

	PR target/92545
	* 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/gen-avr-mmcu-specs.c (print_mcu)
	<*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
	for spec definitions.
	* config/avr/gen-avr-mmcu-texi.c: Rewrite.
	* doc/avr-mmcu.texi: Regenerate.

Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/avr/avr-arch.h
    branches/gcc-8-branch/gcc/config/avr/avr-devices.c
    branches/gcc-8-branch/gcc/config/avr/avr-mcus.def
    branches/gcc-8-branch/gcc/config/avr/gen-avr-mmcu-specs.c
    branches/gcc-8-branch/gcc/config/avr/gen-avr-mmcu-texi.c
    branches/gcc-8-branch/gcc/doc/avr-mmcu.texi