New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13052: glib2.diff

File glib2.diff, 1.2 KB (added by ryandesign@…, 5 years ago)

potential fix, thanks to David DeHaven

  • files/patch-gatomic.c.diff

     
     1--- glib/gatomic.c      2007-10-16 00:44:49.000000000 -0500 
     2+++ glib/gatomic.c      2007-10-31 01:30:21.000000000 -0500 
     3@@ -281,7 +281,8 @@ 
     4                               gint           val) 
     5 { 
     6   gint result, temp; 
     7-  __asm__ __volatile__ (".Lieaa%=:       lwarx   %0,0,%3\n" 
     8+  __asm__ __volatile__ ("nop\n" 
     9+                       ".Lieaa%=:       lwarx   %0,0,%3\n" 
     10                        "         add     %1,%0,%4\n" 
     11                        "         stwcx.  %1,0,%3\n" 
     12                        "         bne-    .Lieaa%=" 
     13@@ -297,7 +298,8 @@ 
     14                  gint           val) 
     15 { 
     16   gint result, temp;   
     17-  __asm__ __volatile__ (".Lia%=:       lwarx   %0,0,%3\n" 
     18+  __asm__ __volatile__ ("nop\n" 
     19+                       ".Lia%=:       lwarx   %0,0,%3\n" 
     20                        "         add     %1,%0,%4\n" 
     21                        "         stwcx.  %1,0,%3\n" 
     22                        "         bne-    .Lia%=" 
  • Portfile

     
    3333patchfiles \ 
    3434        patch-glib-2.0.pc.in.diff \ 
    3535        patch-gutils.c.diff \ 
    36         patch-gi18n.h.diff 
     36        patch-gi18n.h.diff \ 
     37        patch-gatomic.c.diff 
    3738 
    3839depends_build \ 
    3940        port:pkgconfig