This patch is to add diagnose when a function name is specified on the link clause. According to the OpenMP spec, only the list items that exclude the function name are allowed on the link clause.
void foo() {} #pragma omp declare target link(foo)
d2.c:2:33: error: function name is not allowed in 'link' clause #pragma omp declare target link(foo) ^ d2.c:1:6: note: 'foo' defined here void foo() {} ^ 1 error generated.