mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* missing/explicit_bzero.c: add a few comment.
* missing/explicit_bzero.c: add disabling optimization on gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed0858a8c5
commit
586c174922
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Tue Dec 1 09:35:29 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* missing/explicit_bzero.c: add a few comment.
|
||||||
|
|
||||||
|
Tue Dec 1 09:31:19 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* missing/explicit_bzero.c: add disabling optimization on gcc.
|
||||||
|
|
||||||
Tue Dec 1 07:50:33 2015 Eric Wong <e@80x24.org>
|
Tue Dec 1 07:50:33 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* missing/explicit_bzero.c: new file. define explicit_bzero.
|
* missing/explicit_bzero.c: new file. define explicit_bzero.
|
||||||
|
|
|
@ -7,6 +7,15 @@
|
||||||
Linux has none. *Sigh*
|
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
|
#ifndef HAVE_EXPLICIT_BZERO
|
||||||
/* Similar to bzero(), but have a guarantee not to be eliminated from compiler
|
/* Similar to bzero(), but have a guarantee not to be eliminated from compiler
|
||||||
optimization. */
|
optimization. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue