[Bug c/64347] New: constructor priorities are not supported in avr-gcc
cameron at tacklind dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 18 00:44:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64347
Bug ID: 64347
Summary: constructor priorities are not supported in avr-gcc
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cameron at tacklind dot com
In avr-gcc, if you try to add a priority to a constructor function, you get:
"error: constructor priorities are not supported"
Steps to reproduce:
# echo 'void init() __attribute__((constructor(TEST)));' > test.c
# echo 'int main() {return 0;}' >> test.c
Compiles with no errors
# gcc test.c -D TEST=1000
# avr-gcc test.c -D TEST=
Does not compile
# avr-gcc test.c -D TEST=1000
More information about the Gcc-bugs
mailing list