Re: errors in example on profile mode libstdc++ (gcc-4.5/changes.html)

2010-01-08 Thread Paolo Carlini
On 01/08/2010 05:00 PM, HyperQuantum wrote: > Right? > Right, fixed. Thanks, Paolo.

errors in example on profile mode libstdc++ (gcc-4.5/changes.html)

2010-01-08 Thread HyperQuantum
In the list of changes for GCC 4.5 there's the following example: #include int main() { vector v; for (int k = 0; k > 1024; ++k) v.insert(v.begin(), k); } The declaration of v needs the 'std::' qualification, and the loop test should use '<' instead of '>'. Right?

Re: pro_and_epilogue pass ran several time for same function?

2010-01-08 Thread Paulo J. Matos
On Fri, Jan 8, 2010 at 3:34 PM, Ian Lance Taylor wrote: > "Paulo J. Matos" writes: > >> I just noticed that the pro_and_epilogue pass in gcc3.4.3 for certain >> functions is ran multiple times with sibcalls enabled. Why is that? >> >> What I did was to put a printf on the epilogue and sibcall_epi

Re: pro_and_epilogue pass ran several time for same function?

2010-01-08 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I just noticed that the pro_and_epilogue pass in gcc3.4.3 for certain > functions is ran multiple times with sibcalls enabled. Why is that? > > What I did was to put a printf on the epilogue and sibcall_epilogue > pattern so that during compilation it prints the name of

pro_and_epilogue pass ran several time for same function?

2010-01-08 Thread Paulo J. Matos
Hi all, I just noticed that the pro_and_epilogue pass in gcc3.4.3 for certain functions is ran multiple times with sibcalls enabled. Why is that? What I did was to put a printf on the epilogue and sibcall_epilogue pattern so that during compilation it prints the name of the function currently gen

Re: Deciding when to sibcall

2010-01-08 Thread Paulo J. Matos
On Thu, Jan 7, 2010 at 5:29 PM, Dave Korn wrote: > Paulo J. Matos wrote: > >> The problem with this is that I only want to sibcall when it happens >> to reduce my code size. >> >> I noticed (in the internals manual) we cannot actually fallback to a >> normal call once we decide to sibcall through

Use -fprofile-generate get basic block counts

2010-01-08 Thread Jianzhang Peng
Hi, all I want to know every instructions an application runs. So , first , I need to konw every basic blocks' frequency. I'd like to use -fprofile-generate and -fprofile-use get basic block counts. As GCC collect the profile information at pass-tree-profile, I wander whither the instrumentat