[Bug middle-end/122516] [avr] 'retain' function attribute ignored even though HAVE_GAS_SHF_GNU_RETAIN
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 6 19:27:16 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122516
--- Comment #18 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:
https://gcc.gnu.org/g:d5ede6fff1ff19738d60350856ab852522809068
commit r16-5064-gd5ede6fff1ff19738d60350856ab852522809068
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Thu Nov 6 20:20:49 2025 +0100
AVR: target/122516: Make attribute "retain" work.
Due to some quirks in crtstuff.c, attribute "retain" requires
some features that avr doesn't implement -- even though it
doesnt't even use crtstuff. This patch works around that.
PR target/122516
gcc/
* config/avr/elf.h (SUPPORTS_SHF_GNU_RETAIN): Define if
HAVE_GAS_SHF_GNU_RETAIN.
More information about the Gcc-bugs
mailing list