Messages in this thread | | | Date | Thu, 13 Jul 2006 10:49:12 +0200 | From | Ingo Molnar <> | Subject | Re: Random panics seen in 2.6.18-rc1 |
| |
* Ingo Molnar <mingo@elte.hu> 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |