Re: [PATCH] Generic dead function optimisation

From: Olaf Titz (
Date: Tue Apr 25 2000 - 13:06:33 EST

> The static functions are effectively called from outside. Who cares if
> it is symbolic or via a pointer? - the end effect counts: another unit does
> a function call and your static function is invoked. If you ignore that
> you miss a significant part of the program flow. If you trust static
> to guarantee that this does not happen you will lose.

You don't miss the reference because the static symbol _is_
referenced. It is referenced by the structure initializer (and in your
example, where the struct is static itself, the static struct is again
referenced by the initialization function).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:10 EST