This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[patch] failed to build sim/ppc on OSX.


Hello maintainers,

I failed to build sim/ppc on OSX with a warning.
I think this issue is occurred not only OSX.

Thanks,

sim/ppc/ChangeLog
2010-01-31  Masaki Muranaka  <monaka@monami-software.com>

       * interrupts.c (alignement_interrupt): Add type cast.


diff --git a/sim/ppc/interrupts.c b/sim/ppc/interrupts.c
index dafb2b3..f9e6efc 100644
--- a/sim/ppc/interrupts.c
+++ b/sim/ppc/interrupts.c
@@ -263,7 +263,7 @@ alignment_interrupt(cpu *processor,
 
   case USER_ENVIRONMENT:
   case VIRTUAL_ENVIRONMENT:
-    cpu_error(processor, cia, "alignment interrupt - ra=0x%lx", ra);
+    cpu_error(processor, cia, "alignment interrupt - ra=0x%lx", (unsigned long)ra);
     
   case OPERATING_ENVIRONMENT:
     DAR = (spreg)ra;


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