This is the mail archive of the gcc@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]
Other format: [Raw text]

Mimic OSF with gcc


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




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