http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46055
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-17 22:17:41 UTC --- To test if pstat_getstatic exists with a link test, why not just use --- int pstat_getstatic (); int main () { return pstat_getstatic (); } ---