Re: Bug#945133: gcc-9: __has_attribute(ifunc) false positive on hurd and kfreebsd
Samuel Thibault <[email protected]>
| Newsgroups | gmane.linux.debian.ports.bsd,gmane.linux.debian.ports.hurd |
|---|---|
| Organization | I am not organized |
| Message-ID | <20200124000451.3ya6r3564hgv5qlr@function> |
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