This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95.2 problem with target powerpc-eabi


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]