This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/31362] gcc should not inline functions with 'section' attribute



------- Comment #12 from thutt at vmware dot com  2007-03-26 17:46 -------
I respectfully submit that I think you guys are missing the point.

    The problem isn't that the compiler is inlining functions which
    are called once, the problem is that the compiler is inlining a
    function which I told it not to put into the '.text' section.

I fully understand that there are many ways to make gcc *not* inline
the function (noinline attribute, not static, call more than once,
take it's address), and I've already done that.

If I tell gcc to place code or data into another section, then it
should do that -- always.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31362


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]