libgccjit: handle long literals in playback::context::new_string_literal
authorAndreaCorallo <andrea.corallo@arm.com>
Sat, 7 Mar 2020 17:39:30 +0000 (17:39 +0000)
committerAndrea Corallo <andrea.corallo@arm.com>
Mon, 23 Mar 2020 18:00:26 +0000 (19:00 +0100)
commit0cd55f9d3afdc8d9220ef0cb20db61a3b86b4c8a
tree93b5fadec679f920b0ab51460907d73dcd699687
parent962406639c0ca9f0d948c843ad2a1ca5b17806da
libgccjit: handle long literals in playback::context::new_string_literal

gcc/jit/ChangeLog
2020-03-23  Andrea Corallo  <andrea.corallo@arm.com>

* jit-playback.h
(gcc::jit::playback::context m_recording_ctxt): Remove
m_char_array_type_node field.
* jit-playback.c
(playback::context::context) Remove m_char_array_type_node from member
initializer list.
(playback::context::new_string_literal) Fix logic to handle string
length > 200.

gcc/testsuite/ChangeLog
2020-03-23  Andrea Corallo  <andrea.corallo@arm.com>

* jit.dg/all-non-failing-tests.h: Add test-long-string-literal.c.
* jit.dg/test-long-string-literal.c: New testcase.
gcc/jit/ChangeLog
gcc/jit/jit-playback.c
gcc/jit/jit-playback.h
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/all-non-failing-tests.h
gcc/testsuite/jit.dg/test-long-string-literal.c [new file with mode: 0644]