[llvm-commits] [llvm-gcc-4.2] r97351 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Dan Gohman
gohman at apple.com
Sat Feb 27 16:06:48 PST 2010
Author: djg
Date: Sat Feb 27 18:06:48 2010
New Revision: 97351
URL: http://llvm.org/viewvc/llvm-project?rev=97351&view=rev
Log:
Wire up -ffinite-math-only.
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=97351&r1=97350&r2=97351&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sat Feb 27 18:06:48 2010
@@ -393,6 +393,8 @@
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_omit_frame_pointer)
Args.push_back("--disable-fp-elim");
if (!flag_zero_initialized_in_bss)
More information about the llvm-commits
mailing list