ruby-changes:53360
From: shyouhei <ko1@a...>
Date: Tue, 6 Nov 2018 20:53:08 +0900 (JST)
Subject: [ruby-changes:53360] shyouhei:r65576 (trunk): workaround C++ism in ASAN header
shyouhei 2018-11-06 20:53:01 +0900 (Tue, 06 Nov 2018) New Revision: 65576 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65576 Log: workaround C++ism in ASAN header See also: https://travis-ci.org/ruby/ruby/jobs/451299690 Modified files: trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 65575) +++ internal.h (revision 65576) @@ -95,6 +95,8 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/internal.h#L95 # define __has_extension __has_feature #endif +#ifndef MJIT_HEADER + #ifdef HAVE_SANITIZER_ASAN_INTERFACE_H # include <sanitizer/asan_interface.h> #endif @@ -149,6 +151,8 @@ unpoison_object(VALUE obj, bool newobj_p https://github.com/ruby/ruby/blob/trunk/internal.h#L151 unpoison_memory_region(ptr, SIZEOF_VALUE, newobj_p); } +#endif + /* Prevent compiler from reordering access */ #define ACCESS_ONCE(type,x) (*((volatile type *)&(x))) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/