]> git.baikalelectronics.ru Git - kernel.git/commit
compiler.h: add __visible
authorAndi Kleen <ak@linux.intel.com>
Mon, 17 Sep 2012 21:09:15 +0000 (14:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 17 Sep 2012 22:00:38 +0000 (15:00 -0700)
commit61e645ac89efc5bfee54c4d1782d6d274a6aa153
tree70e8b7fd41d6503e105cdd0b5b9ed3e6f7c464ee
parent1941fcdf7eaaada28eb7d890133953824d6e473f
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler-gcc4.h
include/linux/compiler.h