mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
merge revision(s) 57020,57021: [Backport #13014]
Add clang volatile fixes from FreeBSD and NetBSD. Use volatile instead of optnone to avoid optimization which causes segmentation faults. Patch by Dimitry Andric. [ruby-core:78531] [Bug #13014] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@57216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed8c211a64
commit
04d79490da
8 changed files with 21 additions and 16 deletions
|
@ -65,7 +65,7 @@ error_print(void)
|
|||
volatile VALUE errat = Qundef;
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
VALUE errinfo = th->errinfo;
|
||||
int raised_flag = th->raised_flag;
|
||||
volatile int raised_flag = th->raised_flag;
|
||||
volatile VALUE eclass = Qundef, e = Qundef;
|
||||
const char *volatile einfo;
|
||||
volatile long elen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue