* Ingo Molnar <[email protected]> wrote:
> but ... i think gcc ought to be able to figure out that the parameter
> is totally unused on !LOCKDEP - all functions involved are static, and
> we are using -funit-at-a-time already. That should make the parameter
> passing totally zero-cost.
hm, gcc (as of 4.1.1) doesnt seem to be able to figure that out,
probably due to the 'nesting + 1' changing the variable.
Anyway, Arjan's nesting-type idea should solve the problem - in that
case 'nesting + 1' becomes an identity mapping of a zero-sized variable,
which will generate zero code.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]