eclipse / omr

Eclipse OMR™ Cross platform components for building reliable, high performance language runtimes
http://www.eclipse.org/omr
Other
939 stars 394 forks source link

clang warnings on -fno-rounding-math and -fno-signaling-nans #3361

Open pdbain-ibm opened 5 years ago

pdbain-ibm commented 5 years ago

JIT compilation produces these warning when compiling on MacOS:

clang: warning: optimization flag '-fno-rounding-math' is not supported [-Wignored-optimization-argument] clang: warning: optimization flag '-fno-signaling-nans' is not supported [-Wignored-optimization-argument]

nbhuiyan commented 5 years ago

Is this issue regarding the compiler warnings seen when building the Test Compiler on macOS?

pdbain-ibm commented 5 years ago

I don't know if it is the test compiler; the error occurs, amongst other places, compiling compiler/codegen/J9Instruction.cpp. Please see attached build log: build.log

nbhuiyan commented 5 years ago

In that case this is an OpenJ9 macOS build/configure issue. Getting rid of these warnings when building OpenJ9 JIT would not require any changes in OMR. eclipse/openj9#4156 would get rid of these warnings.

Leonardo2718 commented 5 years ago

Those options are also used in the test compiler a JitBuilder, so compiling either of those with clang will probably also generate those warnings.

nbhuiyan commented 5 years ago

As far as I remember these warnings are seen only in test compiler builds using automake when Clang is used instead of GCC. CMake builds do not specify these options. Furthermore, JITBuilder build sets these options only for xLinux using platform guards in the makefiles.

Leonardo2718 commented 5 years ago

I see.