summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:16:41 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:16:41 +0000
commit99346f74a4ee6b638a2fbb5a5edef506d379d531 (patch)
treebb8ce7f5eda7b33303caeb6b5c45ff87cb347161
parentb58dc42abb4e6513ba90acaa497ce581e5bc35e8 (diff)
Mark COROUTINE as noreturn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--coroutine/arm32/Context.h2
-rw-r--r--coroutine/arm64/Context.h2
-rw-r--r--coroutine/win32/Context.h2
-rw-r--r--coroutine/win64/Context.h2
-rw-r--r--coroutine/x86/Context.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/coroutine/arm32/Context.h b/coroutine/arm32/Context.h
index 25f2bfc..75f6c1d 100644
--- a/coroutine/arm32/Context.h
+++ b/coroutine/arm32/Context.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#define COROUTINE void
+#define COROUTINE __attribute__((noreturn)) void
const size_t COROUTINE_REGISTERS = 9;
diff --git a/coroutine/arm64/Context.h b/coroutine/arm64/Context.h
index dd8b1d7..770e81b 100644
--- a/coroutine/arm64/Context.h
+++ b/coroutine/arm64/Context.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#define COROUTINE void
+#define COROUTINE __attribute__((noreturn)) void
const size_t COROUTINE_REGISTERS = 0xb0 / 8;
diff --git a/coroutine/win32/Context.h b/coroutine/win32/Context.h
index 30cb5a9..343c3da 100644
--- a/coroutine/win32/Context.h
+++ b/coroutine/win32/Context.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#define COROUTINE void __fastcall
+#define COROUTINE __declspec(noreturn) void __fastcall
const size_t COROUTINE_REGISTERS = 4;
diff --git a/coroutine/win64/Context.h b/coroutine/win64/Context.h
index 53b185a..94fcf53 100644
--- a/coroutine/win64/Context.h
+++ b/coroutine/win64/Context.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#define COROUTINE void
+#define COROUTINE __declspec(noreturn) void
const size_t COROUTINE_REGISTERS = 8;
diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h
index 82fd1b7..e54dedd 100644
--- a/coroutine/x86/Context.h
+++ b/coroutine/x86/Context.h
@@ -14,7 +14,7 @@
extern "C" {
#endif
-#define COROUTINE void __attribute__((fastcall))
+#define COROUTINE __attribute__((noreturn, fastcall)) void
const size_t COROUTINE_REGISTERS = 4;