Hello, On 20.11.19 11:43, Fabian Kloetzl wrote: > Recently, the build of one of my packages failed on hurd-i386 and > kfreebsd-* due to unsupported ifuncs [1]. However, I had that code guarded > by __has_attribute(ifunc) which, unfortunately, evaluates to 1 on said > platforms. A minimal testcase is attached.
AIUI, that is expected by gcc people: the gcc documentation says: “to test whether the attribute referenced by its operand is recognized by GCC” Strictly speaking, being recognized by GCC doesn't mean being supported on the target platform. I agree that it makes it not really useful here, but I'm not the one to be convinced :) I'd say bring the issue to upstream gcc. Samuel