Is there a reason why avr-gcc does not support constructor priority (both in C and C++ worlds)?
David Fernandez <[email protected]>
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I've been trying to use both the attributes "init_priority" for C++, and
"constructor" for C, with priority numbers, in atxmega{16,32}a4u, and
the compiler complains saying "error: 'init_priority' attribute is not
supported on this platform", or "error: constructor priorities are not
supported".
In the linker scripts, the constructors are sorted by filename... I
wonder if there is a reason not to support this, or if it is that people
have not got to it yet, or if it is because the gcc version I'm using
(4.8.1).
Anybody knows anything about that?
Regards.
David