This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/60588] AVR target does not support init_priority attribute


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++)();
    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]