Mark the vint member as volatile, which seems to be necessary to make
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 Aug 2005 20:20:47 +0000 (20:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 3 Aug 2005 20:20:47 +0000 (20:20 +0000)
2005-08-02  Matthias Clasen  <mclasen@redhat.com>

        * gclosure.c (union ClosureInt): Mark the vint member as
        volatile, which seems to be necessary to make atomic operations
        work on s390.

gobject/ChangeLog
gobject/gclosure.c

index 59c2e70..c77c3fc 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * gclosure.c (union ClosureInt): Mark the vint member as
+       volatile, which seems to be necessary to make atomic operations
+       work on s390.
+
        * === Released 2.7.5 ===
 
 Mon Aug  1 23:00:42 2005  Tim Janik  <timj@imendio.com>
index c280644..7097075 100644 (file)
@@ -41,7 +41,7 @@
 
 typedef union {
   GClosure closure;
-  gint     vint;
+  volatile gint vint;
 } ClosureInt;
 
 #define CHANGE_FIELD(_closure, _field, _OP, _value, _must_set, _SET_OLD, _SET_NEW)      \