This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATH] Powerpc arch ppc_stub.c compiler warning fix


Hi,

This tiny patch fixes a pointer / integer comparison compiler warning in 
ppc_stub.c in the powerpc hal.

Index: packages/hal/powerpc/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/ChangeLog,v
retrieving revision 1.65
diff -u -r1.65 ChangeLog
--- packages/hal/powerpc/arch/current/ChangeLog	27 May 2004 13:22:08 -0000	1.65
+++ packages/hal/powerpc/arch/current/ChangeLog	4 Nov 2004 14:42:40 -0000
@@ -1,3 +1,7 @@
+2004-11-04  Peter Korsgaard  <jacmet@sunsite.dk>
+	* src/ppc_stub.c (__is_single_step): Removed compiler warning
+	about pointer / integer comparison.
+	
 2004-05-27  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/redboot_linux_exec.c (do_exec): Be sensitive to value in
Index: packages/hal/powerpc/arch/current/src/ppc_stub.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/src/ppc_stub.c,v
retrieving revision 1.12
diff -u -r1.12 ppc_stub.c
--- packages/hal/powerpc/arch/current/src/ppc_stub.c	24 Nov 2003 14:28:15 -0000	1.12
+++ packages/hal/powerpc/arch/current/src/ppc_stub.c	4 Nov 2004 14:42:41 -0000
@@ -338,8 +338,8 @@
 int
 __is_single_step(target_register_t pc)
 {
-    return (sstep_instr[0].targetAddr == pc) ||
-        (sstep_instr[1].targetAddr == pc);
+    return (sstep_instr[0].targetAddr == (t_inst *)pc) ||
+        (sstep_instr[1].targetAddr == (t_inst *)pc);
 }
 
 
-- 
Bye, Peter Korsgaard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]