Unaligned floating point access generation for powerpc
David Edelsohn
dje@watson.ibm.com
Sat Oct 25 14:12:00 GMT 2003
>>>>> Mike Stump writes:
Mike> The compiler is allowed to produce inefficient code, the compiler isn't
Mike> allowed to produce code that doesn't work. To do so, would be a bug.
Mike> Now, the bug may me that gcc always assumes the existence of a trap
Mike> handler to do the move and hasn't been ported to a ppc without such a
Mike> handler, or the bug may be that the backend can't assume that and must
Mike> generate a move by pieces style code.
If GCC is generating code for a PowerPC target that cannot handle
alignment traps, the compiler should be invoked with the -mstrict-align
commandline option.
David
More information about the Gcc
mailing list