]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
include/linux/compiler-gcc.h: improve __visible documentation
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compiler-gcc.h

index dc13ceeef8c889c8193ecacd24a9d6722a3e833e..dc3d6b7ce1ebafe159f4b65b7d1dc732caae4af9 100644 (file)
 
 #if GCC_VERSION >= 40600
 /*
- * Tell the optimizer that something else uses this function or variable.
+ * When used with Link Time Optimization, gcc can optimize away C functions or
+ * variables which are referenced only from assembly code.  __visible tells the
+ * optimizer that something else uses this function or variable, thus preventing
+ * this.
  */
 #define __visible      __attribute__((externally_visible))
 #endif