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

Richard Henderson
2005-09-20T06:32:33Z

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~