Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 10:46:59 +0000 (UTC)
From:      Zbigniew Bodek <zbb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255613 - head/sys/arm/arm
Message-ID:  <201309161046.r8GAkxEM084656@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zbb
Date: Mon Sep 16 10:46:58 2013
New Revision: 255613
URL: http://svnweb.freebsd.org/changeset/base/255613

Log:
  Fix GCC build error when building for ARMv6
  
  Apply theravens's idea to move __strong_reference
  macros into the proper ifdef section.
  
  Approved by:	cognet (mentor)
  Approved by:	re

Modified:
  head/sys/arm/arm/stdatomic.c

Modified: head/sys/arm/arm/stdatomic.c
==============================================================================
--- head/sys/arm/arm/stdatomic.c	Mon Sep 16 10:39:35 2013	(r255612)
+++ head/sys/arm/arm/stdatomic.c	Mon Sep 16 10:46:58 2013	(r255613)
@@ -834,6 +834,10 @@ EMIT_ALL_OPS_N(1, uint8_t, "ldrb", "strb
 EMIT_ALL_OPS_N(2, uint16_t, "ldrh", "strh", "streqh")
 EMIT_ALL_OPS_N(4, uint32_t, "ldr", "str", "streq")
 
+#endif /* _KERNEL */
+
+#endif
+
 #ifndef __clang__
 __strong_reference(__sync_lock_test_and_set_1_c, __sync_lock_test_and_set_1);
 __strong_reference(__sync_lock_test_and_set_2_c, __sync_lock_test_and_set_2);
@@ -858,8 +862,4 @@ __strong_reference(__sync_fetch_and_xor_
 __strong_reference(__sync_fetch_and_xor_4_c, __sync_fetch_and_xor_4);
 #endif
 
-#endif /* _KERNEL */
-
-#endif
-
 #endif /* __SYNC_ATOMICS */



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