+2005-12-05 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gatomic.c: In the ia64 implementation, use
+ __sync builtin without _si or _di suffix. (#321229,
+ Stanislav Brabec, patch by Andreas Schwab)
+
2005-12-04 Behdad Esfahbod <behdad@gnome.org>
* glib/gslice.h: Remove comma at the end of enum.
+2005-12-05 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gatomic.c: In the ia64 implementation, use
+ __sync builtin without _si or _di suffix. (#321229,
+ Stanislav Brabec, patch by Andreas Schwab)
+
2005-12-04 Behdad Esfahbod <behdad@gnome.org>
* glib/gslice.h: Remove comma at the end of enum.
+2005-12-05 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gatomic.c: In the ia64 implementation, use
+ __sync builtin without _si or _di suffix. (#321229,
+ Stanislav Brabec, patch by Andreas Schwab)
+
2005-12-04 Behdad Esfahbod <behdad@gnome.org>
* glib/gslice.h: Remove comma at the end of enum.
g_atomic_int_exchange_and_add (volatile gint *atomic,
gint val)
{
- return __sync_fetch_and_add_si (atomic, val);
+ return __sync_fetch_and_add (atomic, val);
}
void
g_atomic_int_add (volatile gint *atomic,
gint val)
{
- __sync_fetch_and_add_si (atomic, val);
+ __sync_fetch_and_add (atomic, val);
}
gboolean
gint oldval,
gint newval)
{
- return __sync_bool_compare_and_swap_si (atomic, oldval, newval);
+ return __sync_bool_compare_and_swap (atomic, oldval, newval);
}
gboolean
gpointer oldval,
gpointer newval)
{
- return __sync_bool_compare_and_swap_di ((long *)atomic,
- (long)oldval, (long)newval);
+ return __sync_bool_compare_and_swap ((long *)atomic,
+ (long)oldval, (long)newval);
}
# define G_ATOMIC_MEMORY_BARRIER __sync_synchronize ()
G_MODULE_EXPORT void
gplugin_a_module_func (GModule *module)
{
- void (*f) (void) = NULL;
+ void *f = NULL;
- if (!g_module_symbol (module, "gplugin_say_boo_func", (gpointer *) &f))
+ if (!g_module_symbol (module, "gplugin_say_boo_func", &f ))
{
g_print ("error: %s\n", g_module_error ());
exit (1);
}
- f ();
+ ((void(*)(void)) f) ();
}