re PR target/78093 ([avr] New variable attribute "absdata" and option "-mabsdata...
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 14 Nov 2016 10:25:34 +0000 (10:25 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 14 Nov 2016 10:25:34 +0000 (10:25 +0000)
commitd97cca4a46aea362e15fbf3a35f5f8c4f66ded75
tree9cd791f5a1507d5f8d8f05ac6dd1c0e4b14a2f89
parent5230c3d825aee39da28c73705bc5852fae9f92a6
re PR target/78093 ([avr] New variable attribute "absdata" and option "-mabsdata" to enable LDS / STS on Reduced Tiny)

gcc/
PR target/78093
* doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
* config/avr/avr.opt (-mabsdata): New option.
* config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
* config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
-mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
* config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
* config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
spec depending on AVR_ISA_LDS.
* config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
gcc/testsuite/
PR target/78093
* gcc.target/avr/torture/tiny-absdata-2.c: New test.

From-SVN: r242379
gcc/ChangeLog
gcc/config/avr/avr-arch.h
gcc/config/avr/avr-mcus.def
gcc/config/avr/avr.c
gcc/config/avr/avr.opt
gcc/config/avr/gen-avr-mmcu-specs.c
gcc/config/avr/specs.h
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/torture/tiny-absdata-2.c [new file with mode: 0644]