aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2025-03-21 14:29:13 +0100
committerGeorg-Johann Lay <avr@gjlay.de>2025-03-22 17:47:36 +0100
commitf529f3d0ecde48e785ed792b24ae2fce635c5b55 (patch)
treec6d2c5496449f2e754bddf8bd2471682a5ee0f51 /gcc/common
parentdf5fa3a3d0d7f2413c832548c88f76dfe67802fd (diff)
downloadgcc-f529f3d0ecde48e785ed792b24ae2fce635c5b55.zip
gcc-f529f3d0ecde48e785ed792b24ae2fce635c5b55.tar.gz
gcc-f529f3d0ecde48e785ed792b24ae2fce635c5b55.tar.bz2
AVR: Add attribute "used" for code in .initN and .initN sections.
Code in .initN and .initN sections is never called since these sections are special and part of the startup resp. shutdown code. This patch adds attribute "used" so they won't be optimized out. gcc/ * config/avr/avr.cc (avr_attrs_section_name): New function. (avr_insert_attributes): Add "used" attribute to functions in .initN and .finiN.
Diffstat (limited to 'gcc/common')
0 files changed, 0 insertions, 0 deletions