gcc-2.95.2 problem with target powerpc-eabi

Volker Barthelmann volker.barthelmann@3SOFT.de
Fri Oct 27 06:44:00 GMT 2000


Hi,

> The compiler seems to optimize the copy by using load (lfd)
> and store (stfd) double float instructions.
>
> Now my question. How can I avoid this, without using the
> compiler option -msoft-float ? 
> I think it should be possible if I make some adjustmenst
> in the rs6000.md /.c /.h files and then rebuild the compiler.
>
> Has anybody any experience in doing this ?

The option -mstrict-align seems to prevent this behaviour.

Unfortunately, the manual does not document this (in fact, the
documentation for this option does not seem to make much sense
to me). I'm not sure whether this is the intended meaning of
-mstrict-align or, if not, what it is supposed to do. However,
the switch has been used for some time in several real-time
operating-systems for this purpose.

Hope that helps,

Volker



More information about the Gcc-bugs mailing list