This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31362] gcc should not inline functions with 'section' attribute
- From: "eweddington at cso dot atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2007 19:22:36 -0000
- Subject: [Bug c/31362] gcc should not inline functions with 'section' attribute
- References: <bug-31362-1331@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from eweddington at cso dot atmel dot com 2007-03-26 20:22 -------
FWIW, I agree with the OP. This will place a burden on users who work with
embedded systems such as the AVR. Special sections are sometimes needed in the
AVR to place code into a special bootloader area that gets relocated at link
time to a user defined address. Many times there is only a single function call
to the bootloader code. As the problem is described, there is a potential that
the bootloader call would be inlined, hence no longer properly in the section
that has to be relocated to a special address. Now the burden will be left to
the end user to figure out that they need to add noinline to work around a too
aggressive, and too stupid inliner.
--
eweddington at cso dot atmel dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eweddington at cso dot atmel
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31362