generator crashes with -mfpmath=387 -mno-sse #23119
Labels
bugzilla
Issues migrated from bugzilla
clang:codegen
IR generation bugs: mangling, exceptions, etc.
worksforme
Resolved as "works for me"
Extended Description
I'm working on a meshing code and noticed different results on MacBook and Lenovo machines. I think I've traced it to slightly different floating point arithmetic. Per this StackOverflow answer:
http://stackoverflow.com/questions/17663780/is-there-a-document-describing-how-clang-handles-excess-floating-point-precision
I tried compiling with "-O2 -mfpmath=387 -mno-sse", which crashed the clang code generator. Attached is a tarball with the clang output and the temporary files it requested.
I don't actually care so much whether clang can support this obscure combination of flags, what I'm really interested in is what flags do I use to get exactly the same answers on both machines.
I did see that bug 3604 is a possible duplicate, but clang still crashes so I'll submit this bug as a request that it not crash with these flags, instead exit cleanly with a descriptive error.
The text was updated successfully, but these errors were encountered: