This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20343] __always_inline__ fails on STL templatized function
- From: "yuri at tsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2005 19:37:31 -0000
- Subject: [Bug c++/20343] __always_inline__ fails on STL templatized function
- References: <20050306105227.20343.yuri@tsoft.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From yuri at tsoft dot com 2005-03-06 19:37 -------
> You need to define inline as inline __attribute__((always_inline))
Did this, same error message.
In my project I NEED to specify explicitely inlining of the functions.
Including STL since vector::operator[] or similar is being called zillion times
even when very aggressive gcc inlining options are set. Regular inlining
decisions are not enough for me since I see performance gains with any new
inline of functio in the performance path.
I understand this causes code explosion -- it's ok w/in the current limits.
So to solve the problem with vector::operator[] and similar I use
__attribute__((always_inline)) but it fails. How can I solve the problem than ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20343