Re: p = kmalloc(sizeof(*p), )

From: Richard Henderson
Date: Tue Sep 20 2005 - 01:32:49 EST


On Mon, Sep 19, 2005 at 12:07:33AM +0100, Al Viro wrote:
> What's happening might be (and no, I haven't looked into the gcc codegenerator
> yet) as simple as too early conversion of assignment to memcpy() call, losing
> the "we don't really use the address of this sucker after initialization"
> in process.

Not quite. But failure to copy-propagate structures is a known problem.
It's on the to-do list. Hopefully the improved alias analysis to be done
for gcc 4.2 will make this task not suck.

*shrug*


r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/