Fix issue with string options and nested gcc_jit_contexts
commitbbad6e46842fd7326ab31b20258023f7b1c1d906
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Dec 2014 20:11:16 +0000 (19 20:11 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Dec 2014 20:11:16 +0000 (19 20:11 +0000)
tree2b78dbe689abc0b585bd0a406ee3b372652a2bf4
parent99f34dd57e154e1cf3d3858219cbf16cae9db537
Fix issue with string options and nested gcc_jit_contexts

gcc/jit/ChangeLog:
* jit-recording.c (gcc::jit::recording::context::context): When
copying string options from a parent context, take a copy of the
underlying buffers, rather than simply copying the pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218972 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/jit/ChangeLog
gcc/jit/jit-recording.c