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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to