[Bug 193056] [build] [dtrace] some of the sources fail to compile/link vs clang
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 29 19:06:37 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193056
Mark Johnston <markj at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Triage |Open
--- Comment #1 from Mark Johnston <markj at 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.
More information about the freebsd-bugs
mailing list