Georg-Johann Lay <a...@gjlay.de> writes:

> For code in .initN and .finiN there are no calls, hence let the
> compiler add "used" attribute.
>
> Ok for trunk?

Ok.

Denis

>
> Johann
>
> --
>
> 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.

Reply via email to