[clang] [Clang][Driver] Override complex number calculation method by -fno-fa… (PR #132680)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 24 14:42:43 PDT 2025
================
@@ -2997,6 +2997,7 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
LangOptions::ComplexRangeKind Range = LangOptions::ComplexRangeKind::CX_None;
std::string ComplexRangeStr = "";
std::string GccRangeComplexOption = "";
+ std::string LastComplexRangeOption = "";
----------------
andykaylor wrote:
I don't think I remember during our Discourse discussion of this that there was already a `GccRangeComplexOption` variable here. Do we really need another variable? If you just set GccRangeComplexOption to empty for `-ffast-math` and `-fno-fast-math`, would that give us reasonable diagnostics?
https://github.com/llvm/llvm-project/pull/132680
More information about the cfe-commits
mailing list