[flang-commits] [flang] [llvm] [flang-rt] Add fatal diagnostics with integer values (PR #231241)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 13 04:20:10 PDT 2026
================
@@ -44,6 +44,23 @@ void FORTRAN_PROCEDURE_NAME(backtrace)(NO_ARGUMENTS);
NORETURN RT_API_ATTRS void RTNAME(ReportFatalUserError)(
const char *message, const char *source, int line);
+// The NUL-terminated message contains only %lld conversions and %% escapes.
+// A fixed argument list also permits calls from device code; unused values
+// are ignored.
+RT_OFFLOAD_API_GROUP_BEGIN
+NORETURN RT_API_ATTRS void RTNAME(ReportFatalUserErrorValues)(
+ const char *message, const char *source, int line, long long v0,
+ long long v1, long long v2, long long v3);
----------------
jeanPerier wrote:
Documented that the caller must supply at most four %lld conversions, escape other percent signs as %%, and that this contract is unchecked.
https://github.com/llvm/llvm-project/pull/231241
More information about the flang-commits
mailing list