mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: FUNC_UNOPTIMIZED
* configure.in: check if optimize pragma is supported. * include/ruby/defines.h (FUNC_UNOPTIMIZED): fallback definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
586c174922
commit
ff113d52f7
3 changed files with 8 additions and 2 deletions
|
|
@ -12,13 +12,15 @@
|
|||
* http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1381.pdf
|
||||
*/
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC optimize ("O0")
|
||||
#ifndef FUNC_UNOPTIMIZED
|
||||
# define FUNC_UNOPTIMIZED(x) x
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_EXPLICIT_BZERO
|
||||
/* Similar to bzero(), but have a guarantee not to be eliminated from compiler
|
||||
optimization. */
|
||||
FUNC_UNOPTIMIZED(void explicit_bzero(void *b, size_t len));
|
||||
|
||||
void
|
||||
explicit_bzero(void *b, size_t len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue