This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
AVR function inlining cutoff
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: "GCC Bugs" <gcc-bugs at gcc dot gnu dot org>, avr-libc-dev at nongnu dot org
- Date: Thu, 22 Nov 2007 13:28:32 -0700
- Subject: AVR function inlining cutoff
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
With GCC r130284 --target=avr, a 116 byte static function that is
called twice is inlined even with -Os, effectively doubling the
function's footprint. I'd argue a function this large shouldn't even
be inlined with -O2. What is the size cutoff for inlining functions?
Can I modify it? If a code snippet would help troubleshoot this
matter, I can certainly send one along.
Cheers,
Shaun