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 switching to more generic bitmap utilities (such as the ones in Linux, which also embed CPU-specific optimizations) which don't wrongly assume unaligned access is peachy. I think you must also have seen an awful lot of bogus use-before-assign warning from you compiler. Some versions of GCC are bad that way; can you switch to a newer compiler, which doesn't suffer from that bug? Also, your editor somehow mangles UTF-8 characters... like the sanity test provided by Øyvind's name. ;) - Dave > Is everyone still using gcc 3.x? Or is the x86 > version of gcc 4.x much more relaxed? > _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
