Fix issue with string options and nested gcc_jit_contexts
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 19 Dec 2014 20:11:16 +0000 (20:11 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 19 Dec 2014 20:11:16 +0000 (20:11 +0000)
commit5afd44e33b13b922760a41580020f941dbdd473e
tree2b78dbe689abc0b585bd0a406ee3b372652a2bf4
parent3eb239f48bf0ca6ed149a3f0ff114f55ecaad978
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.

From-SVN: r218972
gcc/jit/ChangeLog
gcc/jit/jit-recording.c