commit | 9a858dc7cebce01a7bb616bebb85087fa2b40871 | [log] [tgz] |
---|---|---|
author | Andi Kleen <ak@linux.intel.com> | Mon Sep 17 14:09:15 2012 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Sep 17 15:00:38 2012 -0700 |
tree | 70e8b7fd41d6503e105cdd0b5b9ed3e6f7c464ee | |
parent | 579035dc5ddd6d48fd8529e7358b03d911ab9d8a [diff] |
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>