Status: Untriaged
Owner: ----
Labels: Type-Bug Priority-Medium

New issue 4366 by [email protected]: clang/win: runtime-atomics.cc doesn't build with -Wunused-function
https://code.google.com/p/v8/issues/detail?id=4366



..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'CompareExchangeSeqCst' [-Werror,-Wunused-function]
INTEGER_TYPES(ATOMIC_OPS)
              ^
..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(127,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type CompareExchangeSeqCst(type* p, type oldval, type newval) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'LoadSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(132,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type LoadSeqCst(type* p) { return *p; } \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'StoreSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(133,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline void StoreSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'AddSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(137,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type AddSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'SubSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(141,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type SubSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'AndSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(145,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type AndSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'OrSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(149,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type OrSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'XorSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(153,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type XorSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'ExchangeSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(123,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(int64_t, 64, LONGLONG)                         \
  ^
..\..\v8\src\runtime\runtime-atomics.cc(157,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type ExchangeSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'AddSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(137,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type AddSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'SubSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(141,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type SubSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'AndSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(145,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type AndSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'OrSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(149,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type OrSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'XorSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(153,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type XorSeqCst(type* p, type value) { \
              ^
..\..\v8\src\runtime\runtime-atomics.cc(161,15) : error(clang): unused function 'ExchangeSeqCst' [-Werror,-Wunused-function] ..\..\v8\src\runtime\runtime-atomics.cc(124,3) : note(clang): expanded from macro 'INTEGER_TYPES'
  V(uint64_t, 64, LONGLONG)
  ^
..\..\v8\src\runtime\runtime-atomics.cc(157,15) : note(clang): expanded from macro 'ATOMIC_OPS' inline type ExchangeSeqCst(type* p, type value) { \
              ^
15 errors generated.



It looks like these functions are used with INTEGER_TYPED_ARRAYS, which doesn't have a 64-bit entry. Maybe the two lines

  V(int64_t, 64, LONGLONG)                         \
  V(uint64_t, 64, LONGLONG)

could be removed from INTEGER_TYPES?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to