Commit 7bb0f34f authored by igloo's avatar igloo
Browse files

[project @ 2005-07-09 00:13:14 by igloo]

Fix building on IA64.

Please merge to stable.
parent 8dfa3502
...@@ -188,7 +188,7 @@ stgAllocStable(size_t size_in_bytes, StgStablePtr *stable) ...@@ -188,7 +188,7 @@ stgAllocStable(size_t size_in_bytes, StgStablePtr *stable)
*stable = getStablePtr((StgPtr)arr); *stable = getStablePtr((StgPtr)arr);
/* and return a ptr to the goods inside the array */ /* and return a ptr to the goods inside the array */
return(BYTE_ARR_CTS(arr)); return(&(arr->payload));
} }
#endif #endif
......
...@@ -3263,7 +3263,7 @@ ia64_extract_instruction(Elf64_Xword *target) ...@@ -3263,7 +3263,7 @@ ia64_extract_instruction(Elf64_Xword *target)
{ {
Elf64_Xword w1, w2; Elf64_Xword w1, w2;
int slot = (Elf_Addr)target & 3; int slot = (Elf_Addr)target & 3;
(Elf_Addr)target &= ~3; target = (Elf_Addr)target & ~3;
w1 = *target; w1 = *target;
w2 = *(target+1); w2 = *(target+1);
...@@ -3285,7 +3285,7 @@ static void ...@@ -3285,7 +3285,7 @@ static void
ia64_deposit_instruction(Elf64_Xword *target, Elf64_Xword value) ia64_deposit_instruction(Elf64_Xword *target, Elf64_Xword value)
{ {
int slot = (Elf_Addr)target & 3; int slot = (Elf_Addr)target & 3;
(Elf_Addr)target &= ~3; target = (Elf_Addr)target & ~3;
switch (slot) switch (slot)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment