Change back end and add tests. Patch is attached.
Note: Patch will not apply if https://gcc.gnu.org/ml/gcc-patches/2017-04/msg01030.html has been committed. "$DEFAULT_CFLAGS" in msp430.exp would need to be changed to "$MSP430_DEFAULT_CFLAGS". If the patch is acceptable, I would appreciate if someone could commit it for me as I do not have write access. 2017-05-XX Jozef Lawrynowicz <joze...@somniumtech.com> gcc/ PR target/78818 * config/msp430/msp430.c (msp430_unique_section): Set section to .persistent if persistent attribute is set. gcc/testsuite PR target/78818 * gcc.target/msp430/msp430.exp: Search for tests in subfolders as well as main directory. * gcc.target/msp430/pr78818/pr78818-real.c: New template for tests. * gcc.target/msp430/pr78818/pr78818-auto.c: New test. * gcc.target/msp430/pr78818/pr78818-data-region.c: New test. * gcc.target/msp430/pr78818/pr78818-data-sec.c: Likewise.
0001-MSP430-Fix-persistent-attribute-not-placing-data-int.patch
Description: Binary data