re PR target/50739 ([avr] nameless error with -fmerge-all-constants)
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Wed, 6 Jul 2016 11:40:17 +0000 (11:40 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Wed, 6 Jul 2016 11:40:17 +0000 (11:40 +0000)
commit7b4e076985f2c41f93fb8d8f89183ef1244f98ae
treed0392d7b3b94a0bbf2cfc9cf05df88584da7b228
parenteb4432f7044e342fa527c2ca6c3991bebb92e874
re PR target/50739 ([avr] nameless error with -fmerge-all-constants)

Fix PR target/50739

This patch fixes a problem with fmerge-all-constants and the progmem
attribute.

gcc/

PR target/50739
* config/avr/avr.c (avr_asm_select_section): Strip off
SECTION_DECLARED from flags when calling get_section.

testsuite/

PR target/50739
* gcc.target/avr/pr50739.c: New test

From-SVN: r238041
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/pr50739.c [new file with mode: 0644]