[project @ 2005-07-09 00:13:14 by igloo]
authorigloo <unknown>
Sat, 9 Jul 2005 00:13:14 +0000 (00:13 +0000)
committerigloo <unknown>
Sat, 9 Jul 2005 00:13:14 +0000 (00:13 +0000)
Fix building on IA64.

Please merge to stable.

ghc/rts/Adjustor.c
ghc/rts/Linker.c

index 4eed033..0c45f8c 100644 (file)
@@ -188,7 +188,7 @@ stgAllocStable(size_t size_in_bytes, StgStablePtr *stable)
   *stable = getStablePtr((StgPtr)arr);
 
   /* and return a ptr to the goods inside the array */
-  return(BYTE_ARR_CTS(arr));
+  return(&(arr->payload));
 }
 #endif
 
index 52412dc..cb68522 100644 (file)
@@ -3263,7 +3263,7 @@ ia64_extract_instruction(Elf64_Xword *target)
 {
    Elf64_Xword w1, w2;
    int slot = (Elf_Addr)target & 3;
-   (Elf_Addr)target &= ~3;
+   target = (Elf_Addr)target & ~3;
 
    w1 = *target;
    w2 = *(target+1);
@@ -3285,7 +3285,7 @@ static void
 ia64_deposit_instruction(Elf64_Xword *target, Elf64_Xword value)
 {
    int slot = (Elf_Addr)target & 3;
-   (Elf_Addr)target &= ~3;
+   target = (Elf_Addr)target & ~3;
 
    switch (slot)
    {