svn commit: r255613 - head/sys/arm/arm
Zbigniew Bodek
zbb at FreeBSD.org
Mon Sep 16 10:46:59 UTC 2013
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 */
More information about the svn-src-all
mailing list