------- Comment #6 from darkshikari at gmail dot com 2010-04-22 06:31 ------- It seems that __attribute__((pure)) can already do this for many instances of this situation--but it doesn't work for function pointers.
Is this an arbitrary limitation, or would serious work be necessary to make ((pure)) work for function pointers? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43827