[Bug target/60588] AVR target does not support init_priority attribute
charles at cnlohr dot com
gcc-bugzilla@gcc.gnu.org
Mon May 12 18:21:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60588
Charles Lohr <charles at cnlohr dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |charles at cnlohr dot com
--- Comment #1 from Charles Lohr <charles at cnlohr dot com> ---
I am frustrated by this as well, and was hoping that since both AVRs and ARMs
are bare metal systems, it could be done in a similar way. With ARMs, the
constructors are placed into a list that can be manually executed after main()
starts.
I.e.
constructor_t *fn = _init_array_start;
while(fn < _init_array_end)
{
(*fn++)();
}
More information about the Gcc-bugs
mailing list