This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
inlining problems
- From: Thomas Heller <thomas dot heller1 at gmx dot de>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 Oct 2009 19:16:48 +0200
- Subject: inlining problems
Hi list,
I ran into a little issue when trying to force inlining with
__attribute__(( always_inline )). The reason why i am trying to force
the compiler to inline my code is simple: I want to implement handwritten
optimizations using SSE intrinsics. However it seems that gcc is not willing
to inline that code anymore. That is why i came up with the idea of trying to
force gcc.
There is a problem now. I get tons of error messages that gcc is not able to
inline that function.
Example error message:
sorry, unimplemented: inlining failed in call to âconst pe::Vector3<typename
pe::MathTrait<T1, T2, true>::AddType> pe::operator+(const pe::Vector3<Type>&,
const pe::Vector3<T2>&) [with T1 = double, T2 = double]â: function not
inlinable
I was trying to put that in a little testcase. However it seems that i can't
reproduce that error with a small code base.
Any ideas? Need more information?
Thanks,
Thomas