--- Comment #9 from laurent at ient dot rwth-aachen dot de 2008-09-28
07:59 ---
(In reply to comment #8)
Try
#define inline inline __attribute__((always_inline))
instead. The inline keyword changes linkage, so you have to keep it.
If you keep having problems open a new bugreport
--- Comment #7 from laurent at ient dot rwth-aachen dot de 2008-09-27
11:40 ---
Hello
I reopen the discussion because I noticed a problem in relation with
__attribute__((__always_inline__)) when I tried to compile my library as a
DLL.
GCC now forces inlines well, and is now as quick
--- Comment #8 from rguenth at gcc dot gnu dot org 2008-09-28 02:11 ---
Try
#define inline inline __attribute__((always_inline))
instead. The inline keyword changes linkage, so you have to keep it.
If you keep having problems open a new bugreport please, the performance
issue seems
--- Comment #2 from laurent at ient dot rwth-aachen dot de 2007-11-16
17:46 ---
(In reply to comment #1)
What does -Winline say?
Have you tried with always_inline? Example:
/* Prototype. */
inline void foo (const char) __attribute__((always_inline));
Whaow, I have
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-11-16 18:00 ---
Note that for completely inlining kernels you can use the
__attribute__((flatten))
on the *calling* function. Usually with expression templates that is the
function
containing the loops, like
void
--- Comment #6 from laurent at ient dot rwth-aachen dot de 2007-11-16
20:42 ---
Note that for completely inlining kernels you can use the
__attribute__((flatten))
on the *calling* function. Usually with expression templates that is the
function
containing the loops, like
void
--- Comment #4 from manu at gcc dot gnu dot org 2007-11-16 18:01 ---
(In reply to comment #2)
Whaow, I have posted this report for a while...!!!
I guess this report fell through the cracks of bugzilla. Reporting the status
on new versions of GCC would have probably helped.
But
--- Comment #5 from pcarlini at suse dot de 2007-11-16 18:03 ---
(In reply to comment #2)
I once found a page, where a very important person in the Linux world (cannot
remember who now, Linux Toward probably) complained about the lack of inlining
in linux-Kernel, that there were no
--- Comment #1 from manu at gcc dot gnu dot org 2007-11-16 15:49 ---
What does -Winline say?
Have you tried with always_inline? Example:
/* Prototype. */
inline void foo (const char) __attribute__((always_inline));
See