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

ruby-changes:40743

From: kosaki <ko1@a...>
Date: Tue, 1 Dec 2015 09:36:06 +0900 (JST)
Subject: [ruby-changes:40743] kosaki:r52822 (trunk): * missing/explicit_bzero.c: add a few comment.

kosaki	2015-12-01 09:35:59 +0900 (Tue, 01 Dec 2015)

  New Revision: 52822

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

  Log:
    * missing/explicit_bzero.c: add a few comment.
    * missing/explicit_bzero.c: add disabling optimization on gcc.

  Modified files:
    trunk/ChangeLog
    trunk/missing/explicit_bzero.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52821)
+++ ChangeLog	(revision 52822)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec  1 09:35:29 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* missing/explicit_bzero.c: add a few comment.
+
+Tue Dec  1 09:31:19 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* missing/explicit_bzero.c: add disabling optimization on gcc.
+
 Tue Dec  1 07:50:33 2015  Eric Wong  <e@8...>
 
 	* missing/explicit_bzero.c: new file. define explicit_bzero.
Index: missing/explicit_bzero.c
===================================================================
--- missing/explicit_bzero.c	(revision 52821)
+++ missing/explicit_bzero.c	(revision 52822)
@@ -7,6 +7,15 @@ https://github.com/ruby/ruby/blob/trunk/missing/explicit_bzero.c#L7
  Linux has none. *Sigh*
 */
 
+/*
+ * Following URL explain why memset_s is added to the standard.
+ * http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1381.pdf
+ */
+
+#ifdef __GNUC__
+#pragma GCC optimize ("O0")
+#endif
+
 #ifndef HAVE_EXPLICIT_BZERO
 /* Similar to bzero(), but have a guarantee not to be eliminated from compiler
    optimization. */

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

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