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++/20343] __always_inline__ fails on STL templatized function


------- 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


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