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

ruby-changes:23273

From: nobu <ko1@a...>
Date: Sat, 14 Apr 2012 12:55:28 +0900 (JST)
Subject: [ruby-changes:23273] nobu:r35324 (trunk): * configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code

nobu	2012-04-14 12:55:06 +0900 (Sat, 14 Apr 2012)

  New Revision: 35324

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35324

  Log:
    * configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
      if -O3 is given.
    * win32/win32.c (child_result): dropped colon.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/win32/win32.c

Index: configure.in
===================================================================
--- configure.in	(revision 35323)
+++ configure.in	(revision 35324)
@@ -912,11 +912,13 @@
     fi
 
     AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable,
+    [RUBY_WERROR_FLAG(
     [AC_TRY_LINK([@%:@include <stdlib.h>],
 	[exit(0); __builtin_unreachable();],
 	[rb_cv_func___builtin_unreachable=yes],
 	[rb_cv_func___builtin_unreachable=no])
     ])
+    ])
     if test "$rb_cv_func___builtin_unreachable" = yes; then
 	AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()])
     fi
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35323)
+++ ChangeLog	(revision 35324)
@@ -1,3 +1,10 @@
+Sat Apr 14 12:55:03 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (UNREACHABLE): gcc 4.4 eliminates unreachable code
+	  if -O3 is given.
+
+	* win32/win32.c (child_result): dropped colon.
+
 Sat Apr 14 10:45:18 2012  NARUSE, Yui  <naruse@r...>
 
 	* lib/webrick/server.rb (WEBrick::GenericServer#start):
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 35323)
+++ win32/win32.c	(revision 35324)
@@ -1079,7 +1079,7 @@
 	GetExitCodeProcess(child->hProcess, &exitcode);
 	CloseChildHandle(child);
 	_exit(exitcode);
-      default
+      default:
 	UNREACHABLE;
     }
 }

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

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