This patch adds a new dg_require_effective_target procedure to the testsuite infrastructure: indirect_calls. This new function tells whether a target supports calls to non-constant call targets. This patch also annotates the tests in the gcc.c-torture testuite that require support for indirect calls.
As this implements a solution proposed by a global maintainer and I didn't get any further comments on it, I just installed it in its own commit in svn trunk. Salud!