Date: Fri, 29 Aug 2014 19:06:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193056] [build] [dtrace] some of the sources fail to compile/link vs clang Message-ID: <bug-193056-8-fIJLFyPmgq@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-193056-8@https.bugs.freebsd.org/bugzilla/> References: <bug-193056-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193056 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Triage |Open --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- This can be fixed quite easily by moving the pragma to after the definition of go() in tst.weak2.c. That is, the following compiles: static void go(int a) { ... } #pragma weak _go = go But note that tst.weak1.c is identical except for the fact that go() is not local, and it compiles without errors. So this could be a bug in clang, I'm not sure. Note that the following also compiles: void _go(int a) __attribute__((weak, alias("go"))); static void go(int a) { ... } -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193056-8-fIJLFyPmgq>