BUG: fix check_gcc_function_attribute when attribute is actually supported.