Mimic OSF with gcc

Mathieu Malaterre mathieu.malaterre@kitware.com
Fri Sep 10 14:54:00 GMT 2004


Hello,

    I am currently trying to track down a FPE on an OSF/Tru64 Compaq system (which I don't have access to). I was thinking that I could reproduce the compiler behavior by carefully choosing the flags in gcc to reproduce it.

    Does anyone ever deals with this problem ?

    So far what I have been doing is adding in my code:

    unsigned int fpucw= 0x1372;
    __asm__ ("fldcw %0" : : "m" (fpucw));

and recompile everything using

    -fno-trapping-math -mno-ieee-fp

So far I couldn't reproduce the bug,
Any other ideas/suggestions ?

Thanks
Mathieu





More information about the Gcc mailing list