Lelystad, inschrijfnummer 39046783) > -----Original Message----- > From: David Brownell [mailto:[email protected]] > Sent: dinsdag 22 september 2009 19:43 > To: [email protected] > Cc: Nico Coesel > Subject: Re: [Openocd-development] Some variable initialisation and > typecasting patches > > On Tuesday 22 September 2009, Nico Coesel wrote: > > I had some problems (warnings) to get OpenOCD to compile with gcc 4.x on > > a MIPS platform. Attached you'll the patches with the modifications > > required to get it to compile without warnings. I'm wondering why these > > didn't turn up earlier. > > The alignment warnings showed up on ARM too. It's not > clear just disabling them is safe ... they can expose > real problems, because unaligned access is not necessarily > going to work. They seem to need Real Fixes, like by
GCC solves that problem. I just checked the assembler output for the MIPS platform for arm_jtag.c and GCC emits byte operations. I've seen the same behaviour on ARM as well. Whenever GCC is unsure of the alignment, it emits byte operations. A whole lot slower ofcourse but I bet using a kernel API will make things even slower (and less portable). Nico Coesel _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
