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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

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

James Clarke <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #3 from James Clarke <[hidden email]> ---
(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 on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "[hidden email]"