diff options
author | markj <markj@FreeBSD.org> | 2014-09-17 04:02:56 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-09-17 04:02:56 +0000 |
commit | 0958b711f945bea1613ed62102119bc488983e1a (patch) | |
tree | 6ab9b6b5fd2d116b31a4afb09d4d8bec87f80496 /cddl/contrib/opensolaris/cmd/dtrace | |
parent | d46a293b8b28fbd74a968c42a0852485189980ad (diff) | |
download | FreeBSD-src-0958b711f945bea1613ed62102119bc488983e1a.zip FreeBSD-src-0958b711f945bea1613ed62102119bc488983e1a.tar.gz |
Implement a workaround to allow this test program to be compiled with clang.
It seems that if a pragma is used to define a weak alias for a local
function, the pragma must appear after the function is defined.
PR: 193056
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c index 8dabbe6..bb571d2 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c @@ -34,14 +34,14 @@ * leading underscores. */ -#pragma weak _go = go - static int go(int a) { return (a + 1); } +#pragma weak _go = go + static void handle(int sig) { |