[project @ 2003-01-04 18:46:57 by wolfgang]
authorwolfgang <unknown>
Sat, 4 Jan 2003 18:46:57 +0000 (18:46 +0000)
committerwolfgang <unknown>
Sat, 4 Jan 2003 18:46:57 +0000 (18:46 +0000)
Darwin: Replace "g" constraint by "r" in inline assembly, otherwise it won't compile without -O

ghc/rts/Adjustor.c

index ed3cb50..18d3673 100644 (file)
@@ -366,7 +366,7 @@ TODO: Depending on how much allocation overhead stgMallocBytes uses for
                        while(n--)
                        {
                                __asm__ volatile ("dcbf 0,%0\n\tsync\n\ticbi 0,%0"
-                                                   : : "g" (p));
+                                                   : : "r" (p));
                                p++;
                        }
                        __asm__ volatile ("sync\n\tisync");