On Tue, Sep 22, 2009 at 9:18 AM, Nico Coesel <[email protected]> wrote:
> Hello all,
> 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. Is everyone still using gcc 3.x? Or is the x86
> version of gcc 4.x much more relaxed?


I've committed at91sam3.c and jim.c changes.

The other two patches looked like they just eliminated a local variable?

There is in fact no alignment problem here as the calling site casts
a pointer to a uint32_t to byte and then the callback casts that
pointer back to a 32 bit integer.

This is to handle the impeadance mismatch between the JTAG api that
requires 4 bytes to store the 32 bit integer in memory and it is assumed
that a 32 bit integer is represented in memory as either small or
big endian(no other endians are known to exist, nor are they supported
by GCC :-).

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to