[Closed] r44946 introduces compile error in Solaris

Issue #9530 has been updated by Usaku NAKAMURA.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r45036.


  • ruby_atomic.h: fixed merge mistake of r44946. reported by ngoto at
    [ruby-dev:47980] [Backport #9530]

Backport #9530: r44946 introduces compile error in Solaris
https://bugs.ruby-lang.org/issues/9530#change-45241

  • Author: Naohisa G.
  • Status: Closed
  • Priority: Normal
  • Assignee:

r44946 にて、ruby_atomic.h
の122行目に編集ミスによると思われる異常な行が出現しており、その結果、Solarisにてコンパイルエラーが発生します。

以下の部分です。

@@ -80,7 +81,7 @@

define ATOMIC_SIZE_INC(var) atomic_inc_ulong(&(var))

define ATOMIC_SIZE_DEC(var) atomic_dec_ulong(&(var))

define ATOMIC_SIZE_EXCHANGE(var, val) atomic_swap_ulong(&(var),

(val))
-# else
+# define ATOMIC_SIZE_CAS(var, oldval, val) atomic_cas_ulong(&(var),
(oldval), (# else

define ATOMIC_SIZE_ADD(var, val) atomic_add_int(&(var), (val))

define ATOMIC_SIZE_SUB(var, val) atomic_add_int(&(var), -(val))

define ATOMIC_SIZE_INC(var) atomic_inc_uint(&(var))

明らかに #else の前後が何か変です。行末が欠けて、かつ、次の行がくっついているように見えます。

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs