]> git.karo-electronics.de Git - karo-tx-linux.git/commit
compiler.h: add __visible
authorAndi Kleen <ak@linux.intel.com>
Fri, 7 Sep 2012 00:17:46 +0000 (10:17 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:01 +0000 (15:36 +1000)
commitfd96c324a9af6efbd71cb78a4c5b1f3274294d13
tree1620513c5fa746613f4defefd2fcd3458ad75da5
parentbaa44368cfb40cc8420bd316085610e7c4e2cb08
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