diff options
author | Tom Eccles <tom.eccles@arm.com> | 2022-10-18 17:59:03 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2022-11-04 17:22:34 +0000 |
commit | b5b8a8cfbe1ee3c2d3684dd62e7f0ddeeeb73273 (patch) | |
tree | d75e0ad2fd7965ecf275530b12110a7b73027dc2 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 36b37a1ed561404a32a4b4b6e2bd92d915894a7c (diff) | |
download | llvm-b5b8a8cfbe1ee3c2d3684dd62e7f0ddeeeb73273.zip llvm-b5b8a8cfbe1ee3c2d3684dd62e7f0ddeeeb73273.tar.gz llvm-b5b8a8cfbe1ee3c2d3684dd62e7f0ddeeeb73273.tar.bz2 |
[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
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |