]> git.karo-electronics.de Git - karo-tx-linux.git/commit
compiler.h: add __visible
authorAndi Kleen <ak@linux.intel.com>
Thu, 13 Sep 2012 00:58:11 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:22:18 +0000 (20:22 +1000)
commitfddbf7dec7423dd7e0397af1e97b41879018c840
tree526f9edf31a2c66abd29ebe3773b36753c34c7d8
parent2fa9f1f0a30867e04c55320d9920f46229f5a105
compiler.h: add __visible

gcc 4.6+ has support for a externally_visible attribute that prevents the
optimizer from optimizing unused symbols away.  Add a __visible macro to
use it with that compiler version or later.

This is used (at least) by the "Link Time Optimization" patchset.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compiler-gcc4.h
include/linux/compiler.h