-
- Downloads
Fix problems with the MSP430 port's handling of persistent data.
PR target/78818 gcc * config/msp430/msp430.c (msp430_data_attr): Check that it's possible for a variable to have a section before checking if the section has a name. Set section to.persistent if persistent attribute is set. Warn if .persistent attribute is used on an automatic variable. tests * gcc.target/msp430/pr78818-real.c: New template for tests. * gcc.target/msp430/pr78818-auto.c: New test. * gcc.target/msp430/pr78818-data-region.c: New test. * gcc.target/msp430/pr78818-data-sec.c: New test. * gcc.target/msp430/pr78818-auto-warn.c: New test. From-SVN: r249222
Showing
- gcc/ChangeLog 9 additions, 0 deletionsgcc/ChangeLog
- gcc/config/msp430/msp430.c 19 additions, 4 deletionsgcc/config/msp430/msp430.c
- gcc/testsuite/ChangeLog 9 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.target/msp430/pr78818-auto-warn.c 16 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/pr78818-auto-warn.c
- gcc/testsuite/gcc.target/msp430/pr78818-auto.c 5 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/pr78818-auto.c
- gcc/testsuite/gcc.target/msp430/pr78818-data-region.c 6 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/pr78818-data-region.c
- gcc/testsuite/gcc.target/msp430/pr78818-data-sec.c 7 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/pr78818-data-sec.c
- gcc/testsuite/gcc.target/msp430/pr78818-real.c 9 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/pr78818-real.c
Loading
Please register or sign in to comment