Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2014 04:02:56 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r271699 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid
Message-ID:  <201409170402.s8H42uL0084949@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Sep 17 04:02:56 2014
New Revision: 271699
URL: http://svnweb.freebsd.org/changeset/base/271699

Log:
  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

Modified:
  head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c

Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c	Wed Sep 17 03:40:49 2014	(r271698)
+++ head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c	Wed Sep 17 04:02:56 2014	(r271699)
@@ -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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409170402.s8H42uL0084949>