[Bug 235583] clang error builtin-requires-header on pthread_create on powerpc64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 21 23:34:06 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235583

James Clarke <jrtc27 at jrtc27.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrtc27 at jrtc27.com

--- Comment #3 from James Clarke <jrtc27 at jrtc27.com> ---
(In reply to David Chisnall from comment #2)

It shows up for users using the system header if they pass -Wsystem-headers,
but otherwise not.

The problem is that *any* declaration of pthread_create will trigger this
warning, since GetBuiltinType will return {} with Error = GE_Missing_type due
to the fact that its type is "" in Builtins.def, and it only works normally
because the warning gets suppressed for system headers. I think the correct
thing to do is to give it the proper type, which I'm working on at the moment
(Clang now has syntax for function types within intrinsic type strings with a
recursive parse call so you can express function pointers; it just also needs
to learn about pthread(_attr)_t).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list