]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR target/53372: Don't ignore section attribute with address-space.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 17 Nov 2023 11:51:16 +0000 (12:51 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 17 Nov 2023 11:54:25 +0000 (12:54 +0100)
commit68221c54a9752dbf131c231413edfd21046f8dad
tree8aad76da5636e4d132c2fc4b00201490d0023c7c
parentba3f5b8465ef7b278ea33ff94cd85b9638058635
PR target/53372: Don't ignore section attribute with address-space.

gcc/
PR target/53372
* config/avr/avr.cc (avr_asm_named_section) [AVR_SECTION_PROGMEM]:
Only return some .progmem*.data section if the user did not
specify a section attribute.
(avr_section_type_flags) [avr_progmem_p]: Unset SECTION_NOTYPE
in returned section flags.

gcc/testsuite/
PR target/53372
* gcc.target/avr/pr53372-1.c: New test.
* gcc.target/avr/pr53372-2.c: New test.
gcc/config/avr/avr.cc
gcc/testsuite/gcc.target/avr/pr53372-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/avr/pr53372-2.c [new file with mode: 0644]