Date: Thu, 21 Feb 2019 23:34:03 +0000 From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 235583] clang error builtin-requires-header on pthread_create on powerpc64 Message-ID: <bug-235583-13406-7h4xWAICCo@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-235583-13406@https.bugs.freebsd.org/bugzilla/> References: <bug-235583-13406@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235583 James Clarke <jrtc27@jrtc27.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrtc27@jrtc27.com --- Comment #3 from James Clarke <jrtc27@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235583-13406-7h4xWAICCo>
