]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: Add "const" attribute to avr built-in functions if possible.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 17 Jan 2025 12:14:51 +0000 (13:14 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 17 Jan 2025 15:19:15 +0000 (16:19 +0100)
commit6a9086b6f4d58065e717e7cfabe156419cd8cb99
tree6788c0400587887c538a537d0e191a1d08d5bdb8
parentf054c36c4fcb693e04411dc691ef4172479143d6
AVR: Add "const" attribute to avr built-in functions if possible.

gcc/
* config/avr/avr-c.cc (DEF_BUILTIN): Add ATTRS argument to macro
definition.
* config/avr/avr.cc: Same.
(avr_init_builtins) <attr_const>: New variable that can be used
as ATTRS argument in DEF_BUILTIN.
* config/avr/builtins.def (DEF_BUILTIN): Add ATTRS parameter
to all definitions.
gcc/config/avr/avr-c.cc
gcc/config/avr/avr.cc
gcc/config/avr/builtins.def