wok-6.x diff visualboyadvance/stuff/1.7.2-gcc41.patch @ rev 9969
crosstool-ng: fix bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 17:49:44 2011 +0200 (2011-05-18) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/visualboyadvance/stuff/1.7.2-gcc41.patch Wed May 18 17:49:44 2011 +0200 1.3 @@ -0,0 +1,27 @@ 1.4 +diff -ru src/prof/prof.cpp src/prof/prof.cpp 1.5 +--- src/prof/prof.cpp 2004-05-14 00:31:58.000000000 +1000 1.6 ++++ src/prof/prof.cpp 2006-06-03 13:49:41.000000000 +1000 1.7 +@@ -266,7 +266,7 @@ 1.8 + for (toindex=froms[fromindex]; toindex!=0; toindex=tos[toindex].link) { 1.9 + if(profWrite8(fd, GMON_TAG_CG_ARC) || 1.10 + profWrite32(fd, (u32)frompc) || 1.11 +- profWrite32(fd, (u32)tos[toindex].selfpc) || 1.12 ++ profWrite32(fd, (u32)(intptr_t)tos[toindex].selfpc) || 1.13 + profWrite32(fd, tos[toindex].count)) { 1.14 + systemMessage(0, "mcount: arc"); 1.15 + fclose(fd); 1.16 +diff -ru src/sdl/debugger.cpp src/sdl/debugger.cpp 1.17 +--- src/sdl/debugger.cpp 2004-05-14 00:13:14.000000000 +1000 1.18 ++++ src/sdl/debugger.cpp 2006-06-03 13:49:57.000000000 +1000 1.19 +@@ -950,9 +950,9 @@ 1.20 + { 1.21 + u32 address = 0; 1.22 + if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff]) 1.23 +- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]); 1.24 ++ address = 0x2000000 + ((u32)(intptr_t)mem - (u32)(intptr_t)&workRAM[0]); 1.25 + else 1.26 +- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]); 1.27 ++ address = 0x3000000 + ((u32)(intptr_t)mem - (u32)(intptr_t)&internalRAM[0]); 1.28 + 1.29 + if(size == 2) 1.30 + printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",