[Bug c++/59394] Unused code generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59394 --- Comment #3 from Georg-Johann Lay --- Some more notes: If you don't want that small functions are being inlined, consider -fno-inline-small-functions. If a function is being inlined then it's body is still implemented except in the case where GCC can prove the body is never needed, for example if the function is static. If you implement two functions that result in the same code, GCC won't reuse the code for you. If you have redundant code, it is up to you to reuse it.
[Bug c++/59394] Unused code generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59394 Georg-Johann Lay changed: What|Removed |Added Target|AVR | Severity|major |normal
[Bug c++/59394] Unused code generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59394 Georg-Johann Lay changed: What|Removed |Added Attachment #31385|0 |1 is obsolete|| --- Comment #2 from Georg-Johann Lay --- Created attachment 31500 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31500&action=edit C++ source. Please follow the bug reporting instructions and don't include headers, especcialy ones that the common GCC developer does not have. Attached a source file that compiles fine without headers. And there is nothing avr specific here.
[Bug c++/59394] Unused code generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59394 --- Comment #1 from smalcom --- Created attachment 31386 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31386&action=edit generated assembly