From b5b8a8cfbe1ee3c2d3684dd62e7f0ddeeeb73273 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 18 Oct 2022 17:59:03 +0000 Subject: [flang] Add -f[no-]signed-zeros Only add the option processing and store the result. No attributes are added to FIR yet. Differential Revision: https://reviews.llvm.org/D137328 --- flang/lib/Frontend/CompilerInvocation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'flang/lib/Frontend/CompilerInvocation.cpp') diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index dd461c7..eeadb21 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -714,6 +714,12 @@ static bool parseFloatingPointArgs(CompilerInvocation &invoc, opts.ApproxFunc = true; } + if (const llvm::opt::Arg *a = + args.getLastArg(clang::driver::options::OPT_fno_signed_zeros)) { + diags.Report(diagUnimplemented) << a->getOption().getName(); + opts.NoSignedZeros = true; + } + return true; } -- cgit v1.1