http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46055
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-17 21:32:51 UTC --- I am not sure test: --- char pstat_getstatic (); char (*f) () = pstat_getstatic; int main () { return f != pstat_getstatic; } --- which detects if pstat_getstatic is defined, is compatible with whopr, which may decide f is never changed and optimize it to int main () { return 0; } We need a better way to detect if a function is available when whopr is enabled.