MSP430: Remove target-specific handling of the "persistent" attribute
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 23 Nov 2020 14:24:43 +0000 (14:24 +0000)
committerJozef Lawrynowicz <jozef.l@mittosystems.com>
Mon, 23 Nov 2020 14:29:41 +0000 (14:29 +0000)
commit77ee207e17d02e4aec502c6aedd9b0ba36a08de3
tree60d92acc8f0d8c268f546c72f42c4d9a038c8f04
parent692d3b772755b798cc527a80ca2d02e23bc4e2bf
MSP430: Remove target-specific handling of the "persistent" attribute

The "persistent" attribute is now handled generically, and does not
need specific support in the MSP430 back end.

gcc/ChangeLog:

* config/msp430/msp430.c (msp430_section_attr): Don't warn for "lower"
attribute used with "noinit" or "persistent" attributes.
(msp430_persist_attr): Remove.
(attr_lower_exclusions): Remove ATTR_PERSIST exclusion.
(attr_upper_exclusions): Likewise.
(attr_either_exclusions): Likewise.
(attr_persist_exclusions): Remove.
(msp430_attribute_table): Remove ATTR_PERSIST handling.
(msp430_handle_generic_attribute): Remove ATTR_PERSIST section conflict
handling.
(TARGET_ASM_INIT_SECTIONS): Remove.
(msp430_init_sections): Remove.
(msp430_select_section): Use default_elf_select_section for decls with
the "persistent" attribute.
(msp430_section_type_flags): Remove ".persistent" section handling.
* doc/extend.texi (MSP430 Variable Attributes): Remove "noinit" and
"persistent" documentation.

gcc/testsuite/ChangeLog:

* g++.target/msp430/data-attributes.C: Remove expected warnings for
"lower" attribute conflicts.
Adjust expected wording for "persistent" attribute misuse.
* gcc.target/msp430/data-attributes-2.c: Likewise.
* gcc.target/msp430/pr78818-auto-warn.c: Likewise.
gcc/config/msp430/msp430.c
gcc/doc/extend.texi
gcc/testsuite/g++.target/msp430/data-attributes.C
gcc/testsuite/gcc.target/msp430/data-attributes-2.c
gcc/testsuite/gcc.target/msp430/pr78818-auto-warn.c