gcc * config/msp430/msp430.c (ATTR_NOINIT): New constant.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Oct 2015 16:26:22 +0000 (16:26 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 6 Oct 2015 16:26:22 +0000 (16:26 +0000)
commit90bc48789b8ca036a728396de3d26b6a2b6a60e8
treecab0ca94b0c4571ec5452234d295d64177c9f136
parenteaec70cd8bb0d06d550878428a961a41e755f213
gcc * config/msp430/msp430.c (ATTR_NOINIT): New constant.

(ATTR_PERSIST): New constant.
(msp430_data_attr): New function - verifies an attribute that only
applies to variables.
(msp430_attributes): Add noinit and persistent attributes.
(noinit_section): New variable.
(presis_section): New variable.
(TARGET_ASM_INIT_SECTIONS): Define.
(msp430_init_sections): New function - initialises the noinit and
persist section variables.
(msp430_select_section): Add support for noinit and persist
attributes.
(msp430_section_type_flags): Likewise.
* doc/extend.texi:  Document the reent, critical, wakeup, noinit
and persistent attributes.

tests * gcc.target/msp430: New directory.
* gcc.target/msp430/msp430.exp: New file.  Runs MSP430 specific
tests.
* gcc.target/msp430/data-attributes.c: New file.  Checks the
noinit and persistent data attributes.

From-SVN: r228531
gcc/ChangeLog
gcc/config/msp430/msp430.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/msp430/data-attributes.c [new file with mode: 0644]
gcc/testsuite/gcc.target/msp430/msp430.exp [new file with mode: 0644]