I presume if you would really want to get fancy you could go for http://gcc.gnu.org/wiki/Visibility here...