This is the mail archive of the gcc@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]

[RFC] Unused variable in profile.c


I accidentally found that the local variable
num_never_executed
in function compute_branch_probabilities, is initialized to zero
and never gets modified after that.

I suppose the statement in line 603:
num_branches++, num_never_executed;
was intended to be:
num_branches++, num_never_executed++;

Right ?

Thanks,
Edmar


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