https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96952
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > The whole point of __has_builtin is to let you avoid the configure-time > checks on compilers that support __has_builtin. If __has_builtin doesn't > actually work, it's pointless that it even exists and indeed everyone should > just pretend it doesn't exist and keep using configure-time checks for > everything. That would certainly restore the portability that __has_builtin has broken.