[llvm-commits] [llvm-gcc-4.2] r108466 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jul 15 15:08:04 PDT 2010
Author: evancheng
Date: Thu Jul 15 17:08:04 2010
New Revision: 108466
URL: http://llvm.org/viewvc/llvm-project?rev=108466&view=rev
Log:
-ffinite-math-only is now equal to "--enable-no-nans-fp-math --enable-no-infs-fp-math".
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=108466&r1=108465&r2=108466&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Thu Jul 15 17:08:04 2010
@@ -411,8 +411,10 @@
Args.push_back("--time-passes");
if (fast_math_flags_set_p())
Args.push_back("--enable-unsafe-fp-math");
- if (flag_finite_math_only)
- Args.push_back("--enable-finite-only-fp-math");
+ if (flag_finite_math_only) {
+ Args.push_back("--enable-no-nans-fp-math");
+ Args.push_back("--enable-no-infs-fp-math");
+ }
if (!flag_omit_frame_pointer)
Args.push_back("--disable-fp-elim");
if (!flag_zero_initialized_in_bss)
More information about the llvm-commits
mailing list