[前][次][番号順一覧][スレッド一覧]

ruby-changes:53662

From: samuel <ko1@a...>
Date: Wed, 21 Nov 2018 00:02:44 +0900 (JST)
Subject: [ruby-changes:53662] samuel:r65853 (trunk): Mark COROUTINE as noreturn.

samuel	2018-11-20 19:16:41 +0900 (Tue, 20 Nov 2018)

  New Revision: 65853

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65853

  Log:
    Mark COROUTINE as noreturn.

  Modified files:
    trunk/coroutine/arm32/Context.h
    trunk/coroutine/arm64/Context.h
    trunk/coroutine/win32/Context.h
    trunk/coroutine/win64/Context.h
    trunk/coroutine/x86/Context.h
Index: coroutine/win32/Context.h
===================================================================
--- coroutine/win32/Context.h	(revision 65852)
+++ coroutine/win32/Context.h	(revision 65853)
@@ -14,7 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L14
 extern "C" {
 #endif
 
-#define COROUTINE void __fastcall
+#define COROUTINE __declspec(noreturn) void __fastcall
 
 const size_t COROUTINE_REGISTERS = 4;
 
Index: coroutine/arm32/Context.h
===================================================================
--- coroutine/arm32/Context.h	(revision 65852)
+++ coroutine/arm32/Context.h	(revision 65853)
@@ -14,7 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.h#L14
 extern "C" {
 #endif
 
-#define COROUTINE void
+#define COROUTINE __attribute__((noreturn)) void
 
 const size_t COROUTINE_REGISTERS = 9;
 
Index: coroutine/x86/Context.h
===================================================================
--- coroutine/x86/Context.h	(revision 65852)
+++ coroutine/x86/Context.h	(revision 65853)
@@ -14,7 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.h#L14
 extern "C" {
 #endif
 
-#define COROUTINE void __attribute__((fastcall))
+#define COROUTINE __attribute__((noreturn, fastcall)) void
 
 const size_t COROUTINE_REGISTERS = 4;
 
Index: coroutine/win64/Context.h
===================================================================
--- coroutine/win64/Context.h	(revision 65852)
+++ coroutine/win64/Context.h	(revision 65853)
@@ -14,7 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L14
 extern "C" {
 #endif
 
-#define COROUTINE void
+#define COROUTINE __declspec(noreturn) void
 
 const size_t COROUTINE_REGISTERS = 8;
 
Index: coroutine/arm64/Context.h
===================================================================
--- coroutine/arm64/Context.h	(revision 65852)
+++ coroutine/arm64/Context.h	(revision 65853)
@@ -14,7 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.h#L14
 extern "C" {
 #endif
 
-#define COROUTINE void
+#define COROUTINE __attribute__((noreturn)) void
 
 const size_t COROUTINE_REGISTERS = 0xb0 / 8;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]