[flang-commits] [clang] [flang] [llvm] Add clang warning if fp exception functions are called without appropriate flags/pragmas (PR #199009)
Marcos Ramirez Joos via flang-commits
flang-commits at lists.llvm.org
Mon Sep 21 02:28:41 PDT 2026
================
@@ -6162,6 +6162,8 @@ ASTFileSignature ASTWriter::WriteASTCore(Sema *SemaPtr, StringRef isysroot,
AddTypeRef(Context, Context.ObjCClassRedefinitionType, SpecialTypes);
AddTypeRef(Context, Context.ObjCSelRedefinitionType, SpecialTypes);
AddTypeRef(Context, Context.getucontext_tType(), SpecialTypes);
+ AddTypeRef(Context, Context.getfexcept_tType(), SpecialTypes);
+ AddTypeRef(Context, Context.getfenv_tType(), SpecialTypes);
----------------
maarcosrmz wrote:
If I understood the recognition mechanism correctly, were we not to treat them as predefined types, we would not be able to recognize the functions from the fenv.h header (see [Builtins.td](https://github.com/llvm/llvm-project/pull/199009/changes#diff-987cbd809c993aa5915def17d1f8276fd08a12aa906f56335faee50044ac5537R4706-R4709)), which take arguments of these types.
https://github.com/llvm/llvm-project/pull/199009
More information about the flang-commits
mailing list