From 99346f74a4ee6b638a2fbb5a5edef506d379d531 Mon Sep 17 00:00:00 2001 From: samuel Date: Tue, 20 Nov 2018 10:16:41 +0000 Subject: Mark COROUTINE as noreturn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- coroutine/arm32/Context.h | 2 +- coroutine/arm64/Context.h | 2 +- coroutine/win32/Context.h | 2 +- coroutine/win64/Context.h | 2 +- coroutine/x86/Context.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/coroutine/arm32/Context.h b/coroutine/arm32/Context.h index 25f2bfcb3a..75f6c1dc76 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 dd8b1d78dd..770e81b076 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 30cb5a982d..343c3da1d6 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 53b185a9ef..94fcf53429 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 82fd1b75ff..e54dedd776 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; -- cgit v1.2.3