This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/60588] AVR target does not support init_priority attribute
- From: "charles at cnlohr dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 May 2014 18:21:02 +0000
- Subject: [Bug target/60588] AVR target does not support init_priority attribute
- Auto-submitted: auto-generated
- References: <bug-60588-4 at http dot gcc dot gnu dot org/bugzilla/>
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++)();
}