[Openmp-commits] [PATCH] D83963: [OpenMP] Use `abort` not `error` for fatal runtime exceptions
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 24 13:18:12 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9c87466c3960: [OpenMP] Use `abort` not `error` for fatal runtime exceptions (authored by jdoerfert).
Changed prior to commit:
https://reviews.llvm.org/D83963?vs=278581&id=280568#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83963/new/
https://reviews.llvm.org/D83963
Files:
openmp/libomptarget/src/private.h
Index: openmp/libomptarget/src/private.h
===================================================================
--- openmp/libomptarget/src/private.h
+++ openmp/libomptarget/src/private.h
@@ -93,17 +93,17 @@
fprintf(stderr, "Libomptarget message: " _str "\n", __VA_ARGS__); \
} while (0)
-#define FATAL_MESSAGE0(_num, _str) \
- do { \
- fprintf(stderr, "Libomptarget fatal error %d: %s\n", _num, _str); \
- exit(1); \
+#define FATAL_MESSAGE0(_num, _str) \
+ do { \
+ fprintf(stderr, "Libomptarget fatal error %d: %s\n", _num, _str); \
+ abort(); \
} while (0)
-#define FATAL_MESSAGE(_num, _str, ...) \
- do { \
- fprintf(stderr, "Libomptarget fatal error %d:" _str "\n", _num, \
- __VA_ARGS__); \
- exit(1); \
+#define FATAL_MESSAGE(_num, _str, ...) \
+ do { \
+ fprintf(stderr, "Libomptarget fatal error %d:" _str "\n", _num, \
+ __VA_ARGS__); \
+ abort(); \
} while (0)
// Implemented in libomp, they are called from within __tgt_* functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83963.280568.patch
Type: text/x-patch
Size: 1797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200724/ca96219a/attachment-0001.bin>
More information about the Openmp-commits
mailing list