This is the mail archive of the
mailing list for the GCC project.
Re: [tree-profiling] Fix some leftouts of previous patch
On Dec 8, 2004, at 3:52 PM, Andrew Pinski wrote:
But the simple CS 101 example of recursion for factorial is actually
optimized the correct way to be a loop instead of a call of a function.
I was referring to an external call with a small constant parameter,
not to the
original function (that -O3 code does look ugly though)....still, so
far I haven't
gotten the compiler to inline at all in that case, maybe I should have
But the example is valid, even if the compiler doesn't currently do the
right thing on it.,