View | Details | Raw Unified | Return to bug 116893
Collapse All | Expand All

(-)Makefile (-4 lines)
Lines 38-47 Link Here
38
BROKEN=		Runaway cc1plus process
38
BROKEN=		Runaway cc1plus process
39
.endif
39
.endif
40
40
41
.if ${OSVERSION} >= 700042
42
BROKEN=		Does not compile with GCC 4.2
43
.endif
44
45
.ifdef(WITH_GTK2)
41
.ifdef(WITH_GTK2)
46
PLIST_SUB=	INSTALL_GTK2=""
42
PLIST_SUB=	INSTALL_GTK2=""
47
USE_GCC=	3.4+
43
USE_GCC=	3.4+
(-)files/patch-src-prof_gmon.h (+11 lines)
Added Link Here
1
--- src/prof/gmon.h.orig	2007-10-04 01:06:18.000000000 +0200
2
+++ src/prof/gmon.h	2007-10-04 01:06:48.000000000 +0200
3
@@ -119,7 +119,7 @@
4
 
5
 struct tostruct
6
   {
7
-    char *selfpc;
8
+    uint32_t selfpc;
9
     int count;
10
     unsigned short link;
11
   };
(-)files/patch-src-prof_prof.cpp (+20 lines)
Added Link Here
1
--- src/prof/prof.cpp.orig	2007-10-04 01:07:54.000000000 +0200
2
+++ src/prof/prof.cpp	2007-10-04 01:08:31.000000000 +0200
3
@@ -279,7 +279,7 @@
4
 
5
 void profCount()
6
 {
7
-  register char *selfpc;
8
+  register u32 selfpc;
9
   register unsigned short *frompcindex;
10
   register struct tostruct *top;
11
   register struct tostruct *prevtop;
12
@@ -292,7 +292,7 @@
13
   
14
   /* selfpc = pc pushed by mcount call.
15
      This identifies the function that was just entered.  */
16
-  selfpc = (char *) reg[14].I;
17
+  selfpc = (u32) reg[14].I;
18
   /* frompcindex = pc in preceding frame.
19
      This identifies the caller of the function just entered.  */
20
   frompcindex = (unsigned short *) reg[12].I;
(-)files/patch-src-sdl_debugger.cpp (+14 lines)
Added Link Here
1
--- src/sdl/debugger.cpp.orig	2007-10-04 01:11:33.000000000 +0200
2
+++ src/sdl/debugger.cpp	2007-10-04 01:12:22.000000000 +0200
3
@@ -950,9 +950,9 @@
4
 {
5
   u32 address = 0;
6
   if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
7
-    address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
8
+    address = 0x2000000 + (u32)((u8 *)mem - &workRAM[0]);
9
   else
10
-    address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
11
+    address = 0x3000000 + (u32)((u8 *)mem - &internalRAM[0]);
12
 
13
   if(size == 2)
14
     printf("Breakpoint (on write) address %08x old:%08x new:%08x\n", 

Return to bug 116893