Index: lib/CodeGen/BackendUtil.cpp =================================================================== --- lib/CodeGen/BackendUtil.cpp +++ lib/CodeGen/BackendUtil.cpp @@ -537,6 +537,13 @@ .Case("posix", llvm::ThreadModel::POSIX) .Case("single", llvm::ThreadModel::Single); + Options.FPDenormalMode = + llvm::StringSwitch(CodeGenOpts.FPDenormalMode) + .Case("ieee", llvm::FPDenormal::IEEE) + .Case("preserve-sign", llvm::FPDenormal::PreserveSign) + .Case("positive-zero", llvm::FPDenormal::PositiveZero) + .Default(llvm::FPDenormal::IEEE); + // Set float ABI type. assert((CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp" || CodeGenOpts.FloatABI == "hard" || CodeGenOpts.FloatABI.empty()) && @@ -579,6 +586,7 @@ Options.LessPreciseFPMADOption = CodeGenOpts.LessPreciseFPMAD; Options.NoInfsFPMath = CodeGenOpts.NoInfsFPMath; Options.NoNaNsFPMath = CodeGenOpts.NoNaNsFPMath; + Options.NoTrappingFPMath = CodeGenOpts.NoTrappingMath; Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS; Options.UnsafeFPMath = CodeGenOpts.UnsafeFPMath; Options.StackAlignmentOverride = CodeGenOpts.StackAlignment;