This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unaligned floating point access generation for powerpc
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: Olivier Hainque <hainque at act-europe dot fr>, gcc at gcc dot gnu dot org
- Date: Sat, 25 Oct 2003 00:16:09 -0400
- Subject: Re: Unaligned floating point access generation for powerpc
>>>>> 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